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
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
stups-tokens-0.2.tar.gz
(2.3 kB
view details)
File details
Details for the file stups-tokens-0.2.tar.gz
.
File metadata
- Download URL: stups-tokens-0.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fffbe962a31f65689fb8c89e1baee2af06f9554d3bc0c9fccfd0219ebcda0868 |
|
MD5 | 9a2afe41a2e1a0dc42d379c812a86f46 |
|
BLAKE2b-256 | a5832ef7c82fd48ad104972162a8efa2ba5e3e0c0e16d378ed7677de45acef8a |