Skip to main content

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

  1. 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

  1. Create a ready-to-use .whl to import in python: make wheels
  • Note: You will find the wheels file in: /userauth/ooniauth-py/wheels
  1. 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
  1. 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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ooniauth_py-0.3.2-cp310-abi3-manylinux_2_28_x86_64.whl (648.0 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ x86-64

ooniauth_py-0.3.2-cp310-abi3-macosx_11_0_arm64.whl (579.0 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

Details for the file ooniauth_py-0.3.2-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for ooniauth_py-0.3.2-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d1456668b00aad6bff804531aeef78585d04afacdd95f68d5f5d437fe82dc396
MD5 b3d91a50fef37afa421c9067cb3d7a1d
BLAKE2b-256 304575b99aa2e11967a70380e3a76ba8fe79c683aa5e095e868a6b7f4c05435d

See more details on using hashes here.

File details

Details for the file ooniauth_py-0.3.2-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ooniauth_py-0.3.2-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7cc66db2b2b621bcf0b295d837f7fd865f50193a1a01a4c7347215ada57aef8d
MD5 2c2604ed8d310f822ef017cb81334553
BLAKE2b-256 1d41a82f4ce53182d199c7dcf82d9990c63a2c88601c063b7730fb8b759d410c

See more details on using hashes here.

Supported by

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