Skip to main content

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.

[!NOTE] This software is part of the OpenDP Commons. As such, the OpenDP Executive Committee commits to:

  • Releasing this software under an OSI approved license, in this case the MIT License.
  • Ensuring there are at least two maintainers, in this case Eddie de Leon (eddiestudies) and Chuck McCallum (mccalluc), who will respond within a week to new issues and PRs.
  • Only making changes on main through PRs, and getting approval on these PRs before merging.
  • On an annual basis, recruiting one or more volunteers (not active contributors) who will conduct a health-check, focused not on the details of the algorithms but on the health of this repo as open source software. Their report will be linked here. The next (and first) health-check is scheduled for September 2026.

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

Options for running DP Wizard:

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 or TSV 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 or TSVs 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.

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.10.0.tar.gz (437.0 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.10.0-py2.py3-none-any.whl (128.2 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for dp_wizard-0.10.0.tar.gz
Algorithm Hash digest
SHA256 3143ec27467f561d0eacba72418a42982934a25011a3853257f9408f4991c8f4
MD5 eed04ac70f790d08f06f5614ededf534
BLAKE2b-256 ace93bd51b7d8d73d21cf4e95ddd86d8db2c40425221d8fa6bfd538a252db970

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dp_wizard-0.10.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 128.2 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.10.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0bef1243a21180044c82a8c8ab914eb479206b4e24423aed2735e4f48f511cd2
MD5 f543a5a31abdb1faf5c6e4e63cdf6d90
BLAKE2b-256 56bc44c959f2235e734b275ba14415c980766ac0bf925bf7d50ef2b4ef262fa3

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 Sentry Error logging StatusPage Status page