biscuit-python
Python bindings for the biscuit auth platform
What it is and what it does
biscuit-python is a Python wrapper around the Rust biscuit authentication library, providing cryptographic token operations for authorization workflows. It allows you to build tokens, append authorization blocks (both first-party and third-party), parse existing tokens, and validate them against authorization rules. The package has no runtime dependencies beyond the compiled extension itself.
The library is actively maintained and covers the core use cases for token-based authorization: creating tokens with embedded authorization logic, delegating authority through third-party blocks, and enforcing access control policies. As a pre-1.0 project, it is production-ready for its documented features but may introduce breaking API changes in future releases.
Use it for:
- Build and validate authorization tokens for microservice-to-microservice communication with embedded access policies.
- Implement delegated authorization workflows where third parties can append their own authorization blocks to tokens.
- Parse and verify cryptographic tokens in API gateways or middleware to enforce fine-grained access control.
- Integrate biscuit-based authorization into Python web frameworks or authentication systems.
- Validate token authorization rules against dynamic authorization policies.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python bindings for the biscuit authentication library, enabling token creation, parsing, block appending, and authorization checks within Python applications.
Yes, if you need biscuit-based authorization in Python and accept pre-1.0 API volatility. The package is actively maintained, has no runtime dependencies, covers all documented core use cases, and carries no known security vulnerabilities. The main caveats are medium install friction (compiled wheels) and unclear license metadata that should be verified against your project's requirements.
Install
biscuit-python on PyPI
pip
pip install biscuit-pythonuv
uv add biscuit-pythonpoetry
poetry add biscuit-pythonInstalling biscuit-python
Before you install
Medium install friction due to compiled wheels required for multiple architectures and Python versions. The package is actively maintained with recent releases, though it remains pre-1.0 and may see API changes.
License in practice
License treatment is unclear in the metadata; the description indicates Apache License 2.0 applies, but this is not formally declared in the package metadata and should be verified before use in proprietary or restricted contexts.
Quickstart
pip install biscuit-python
import biscuit_python
# Build, append blocks, parse, and authorize tokens
Requires pre-built wheels for your platform and Python version; source installation requires maturin and Rust toolchain.
Verify before relying
- Exact Python version support range (requires_python is unspecified in metadata)
- Whether the Apache 2.0 license declared in description is formally recognized by package metadata
- API stability guarantees or deprecation timeline for pre-1.0 releases
- Specific module names and API surface available after import
Package facts
| License | not declared (unclear) |
| Python support | not specified |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 322 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 77,570/month — #14,514 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: biscuit_python-0.4.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; biscuit_python-0.4.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; biscuit_python-0.4.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; biscuit_python-0.4.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl; biscuit_python-0.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; biscuit_python-0.4.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl; biscuit_python-0.4.0-cp310-cp310-musllinux_1_2_aarch64.whl; biscuit_python-0.4.0-cp310-cp310-musllinux_1_2_armv7l.whl; biscuit_python-0.4.0-cp310-cp310-musllinux_1_2_i686.whl; biscuit_python-0.4.0-cp310-cp310-musllinux_1_2_x86_64.whl; biscuit_python-0.4.0-cp310-cp310-win_amd64.whl; biscuit_python-0.4.0-cp311-cp311-macosx_10_12_x86_64.whl; biscuit_python-0.4.0-cp311-cp311-macosx_11_0_arm64.whl; biscuit_python-0.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; biscuit_python-0.4.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; biscuit_python-0.4.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; biscuit_python-0.4.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl; biscuit_python-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; biscuit_python-0.4.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl; biscuit_python-0.4.0-cp311-cp311-musllinux_1_2_aarch64.whl
Tags
More Cryptography packages
Certifi provides Mozilla's curated collection…
copyleft · top 100 on PyPI
cryptographycryptography provides cryptographic recipes and…
permissive · top 100 on PyPI
rsaPure-Python RSA encryption, decryption,…
permissive · top 1,000 on PyPI
pyOpenSSLpyOpenSSL wraps OpenSSL's SSL/TLS functionality…
permissive · top 1,000 on PyPI
azure-identityProvides Microsoft Entra ID token-based…
unclear · top 1,000 on PyPI
PyNaClPyNaCl provides Python bindings to libsodium…
permissive · top 1,000 on PyPI
chia-rsProvides Python bindings to Rust crates for…
unclear · top 15,000 on PyPI
databento-dbndatabento-dbn provides Python bindings for…
permissive · top 5,000 on PyPI
cedarpycedarpy binds the Cedar Policy authorization…
unclear · top 15,000 on PyPI
delta-kernel-rust-sharing-wrapperProvides Python bindings to the Rust-based…
permissive · top 5,000 on PyPI
py-ed25519-zebra-bindingsProvides Python bindings to the ed25519-zebra…
permissive · top 15,000 on PyPI
py-bip39-bindingsProvides Python bindings to the tiny-bip39 Rust…
permissive · top 15,000 on PyPI
py-sr25519-bindingsProvides Python bindings to the sr25519 Rust…
permissive · top 15,000 on PyPI
pycasbinPyCasbin enforces access control policies using…
permissive · top 5,000 on PyPI
eclipse-zenohEclipse Zenoh is a Python binding to a…
unclear · top 15,000 on PyPI