An interface to libprio
A python wrapper around libprio.
This library provides low-level bindings to the reference C implementation of the Prio system and a high-level Python interface.
This project contains a pre-configured build and test environment through docker.
$ docker build -t prio . $ docker run -it prio
This will build the package and run the tests. You can mount your working directory and shell into the container for development work.
$ docker run -v `pwd`:/app -it prio bash
Refer to the Dockerfile and the
libprio submodule for dependencies.
$ make $ make test
libprio is compiled with position-independent code (
This is required for the python foreign-function interface.
$ docker build -t prio . && docker run -it prio
You can avoid rebuilds by mounting your working directory and testing directly within the container.
If you want to avoid the Makefile for tests, the project uses pytest.
$ pipenv sync --dev $ pipenv run pytest
wrapper_example.py includes an example of the full pipeline.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash||File type||Python version||Upload date|
|prio-0.2.tar.gz (207.8 kB) View hashes||Source||None|