Skip to main content

Enforcing differential privacy in Python

Project description

PrivJail

PrivJail (Privacy Jail) enforces differential privacy in Python.

Warning: This project is in development and not recommended for production use.

Security and stability are not guaranteed, and breaking changes may occur. Use at your own risk.

Getting Started

To install PrivJail:

pip install privjail

To run a decision tree example:

cd examples/
./download_dataset_adult.bash
python decision_tree.py

Development

This project is managed using uv.

Launch a REPL with PrivJail loaded:

uv run python

Test:

uv run pytest

Type check:

uv run mypy --strict src/ test/

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Copyright 2025 TOYOTA MOTOR CORPORATION.

Project details


Download files

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

Source Distribution

privjail-0.1.0.tar.gz (126.0 kB view details)

Uploaded Source

Built Distribution

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

privjail-0.1.0-py3-none-any.whl (89.1 kB view details)

Uploaded Python 3

File details

Details for the file privjail-0.1.0.tar.gz.

File metadata

  • Download URL: privjail-0.1.0.tar.gz
  • Upload date:
  • Size: 126.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.5

File hashes

Hashes for privjail-0.1.0.tar.gz
Algorithm Hash digest
SHA256 abe1a9c2653a1b3de4342cddde647d85e1ba25cb8059e00532602c87f3094133
MD5 38abd4f9dc2cdd4ef921ce8948c55857
BLAKE2b-256 19847b7fc9334c068b8e746d115283ea67017e4060cb8ccae78b3a651765d417

See more details on using hashes here.

File details

Details for the file privjail-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: privjail-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 89.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.5

File hashes

Hashes for privjail-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32f0c2cd66af2919a8bc45c902da927e5bf01b3bd1948c8466f46e699e02ff0b
MD5 f74e1576794a7de6dcf2bdc8a627ca55
BLAKE2b-256 b41c586bddec6ecb6b7079b28a77ffd68a0645f22c7a3751e10199223b02289d

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