See ScribeAuth or ScribeAuthNode instead.
Most calls to Scribe's api on https://api.scribelabs.ai require a JWT for authentication and authorisation. This library simplifies this process.
You first need a Scribe account and an api key. Both can be requested at contact[atsign]scribelabs[dotsign]ai.
This library requires a version of Python 3 that supports typings.
pip install scribe-auth
from scribe_auth import get_tokens
tokens = get_tokens('myusername', 'mypassword', 'myapikey')
# tokens = {"access": "token", "refresh": "token"}
from scribe_auth import refresh_access_token
token = refresh_access_token('myrefreshtoken', 'myapikey')
# token = {"access": "token"}
from scribe_auth import revoke_refresh_token
revoke_refresh_token('myrefreshtoken', 'myapikey')
To flag an issue, open a ticket on Github.