https://github.com/eclipse-biscuit/biscuit-python
https://github.com/eclipse-biscuit/biscuit-python
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/eclipse-biscuit/biscuit-python
- Owner: eclipse-biscuit
- License: apache-2.0
- Created: 2023-04-28T17:09:43.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-22T14:12:18.000Z (about 1 year ago)
- Last Synced: 2025-05-30T13:53:58.296Z (about 1 year ago)
- Language: Rust
- Size: 159 KB
- Stars: 13
- Watchers: 3
- Forks: 7
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Python bindings for biscuit
This library provides python bindings to the [biscuit_auth](https://docs.rs/biscuit-auth/latest/biscuit_auth/) rust library.
As it is a pre-1.0 version, you can expect some API changes. However, most of the use cases are covered:
- building a token
- appending a (first-party) block to a token
- parsing a token
- authorizing a token
- querying an authorizer
Notable missing features are:
- sealing tokens
- third-party blocks
- snapshots
There are no blockers for these features, they just have not been properly exposed yet.
## Documentation
Documentation is available at .
## Installation
`biscuit-python` is published on PyPI: [biscuit-python](https://pypi.org/project/biscuit-python/):
```
pip install biscuit-python
```
## Building/Testing
Set up a virtualenv and install the dev dependencies. Plenty of ways to do that... Here's one of them:
```
$ python -m venv .env
$ source .env/bin/activate
$ pip install -r requirements-dev.txt
```
With that, you should be able to run `maturin develop` to build and install the extension. You can then `import biscuit_auth` in a Python shell to play around, or run `pytest` to run the Python tests.