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)
- Example Data Analysis
- Working with Unknown Dataset Sizes
- Privatizing Histograms
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.
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.