This documentation is for an old version of OpenDP.

The current release of OpenDP is v0.11.1.

Quickstart#

The easiest way to get started with OpenDP is from Python. Use pip to install the opendp package from PyPI.

pip install opendp

This will make the OpenDP modules available to your local environment.

Hello, OpenDP!#

Once you’ve installed OpenDP, you can write your first program. In the example below, we’ll construct an identity opendp.mod.Transformation, then invoke it on a dataset of strings.

>>> from opendp.trans import make_identity
>>> from opendp.typing import SymmetricDistance, VectorDomain, AllDomain
...
>>> identity = make_identity(D=VectorDomain[AllDomain[str]], M=SymmetricDistance)
>>> identity(["Hello, world!"])
['Hello, world!']

There’s a more thorough explanation in the Getting Started section.

If you would like to skip directly to a more complete example, see Putting It Together.

Otherwise, continue on to the User Guide.