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)
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
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.