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 (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#
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.