Skip to main content

Tokens

Project description

A Python library that keeps OAuth 2.0 service access tokens in memory for your usage.

Usage

import tokens

# will use OAUTH2_ACCESS_TOKEN_URL environment variable by default
tokens.configure(url='https://example.com/access_tokens')
tokens.manage('example', ['read', 'write'])
tokens.start()

tok = tokens.get('example')

requests.get('https://example.org/', headers={'Authorization': 'Bearer {}'.format(tok)})

Project details


Download files

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

Source Distribution

stups-tokens-0.1.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file stups-tokens-0.1.tar.gz.

File metadata

  • Download URL: stups-tokens-0.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for stups-tokens-0.1.tar.gz
Algorithm Hash digest
SHA256 fa05f332e7181623030e50d4d63330995177acbd36ac59484f1d88b7a3954dbb
MD5 6f39fde4ca1479d81283a41026131892
BLAKE2b-256 b026fcfeeaf3a1b6dc5a5ad49e08a7a1459e295615bd702aa90c89a86ff415a3

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page