Skip to main content

DP Wizard makes it easier to get started with Differential Privacy.

Project description

DP Wizard

pypi

DP Wizard makes it easier to get started with differential privacy, the addition of calibrated noise to aggregate statistics to protect the privacy of individuals. DP Wizard demonstrates how to calculate DP statistics or create a synthetic dataset from the data you provide.

If differential privacy is new to you, these slides provide some background, and explain how DP Wizard works.

Options for running DP Wizard:

  • No install online demo: Does not support data upload.
  • Install from Docker: docker run -p 8000:8000 mccalluc/dp-wizard
  • Install from PyPI: pip install 'dp-wizard[app]'; dp-wizard
  • Install from source: See developer instructions.

See the FAQ for more information.

Screenshots

Select Dataset: Screenshot with a "Data Source" panel on the left, and "Unit of Protection" and "Product" on the right.

Define Analysis: Screenshot with four panels: "Columns", "Grouping", "Privacy Budget", and "Simulation".

Download Results: Screenshot with links to download analysis results".

Usage

DP Wizard requires Python 3.10 or later. You can check your current version with python --version. The exact upgrade process will depend on your environment and operating system.

Install with pip install 'dp_wizard[pins]' and you can start DP Wizard from the command line.

usage: dp-wizard [-h] [--demo] [--host HOST] [--port PORT] [--no_browser] [--reload]

DP Wizard makes it easier to get started with Differential Privacy.

options:
  -h, --help    show this help message and exit
  --demo      Generate a demo CSV: See how DP Wizard works without providing your own data
  --host HOST   Bind socket to this host
  --port PORT   Bind socket to this port. If 0, a random port will be used.
  --no_browser  By default, a browser is started; Enable this for no browser.
  --reload      Enable to watch source directory and reload on changes.

Unless you have set "--demo", you will specify a CSV inside the application.

Provide a "Private Data" if you only have a private data set, and want to
make a release from it: The preview visualizations will only use
simulated data, and apart from the headers, the private data is not
read until the release.

Provide a "Public Data" if you have a public data set, and are curious how
DP can be applied: The preview visualizations will use your public data.

Provide both if you have two CSVs with the same structure.
Perhaps the public data is older and no longer sensitive. Preview
visualizations will be made with the public data, but the release will
be made with private data.

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

dp_wizard-0.9.0.tar.gz (434.1 kB view details)

Uploaded Source

Built Distribution

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

dp_wizard-0.9.0-py2.py3-none-any.whl (127.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file dp_wizard-0.9.0.tar.gz.

File metadata

  • Download URL: dp_wizard-0.9.0.tar.gz
  • Upload date:
  • Size: 434.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.4

File hashes

Hashes for dp_wizard-0.9.0.tar.gz
Algorithm Hash digest
SHA256 9f83aaac52546d93373330f7282fafa92b7b8f40b7d1ddedc41e4c1599beb272
MD5 e83fdb49a444b5373d1bb07b01c062c6
BLAKE2b-256 b6edc7f590e7cd5451afbde878bd3a8a5cca3d272b3df664dde2e891277252a6

See more details on using hashes here.

File details

Details for the file dp_wizard-0.9.0-py2.py3-none-any.whl.

File metadata

  • Download URL: dp_wizard-0.9.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 127.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.4

File hashes

Hashes for dp_wizard-0.9.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3d0a1ce55be8128842d65419b4aee618a04b7d2c305d81325f21277ec27b9cb9
MD5 1e88f96d894bf4fcf5a1222edaa18a48
BLAKE2b-256 4ad5945b0b86c6979cdce626ba41fe6c4b1f4f619ee3dc6e62d1c5e069ccb146

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