Annotell Authentication
Project description
Annotell Authentication
Python 3 library providing foundations for Annotell Authentication
on top of the requests
library.
Builds on the standard Oauth 2.0 Client Credentials flow.
There are a few ways to set your credentials.
- Set the environment variable
ANNOTELL_CREDENTIALS
to point to your Annotell Credentials file. The credentials will contain the Client Id and Client Secret. - Set environment variables
ANNOTELL_CLIENT_ID
andANNOTELL_CLIENT_SECRET
- Set tokens in the constructor with
AuthSession(client_id="X", client_id="Y")
from annotell.auth.authsession import AuthSession
auth_session = AuthSession()
# create a requests session with automatic oauth refresh
sess = auth_session.session
# make call to some Annotell service with your token. Use default requests
sess.get("https://api.annotell.com")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
annotell-auth-1.3.0.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for annotell_auth-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d66b72f5b6a0e2af640b74416eaa667e090d0993a2c00bc911d9cdc94b0b6296 |
|
MD5 | 44aaad0b872f17962e5bcb9c14e5b173 |
|
BLAKE2b-256 | 3c4ac589083cbd5f72171cf415733f90773f65403ff01b8cfe00e1eaae80c09c |