Skip to main content

Python bindings for the biscuit auth platform

Project description

Python bindings for biscuit

This library provides python bindings to the 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 https://python.biscuitsec.org.

Installation

biscuit-python is published on PyPI: 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

biscuit_python-0.2.0.tar.gz (33.7 kB view hashes)

Uploaded Source

Built Distributions

biscuit_python-0.2.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

biscuit_python-0.2.0-pp310-pypy310_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl (2.5 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ s390x

biscuit_python-0.2.0-pp310-pypy310_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (2.5 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ppc64le

biscuit_python-0.2.0-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (2.1 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARMv7l

biscuit_python-0.2.0-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl (2.3 MB view hashes)

Uploaded PyPy manylinux: glibc 2.5+ i686

biscuit_python-0.2.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

biscuit_python-0.2.0-pp39-pypy39_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl (2.5 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ s390x

biscuit_python-0.2.0-pp39-pypy39_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (2.5 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ppc64le

biscuit_python-0.2.0-pp39-pypy39_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (2.1 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARMv7l

biscuit_python-0.2.0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.2 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

biscuit_python-0.2.0-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.whl (2.3 MB view hashes)

Uploaded PyPy manylinux: glibc 2.5+ i686

biscuit_python-0.2.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

biscuit_python-0.2.0-pp38-pypy38_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl (2.5 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ s390x

biscuit_python-0.2.0-pp38-pypy38_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (2.5 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ppc64le

biscuit_python-0.2.0-pp38-pypy38_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (2.1 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARMv7l

biscuit_python-0.2.0-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.2 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

biscuit_python-0.2.0-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.whl (2.3 MB view hashes)

Uploaded PyPy manylinux: glibc 2.5+ i686

biscuit_python-0.2.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

biscuit_python-0.2.0-pp37-pypy37_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl (2.6 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ s390x

biscuit_python-0.2.0-pp37-pypy37_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (2.5 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ppc64le

biscuit_python-0.2.0-pp37-pypy37_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (2.1 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARMv7l

biscuit_python-0.2.0-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.2 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

biscuit_python-0.2.0-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.whl (2.3 MB view hashes)

Uploaded PyPy manylinux: glibc 2.5+ i686

biscuit_python-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

biscuit_python-0.2.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl (2.5 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ s390x

biscuit_python-0.2.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (2.5 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ppc64le

biscuit_python-0.2.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (2.1 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARMv7l

biscuit_python-0.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.2 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

biscuit_python-0.2.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl (2.3 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.5+ i686

biscuit_python-0.2.0-cp311-none-win_amd64.whl (1.0 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

biscuit_python-0.2.0-cp311-none-win32.whl (967.2 kB view hashes)

Uploaded CPython 3.11 Windows x86

biscuit_python-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

biscuit_python-0.2.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl (2.5 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ s390x

biscuit_python-0.2.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (2.5 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ppc64le

biscuit_python-0.2.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (2.1 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARMv7l

biscuit_python-0.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.2 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

biscuit_python-0.2.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl (2.3 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.5+ i686

biscuit_python-0.2.0-cp311-cp311-macosx_11_0_arm64.whl (1.2 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

biscuit_python-0.2.0-cp311-cp311-macosx_10_7_x86_64.whl (1.3 MB view hashes)

Uploaded CPython 3.11 macOS 10.7+ x86-64

biscuit_python-0.2.0-cp310-none-win_amd64.whl (1.0 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

biscuit_python-0.2.0-cp310-none-win32.whl (967.2 kB view hashes)

Uploaded CPython 3.10 Windows x86

biscuit_python-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

biscuit_python-0.2.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl (2.5 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ s390x

biscuit_python-0.2.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (2.5 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ppc64le

biscuit_python-0.2.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (2.1 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARMv7l

biscuit_python-0.2.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.2 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

biscuit_python-0.2.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl (2.3 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.5+ i686

biscuit_python-0.2.0-cp310-cp310-macosx_11_0_arm64.whl (1.2 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

biscuit_python-0.2.0-cp310-cp310-macosx_10_7_x86_64.whl (1.3 MB view hashes)

Uploaded CPython 3.10 macOS 10.7+ x86-64

biscuit_python-0.2.0-cp39-none-win_amd64.whl (1.0 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

biscuit_python-0.2.0-cp39-none-win32.whl (967.5 kB view hashes)

Uploaded CPython 3.9 Windows x86

biscuit_python-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

biscuit_python-0.2.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl (2.5 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ s390x

biscuit_python-0.2.0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (2.5 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ppc64le

biscuit_python-0.2.0-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (2.1 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARMv7l

biscuit_python-0.2.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.2 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

biscuit_python-0.2.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl (2.3 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.5+ i686

biscuit_python-0.2.0-cp38-none-win_amd64.whl (1.0 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

biscuit_python-0.2.0-cp38-none-win32.whl (967.5 kB view hashes)

Uploaded CPython 3.8 Windows x86

biscuit_python-0.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

biscuit_python-0.2.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl (2.5 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ s390x

biscuit_python-0.2.0-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (2.5 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ppc64le

biscuit_python-0.2.0-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (2.1 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARMv7l

biscuit_python-0.2.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.2 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

biscuit_python-0.2.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl (2.3 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.5+ i686

biscuit_python-0.2.0-cp37-none-win_amd64.whl (1.0 MB view hashes)

Uploaded CPython 3.7 Windows x86-64

biscuit_python-0.2.0-cp37-none-win32.whl (967.9 kB view hashes)

Uploaded CPython 3.7 Windows x86

biscuit_python-0.2.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

biscuit_python-0.2.0-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl (2.5 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ s390x

biscuit_python-0.2.0-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (2.5 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ppc64le

biscuit_python-0.2.0-cp37-cp37m-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (2.1 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARMv7l

biscuit_python-0.2.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.2 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

biscuit_python-0.2.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl (2.3 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.5+ i686

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page