--- id: biscuit-python version: "0.4.0" license: unclear license_treatment: unclear maintenance: active --- # biscuit-python — Python bindings for the biscuit auth platform License: unclear · Maintenance: active · Downloads: 77.6K/mo ## 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 above — 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 pip install biscuit-python uv add biscuit-python poetry add biscuit-python ## Installing 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: unspecified - Install friction: medium - Maintenance: active - Downloads: 77.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags biscuit token authentication python, authorization token library, cryptographic token management, third-party block authorization, token parsing and validation, biscuit auth bindings, access control tokens, authentication, authorization, cryptography [View on SkillFed](https://skillfed.io/packages/biscuit-python) · [View on PyPI](https://pypi.org/project/biscuit-python/)