SDK for integrating your Python application with Wristband for machine-to-machine (M2M) authentication. Handles token acquisition and caching.
Project description
Wristband Machine-to-Machine (M2M) Authentication SDK for Python
Wristband provides enterprise-ready auth that is secure by default, truly multi-tenant, and ungated for small businesses.
- Website: Wristband Website
- Documentation: Wristband Docs
For detailed setup instructions and usage guidelines, visit the project's GitHub repository.
Details
This SDK enables Wristband machine-to-machine (M2M) OAuth2 clients to securely retrieve, cache, and refresh access tokens in Python applications. It is supported for Python 3.10+ and provides both synchronous and asynchronous clients to fit any framework (Django, FastAPI, etc.). Key functionalities encompass the following:
- Fetching an access token from Wristband using the OAuth2 client credentials grant.
- Caching the access token in memory for the duration of its validity.
- Automatically refreshing the token when it expires or is nearing expiration.
- Optionally refreshing the token proactively in the background at a fixed interval.
- Clearing the cached token on demand (e.g. after receiving a 401 from a downstream API).
You can learn more about how M2M authentication works in Wristband in our documentation:
Questions
Reach out to the Wristband team at support@wristband.dev for any questions regarding this SDK.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wristband_python_m2m_auth-0.1.0.tar.gz.
File metadata
- Download URL: wristband_python_m2m_auth-0.1.0.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51f361265096cab16142c4141fd16501ccde066c07db6a017a204ce5da0b8dc3
|
|
| MD5 |
08382d906aea49af48525818b093203a
|
|
| BLAKE2b-256 |
0cc96c809d5f03adde5ac528374f8e57d48f500df86ee8da68354f32449a7803
|
File details
Details for the file wristband_python_m2m_auth-0.1.0-py3-none-any.whl.
File metadata
- Download URL: wristband_python_m2m_auth-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1190cd596de890e52c3060872d44cdb6aee202031f42577f11f153ef1113e6eb
|
|
| MD5 |
5fdb9b3757e9349f6e819f843df429d3
|
|
| BLAKE2b-256 |
f33960d45a159a81557486b68ea6dd6d536d9135dab8f834489f7fbd5bd91276
|