Python bindings for the userauth library: the anonymous credentials implementation used in OONI
Project description
ooniauth-py
This is the bindings library used to call the anonymous credentials library from Python land
We use this in our backend implement the anonymous credentials protocol in our API
Installation
You can install this library by running:
pip install ooniauth-py
Development requirements
These tools are required to contribute to this library
- maturin: Is used to build the library itself, it's heavily used to develop this library
In order to use maturin, you need a virtual environment to manage the resulting Python package during development, see more details here
Testing installation
Run the Rust tests with:
cargo test
The Python extension-module linker mode is enabled only for Maturin builds.
If you need to test against a specific Python interpreter, activate a virtualenv
or set PYO3_PYTHON before running the tests. The virtualenv must point to a
base Python installation which provides an embeddable shared library.
Usage
- Create a ready-to-use
.whlto import in python:make wheels
- Note: You will find the wheels file in:
/userauth/ooniauth-py/wheels
- Build the library and install it in a virtualenv for trying it in Python:
make dev
- Note: Requires an active virtual environment to install the library
- Run tests:
make test
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ooniauth_py-0.3.3-cp310-abi3-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: ooniauth_py-0.3.3-cp310-abi3-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 649.5 kB
- Tags: CPython 3.10+, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
123262c953c598b08c5ce16f85b3ed8fc68e346e868910c618203325334a2800
|
|
| MD5 |
322fa8ccccaf4f87dce9a859af695886
|
|
| BLAKE2b-256 |
2a27d5abe1f671c606b58fe858e1f03e4fdea26629a1e5b9100d353ef54e7b91
|
File details
Details for the file ooniauth_py-0.3.3-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: ooniauth_py-0.3.3-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 583.7 kB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a280f9f1f36159fc93cf2c98d51014c355a24cf0bed75a9cea28ad40015defb
|
|
| MD5 |
3a1153d9125574c3a5dd98ca963f8df0
|
|
| BLAKE2b-256 |
6ef7c4e139efe452abf7885af922d1245b9786bef2c22001a017acb7ba43360e
|