navis.interfaces.insectbrain_db.authenticate¶
- navis.interfaces.insectbrain_db.authenticate(username=None, password=None, token=None)[source]¶
Authenticate against Insect Brain DB.
You can either provide username + password, or a token. Each token is only valid for 24h though. The better alternative is to provide your username + password as environment variables: INSECT_BRAIN_DB_USER and INSECT_BRAIN_DB_PASSWORD, respectively. If you are using these environment you don’t need to bother with authenticate() at all.
- Parameters:
username (str, optional) – Your username on Insect Brain DB.
password (str, optional) – Your password on Insect Brain DB.
token (str, optional) – A token. If provided you don’t need to provide username + password.