Skip to main content

python-challenge-bypass-ristretto

Python bindings for Brave's privacy pass library using the provided ffi APIs.

Usage

The API largely mirrors that of the underlying Rust library with a few classes thrown in. For example:

>>> from challenge_bypass_ristretto import  RandomToken
>>> print(RandomToken.create().blind().encode_base64())
QxE220HfZvvOJSNdDx3hgYNfQntxeT+mkRr55LNMNyYdXdFOfkrHRoQz+MXlqfyoiWPWc7dG3k4sa5ZWDv+9WtPkZf1uZVhTwBW4YKgyPXK3jj4Ig7kKDjcGMGtoCdgJ

How to install

Binary wheels for Linux (manylinux2010), macOS, and Windows are distributed on PyPI.

pip install python-challenge-bypass-ristretto

How to build

The Rust FFI library is a git submodule, so to clone all sources needed for a build:

git clone --recursive https://github.com/LeastAuthority/python-challenge-bypass-ristretto

Then, with the Rust and Python toolchains installed:

python setup.py build sdist bdist_wheel
pip install --editable .

There is also Nix-based package which manages most of this complexity for you and only requires a checkout:

nix-build

License

Currently the same license as the Brave's library, Mozilla Public License v2.

Copyright

Least Authority TFA GmbH

Metadata

Release files for python-challenge-bypass-ristretto 2022.6.30

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for python-challenge-bypass-ristretto 2022.6.30
File
python_challenge_bypass_ristretto-2022.6.30-py2.py3-none-win_amd64.whl Python 2, Python 3 none Windows x86-64 Details
python_challenge_bypass_ristretto-2022.6.30-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl Python 3, Python 2 none Linux glibc 2.5+ x86-64, Linux glibc 2.12+ x86-64 Details
python_challenge_bypass_ristretto-2022.6.30-py2.py3-none-macosx_11_0_x86_64.whl Python 3, Python 2 none macOS 11.0+ x86-64 Details
python_challenge_bypass_ristretto-2022.6.30-py2.py3-none-macosx_10_15_x86_64.whl Python 2, Python 3 none macOS 10.15+ x86-64 Details

Total release size: 1.7 MB

Release files / python_challenge_bypass_ristretto-2022.6.30-py2.py3-none-win_amd64.whl

Download URL python_challenge_bypass_ristretto-2022.6.30-py2.py3-none-win_amd64.whl
Size 160.6 kB
Tags Python 2 Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
67a54ea3ab480b08bdc07ededaf41619f765b4da3d7e45913405c32311ab08fd
BLAKE2b-256 checksum
How to use checksums
d7652291309cd706548519b294f05b0099cba27cbcc27fce09e2d3f51402320d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / python_challenge_bypass_ristretto-2022.6.30-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl

Download URL python_challenge_bypass_ristretto-2022.6.30-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Size 1.0 MB
Tags Linux glibc 2.12+ x86-64 Linux glibc 2.5+ x86-64 Python 2 Python 3
SHA-256 checksum
How to use checksums
88ce3693e14a7369fecc9e7dc023b2d07b66a4038d89514d2995c13934720827
BLAKE2b-256 checksum
How to use checksums
e32b8042cfde4f3159ff17fdfe591eb8384f8392400b057081fc35bba7b8c7af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/2.7.17

Release files / python_challenge_bypass_ristretto-2022.6.30-py2.py3-none-macosx_11_0_x86_64.whl

Download URL python_challenge_bypass_ristretto-2022.6.30-py2.py3-none-macosx_11_0_x86_64.whl
Size 260.3 kB
Tags Python 2 Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
1c28f4eb6fc00896f787df4910bf4b472a41fe230de6e0d9093996547d9c81ef
BLAKE2b-256 checksum
How to use checksums
20be73fc7b234105497ed880283434adfe919b9c6711db43e8655f1a9f3a67f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.9

Release files / python_challenge_bypass_ristretto-2022.6.30-py2.py3-none-macosx_10_15_x86_64.whl

Download URL python_challenge_bypass_ristretto-2022.6.30-py2.py3-none-macosx_10_15_x86_64.whl
Size 260.3 kB
Tags Python 2 Python 3 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
2059e46a01f5ce8b890f4d694a862924c1df19e8a31a54325efc79bab1597ccf
BLAKE2b-256 checksum
How to use checksums
02b991d13cbd1df3de398c9ee9416d000facd753eaf429dd6d63470d6f40e0d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.1

Release history Release notifications | RSS feed

This release

2022.6.30 This release

4 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page