Examples#
Python Docs#
There are a few useful examples embedded in the user guide and API docs:
Don’t miss the conclusion of the user-guide!
base_discrete_laplace in Constructors and Functions (user guide)
DP-sum in Chaining (user guide)
count in
opendp.mod.Transformation
(API docs)DP-mean in
opendp.mod.Measurement
(API docs)
Python Notebooks#
Example notebooks can be found in python/example in the OpenDP library source tree.
You can open and run these notebooks online in Binder (navigate to python/example
).
Rust Examples#
See the OpenDP rust documentation for examples on how to use the Rust API.
The Rust API is nearly identical to the Python API, except that explicit type arguments in the python API are generics.
There is also a tiny demo crate for wiring up your own FFI language bindings.
Applications#
DPCreator, a part of the OpenDP Commons, is based on the OpenDP library.
Please let us know if you are building applications with the library.