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.1.tar.gz (130.6 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.1-py3-none-any.whl (70.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for privjail-0.1.1.tar.gz
Algorithm Hash digest
SHA256 063bb8cf8b021be6aa37a5e3d8714149ee403d1b7b3e2114d92dc03e37b94b5a
MD5 92e7124092cc644fd85796caf16098d9
BLAKE2b-256 36d5c7f95bf6e34b2cb2307abe6c5e7d7dc5d1b8ea00b99dba45438269ec2827

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for privjail-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c4edb12d91427586a7a34e325682c7dfa8182d74da3cf5fbc0eeeeda3e71be5
MD5 8378155feededbbf275f4f89839e4d90
BLAKE2b-256 db9e1be68a66dd768210b6565aca79662d61269fe89a65ab48e3a1150d9dc705

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