Skip to main content

Local Differential Privacy Toolbox

Project description

LDP Toolbox: Exploring Utility and Attackability Tradeoffs in Local Differential Privacy

PyPI version

LDP Toolbox is a Python package for analyzing, comparing, and visualizing Local Differential Privacy (LDP) protocols and their trade-offs between utility, privacy, and attackability.

This toolbox provides:

  • 📊 Interactive dashboards powered by Dash
  • ⚙️ Protocol implementations for frequency estimation tasks
  • 🗂️ Visual tools to compare utility loss (e.g., MSE, KL-divergence), attackability, and privacy budget ε
  • 📈 Upload your own data to explore privacy-utility trade-offs

🚀 Installation

LDP Toolbox is available on PyPI. Install it with:

pip install ldp-toolbox

⚡ Usage

After installation, you can launch the dashboard in two ways:

✅ Option 1 — Using the CLI (recommended)

Run directly from the terminal:

ldp-toolbox

✅ Option 2 — Using Python module

Alternatively, you can run it as a module:

python -m ldp_toolbox.toolbox.app

Or if you prefer, you can embed the app in your own code:

from ldp_toolbox.toolbox.app import app

if __name__ == "__main__":
    app.run(debug=True)

📁 Project Structure

  • ldp_toolbox/
    • protocols/ — Core LDP protocol implementations
    • toolbox/ — Dash front-end app (assets/, pages/, app.py)

Example datasets (data/) are provided in this repository for demonstration and local testing, but are not shipped with the PyPI package.

🤝 Contributing

LDP-Toolbox is a work in progress, and we expect to release new versions frequently, incorporating feedback and code contributions from the community.

  1. Fork this repo.
  2. Create a feature branch.
  3. Submit a pull request.

📬 Contact Authors:

📝 License

This project is licensed under the MIT License.

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

ldp_toolbox-0.1.3.tar.gz (117.5 kB view details)

Uploaded Source

Built Distribution

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

ldp_toolbox-0.1.3-py3-none-any.whl (120.8 kB view details)

Uploaded Python 3

File details

Details for the file ldp_toolbox-0.1.3.tar.gz.

File metadata

  • Download URL: ldp_toolbox-0.1.3.tar.gz
  • Upload date:
  • Size: 117.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for ldp_toolbox-0.1.3.tar.gz
Algorithm Hash digest
SHA256 cee6d445db220d211d46af84b3cd3adef0631c917c53785c981d96b802c268a7
MD5 ffc2105faba82b3bd8d9cf7c055f3f0c
BLAKE2b-256 317f277d8d908840ec5ddfbe70e604ff8062481f2806bf12420d3d6d252bd4e9

See more details on using hashes here.

File details

Details for the file ldp_toolbox-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: ldp_toolbox-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 120.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for ldp_toolbox-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f84ee48b116200c2e1f32eb1892a4248ae45690d3d3f180a047e27214105c19f
MD5 16bf91334e5536b336f505903aabd867
BLAKE2b-256 6dac521b0df70b2d37e139bf25ba786fb3e92859e50887818aadb0d12b05ef2a

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