Skip to main content

An interface to libprio

Project description



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.


Docker (recommended)

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 (fPIC). 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

Running examples

The includes an example of the full pipeline.

Project details

Download files

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

Files for prio, version 0.2
Filename, size & hash File type Python version Upload date
prio-0.2.tar.gz (207.8 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page