Skip to main content

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.

Metadata

Release files for privattacks 1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for privattacks 1.4
File Size Uploaded Provenance Actions
privattacks-1.4.tar.gz 13.0 kB Without provenance Details for privattacks-1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for privattacks 1.4
File Interpreter ABI Platform Actions
privattacks-1.4-py3-none-any.whl Python 3 none any Details for privattacks-1.4-py3-none-any.whl

Total release size: 24.0 kB

Release files / privattacks-1.4.tar.gz

Download URL privattacks-1.4.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9e948975f5cf7aa9a16e80445fdd4d6a6d9dd032d09de894e5338d5a7fbc5546
BLAKE2b-256 checksum
How to use checksums
bde46762b626195547333324ba16425367547d542e9bd6ed30f0c4b4ff4f72b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.9

Release files / privattacks-1.4-py3-none-any.whl

Download URL privattacks-1.4-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
011eb4d876d96982168ef7111a576fe5f7f75a88e0ce75639eb4406235192c14
BLAKE2b-256 checksum
How to use checksums
5d569fe2d3f4b6dfbf1d308b540b7b26692fc4c08b8ad99f0fde4f88c4a72265
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.9

Security for privattacks 1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page