Privattacks is a Python package for evaluating privacy risks in tabular datasets. It provides tools to quantify re-identification and attribute inference vulnerabilities based on combinations of quasi-identifiers an adversary knows about a target. The package supports both high-level and granular analysis, including per-record vulnerability distributions, multiprocessing for efficiency, and flexible input handling via pandas DataFrames and other sources.
Project description
privattacks
Privattacks is a Python package for evaluating privacy risks in tabular datasets. It provides tools to quantify re-identification and attribute inference vulnerabilities based on combinations of quasi-identifiers an adversary knows about a target. The package supports both high-level and granular analysis, including per-record vulnerability distributions, multiprocessing for efficiency, and flexible input handling via pandas DataFrames and other sources.
Documentation
The documentation is available at https://privattacks.readthedocs.io.
Available tools
- Prior vulnerability for re-identification and attribute inference.
- Posterior vulnerability for a given combination of qids and/or sensitive attribute.
- Posterior vulnerability for a subset of all possible combinations of QIDs.
- Parellel code.
- Generate the histogram of vulnerabilities (i.e., vulnerability per record).
Installation
You can install via PyPI:
pip install privattacks
or manuallly by copying this repository to your local machine and running:
pip install path/to/privattacks
To verify if the package was install corretly, you can run tests:
cd path/to/privattacks
python -m unittest discover tests
License
This project is licensed under the MIT License – see the LICENSE file for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file privattacks-1.3.tar.gz.
File metadata
- Download URL: privattacks-1.3.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c04105ca122452f25eed7aff413addd7558bca9226ba34d7c5743ebe1f083d7
|
|
| MD5 |
c4b8cc41edd94b63162e19b0a3926124
|
|
| BLAKE2b-256 |
4b73ff963e48eb8ec88cdb8fe73d0d6dee0e2c2bd3311e75d76cb649cd76bfbb
|
File details
Details for the file privattacks-1.3-py3-none-any.whl.
File metadata
- Download URL: privattacks-1.3-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22cf901b6973cad0343b8378c2570929701083ba3f988ae75611fd9aa5824df7
|
|
| MD5 |
7566987d6b11dd7e38ae1564c21641be
|
|
| BLAKE2b-256 |
619fdc90f0f64b0ea3b590e606596c96d9745042a2b36580b4d0f0f90619676b
|