API¶
- class brain.api.api.BrainAuth(authtype, **kwargs)[source]¶
Bases:
AuthBase
This is a custom requests authorization class
This class is used to ensure that token authentication takes precedence over the netrc file in the request. See https://github.com/requests/requests/issues/3929 and
Request Custom Headers <http://docs.python-requests.org/en/master/user/quickstart/#custom-headers>_
- Parameters
authtype (str) – the authentication method used for the API. Currently set as default to use JSON Web token authentication.