Skip to main content

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.

  1. Set the environment variable ANNOTELL_CREDENTIALS to point to your Annotell Credentials file. The credentials will contain the Client Id and Client Secret.
  2. Set environment variables ANNOTELL_CLIENT_ID and ANNOTELL_CLIENT_SECRET
  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for annotell-auth, version 1.3.0
Filename, size File type Python version Upload date Hashes
Filename, size annotell_auth-1.3.0-py3-none-any.whl (4.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size annotell-auth-1.3.0.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page