Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 717 Bytes

api_class.rst

File metadata and controls

23 lines (16 loc) · 717 Bytes

The BrainFrameAPI Class

The BrainFrameAPI class holds methods corresponding to all API endpoints that the server provides. In order to get connected to a BrainFrame server, start by initializing a new instance of this class.

from brainframe.api import BrainFrameAPI

# Log into a local BrainFrame server instance with the default admin
# credentials
api = BrainFrameAPI("http://localhost", ("admin", "admin"))

Take a look at the next few topics for information on all the methods the BrainFrameAPI class has available and their corresponding data structures.

Basic Methods

brainframe.api.BrainFrameAPI