This code contains:
- Code to support developing attacks on anonymized data using the Anonymity Loss Coefficient.
- A set of attacks.
- Example code for composing new attacks, running the the existing attacks, and interfacing with the existing attacks in Python.
For users only interested in running existing attacks, the scripts directory contains those attacks. Please see scripts/README.md for more information.
The directory anonymity_loss_coefficient/alc contains the code that is used by attacks to produce the ALC measures. The ALCManager class in anonymity_loss_coefficient/alc/alc_manager.py contains the API for access to this functionality.
The directory anonymity_loss_coefficient/attacks contains the attacks themselves, one sub-directory per attack. These use the ALCManager class.
For users interested in developing new attacks, scripts/generic_example.md outlines the basic usage of the ALCManager to run attacks. Another example can be found in tests/test_alcmanager.py. More generally, the attacks themselves also serve as additional examples.
pip install anonymity-loss-coefficient
pytest -s --log-level=WARNING tests/
-s to force printing to sysout
The log level is to prevent numerous logging statements
remove the dist/ directory
Update the version in setup.py
python setup.py sdist bdist_wheel
twine upload dist/*