Skip to main content

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

privattacks-1.2.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

privattacks-1.2-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file privattacks-1.2.tar.gz.

File metadata

  • Download URL: privattacks-1.2.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for privattacks-1.2.tar.gz
Algorithm Hash digest
SHA256 f8155aa35534f7c26e08010358aaa4f27969ce7ba59ac8145c599ab44e8e2765
MD5 c414526ed4025ef24f2088d975ea9d83
BLAKE2b-256 9bf150ea9b8a606709826b01f66fec799f27f12fc85e94b7828fed35c7016067

See more details on using hashes here.

File details

Details for the file privattacks-1.2-py3-none-any.whl.

File metadata

  • Download URL: privattacks-1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for privattacks-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 13d9c6eda26446bd97bb6482485336002e6e02dcdb558ad0db3546450319467f
MD5 d8939d3a31bfdf4dadcdb5366a65c91e
BLAKE2b-256 4ba9ab1c6c2bb1035f1d03c60008699ab7e7e0b4bb8737d1206d121de5de86f3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page