Tools for tracking differential privacy budgets
Actively maintained. Last release 3 weeks ago, commits in 24 of the last 26 weeks. A safe choice.
pip install dp-accountingREADME as published on PyPI with version 0.7.0. The README on GitHub describes the whole google/differential-privacy project.
Differential Privacy Accounting
This directory contains tools for tracking differential privacy budgets, available as part of the Google differential privacy library.
The set of DpEvent classes allow you to describe complex differentially private mechanisms such as Laplace and Gaussian, subsampling mechanisms, and their compositions. The PrivacyAccountant classes can ingest DpEvents and return the ε, δ of the composite mechanism. Privacy Loss Distributions (PLDs) and RDP accounting are currently supported.
API documentation is available on ReadTheDocs.
More detailed definitions and references about PLDs can be found in our supplementary pdf document.
Our library only supports Python version >= 3.10. We test this library on Linux with Python version 3.10. If you experience any problems, please file an issue on GitHub, also for other platforms or Python versions.