Skip to main content

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.

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.2.tar.gz (212.5 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.2-py3-none-any.whl (130.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: privjail-0.1.2.tar.gz
  • Upload date:
  • Size: 212.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for privjail-0.1.2.tar.gz
Algorithm Hash digest
SHA256 910637f03ca9f899cdb914b31956125567ad52613cab48d32a8bef74d420273e
MD5 5f24741a1c3528729a7014c11bfdd681
BLAKE2b-256 3bacd684f7b75f600cd863859ddd6bf6d4eda5f93b186ee0422872c1496537ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: privjail-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 130.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for privjail-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 680724e891e7ed5a39f08e9d55c04ff39ee14004f6bf53fa3ce6cc1e5f997367
MD5 bf52f03330c2688a5273ef811f3c2bfa
BLAKE2b-256 a5cadc75401e69e5d17ab2e4ec635537dfca8ee749b8f83d05ede6d74e306b1c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

0.0.3

2 files

0.0.2

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page