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.
Metadata
Release files for wristband-python-m2m-auth 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wristband_python_m2m_auth-0.1.0.tar.gz | 16.3 kB | Without provenance | Details for wristband_python_m2m_auth-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wristband_python_m2m_auth-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for wristband_python_m2m_auth-0.1.0-py3-none-any.whl |
Total release size: 26.0 kB
Release files / wristband_python_m2m_auth-0.1.0.tar.gz
| Download URL | wristband_python_m2m_auth-0.1.0.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
51f361265096cab16142c4141fd16501ccde066c07db6a017a204ce5da0b8dc3
|
|
BLAKE2b-256 checksum How to use checksums |
0cc96c809d5f03adde5ac528374f8e57d48f500df86ee8da68354f32449a7803
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / wristband_python_m2m_auth-0.1.0-py3-none-any.whl
| Download URL | wristband_python_m2m_auth-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1190cd596de890e52c3060872d44cdb6aee202031f42577f11f153ef1113e6eb
|
|
BLAKE2b-256 checksum How to use checksums |
f33960d45a159a81557486b68ea6dd6d536d9135dab8f834489f7fbd5bd91276
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for wristband-python-m2m-auth 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.