Skip to main content

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.

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.

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)

Source distribution for wristband-python-m2m-auth 0.1.0
File Size Uploaded
wristband_python_m2m_auth-0.1.0.tar.gz 16.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wristband-python-m2m-auth 0.1.0
File Interpreter ABI Platform
wristband_python_m2m_auth-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page