Skip to content
A python library that implements a number of Privacy Enhancing Technolgies
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
contrib
docs Support for both OpenSSL 1.0.x and 1.1.x (#19) May 26, 2019
examples Added examples to the standard test suite Jan 5, 2018
petlib Merge branch 'master' of https://github.com/gdanezis/petlib May 27, 2019
utils Removed paver Jan 5, 2018
.gitignore Support for both OpenSSL 1.0.x and 1.1.x (#19) May 26, 2019
.travis.yml Support for both OpenSSL 1.0.x and 1.1.x (#19) May 26, 2019
CONTRIBUTORS.txt Support for both OpenSSL 1.0.x and 1.1.x (#19) May 26, 2019
LICENSE.txt Added docs Nov 23, 2014
MANIFEST.in Support for both OpenSSL 1.0.x and 1.1.x (#19) May 26, 2019
README.rst Support for both OpenSSL 1.0.x and 1.1.x (#19) May 26, 2019
pavement.py Fix pavement script for python 3 Jan 5, 2018
pylintrc The pylint config Jan 2, 2015
requirements.txt Fix travis Jan 7, 2018
setup.py Support for both OpenSSL 1.0.x and 1.1.x (#19) May 26, 2019
tox.ini Support for both OpenSSL 1.0.x and 1.1.x (#19) May 26, 2019

README.rst

petlib

A python library that implements a number of Privacy Enhancing Technologies (PETs).

Pre-requisites

On Ubuntu / debian use apt-get to install package libssl-dev. Ensure you also install libffi-dev and python-dev:

sudo apt-get install python-dev
sudo apt-get install libssl-dev
sudo apt-get install libffi-dev

On MacOS, install OpenSSL 1.1.x using homebrew:

brew install openssl@1.1

On Windows, install 32 bit or 64 bit OpenSSL binary edition matching your Python installation. Ensure libeay32.dll is on the system PATH (https://www.openssl.org/related/binaries.html). Configure the path variables of Microsoft VS compilers for 32 bit or 64 bit architectures, by executing the command vcvars32.bat or vcvarsx86_amd64.bat.

Quick install

If you have pip installed the following command should install petlib:

pip install petlib

Test your installation:

python -c "import petlib; petlib.run_tests()"

Build & Test

You may use setuptools and tox to build and test the library:

python setup.py build_ext

To run all tests simply do:

tox
You can’t perform that action at this time.