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.4.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.4-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: privattacks-1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 9e948975f5cf7aa9a16e80445fdd4d6a6d9dd032d09de894e5338d5a7fbc5546
MD5 c17a5fb76b0351c57923f35aefc8f308
BLAKE2b-256 bde46762b626195547333324ba16425367547d542e9bd6ed30f0c4b4ff4f72b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: privattacks-1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 011eb4d876d96982168ef7111a576fe5f7f75a88e0ce75639eb4406235192c14
MD5 c7f30ce40d84514d42487eb55e1a880e
BLAKE2b-256 5d569fe2d3f4b6dfbf1d308b540b7b26692fc4c08b8ad99f0fde4f88c4a72265

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