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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file privjail-0.0.3.tar.gz.
File metadata
- Download URL: privjail-0.0.3.tar.gz
- Upload date:
- Size: 3.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76c269338a031b9d2ce27791c049510e700019840ec81b3a47d928d857aed4f9
|
|
| MD5 |
6501d63407a8fdae82ac12ba0f3b8d5a
|
|
| BLAKE2b-256 |
e35150f4099c79a74033e852c2cf60b945bee16b30b18a3047fc91816bb23355
|
File details
Details for the file privjail-0.0.3-py3-none-any.whl.
File metadata
- Download URL: privjail-0.0.3-py3-none-any.whl
- Upload date:
- Size: 45.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8067f8bc8b5c9652c11370db25d7e72de6ddb85919a580e520f01bf622d74185
|
|
| MD5 |
12ef05159517ef850da9189dca3b9b6b
|
|
| BLAKE2b-256 |
1b3c4503bd587c0c724d003376505d79c49e030b8a0131bb451540f8244c4e93
|