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.3.tar.gz (13.0 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.3-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

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

Hashes for privattacks-1.3.tar.gz
Algorithm Hash digest
SHA256 8c04105ca122452f25eed7aff413addd7558bca9226ba34d7c5743ebe1f083d7
MD5 c4b8cc41edd94b63162e19b0a3926124
BLAKE2b-256 4b73ff963e48eb8ec88cdb8fe73d0d6dee0e2c2bd3311e75d76cb649cd76bfbb

See more details on using hashes here.

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

Hashes for privattacks-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 22cf901b6973cad0343b8378c2570929701083ba3f988ae75611fd9aa5824df7
MD5 7566987d6b11dd7e38ae1564c21641be
BLAKE2b-256 619fdc90f0f64b0ea3b590e606596c96d9745042a2b36580b4d0f0f90619676b

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