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.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.0.2.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

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

privjail-0.0.2-py3-none-any.whl (37.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for privjail-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8aff3ffeaebc08f035f3ee3cb5ddaa36139a8eb061cfddf2276fb85545885c7e
MD5 978991aea6aa1800ffbcfcebfd805a4e
BLAKE2b-256 9e0c25a85dec179d7bd37d0bcd230156752a9ed10fef0b62c4db4c3d14a0dfac

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for privjail-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fd2d4821d203a5dc9076083fb729403122973fc273dfa32420fae3164fe34e48
MD5 e5cb8a906d466087a3cf93ac8c289027
BLAKE2b-256 458d237fb8e5f0af86a050bdfd385f8968d5fc82d8db38ee55c1459ebdf3a248

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