Skip to main content

A Python library offering conventional anonymity functions, as well as Workload-Aware anonymity.

Project description

This is a Python library that offers conventional anonymization techniques, utility metrics, and verification methods.

Instalation

You can install the package via the command line:

pip install anonymity-api

Package Description

The package is divided into three different modules, as mentioned previously:

  • anonymity
  • utility
  • verifier

Anonymity

This module contains the functions to anonymize data.

The conventional anonymization functions available are:

  • k-anonymity
  • distinct l-diversity
  • entropy l-diversity
  • recursive (c,l)-diversity
  • t-closeness

Another available function is the suggestion function that, given a dataset and its characteristics ( list with quasi-identifiers and sensitive attributes), suggests an anonymization to use, returning an anonymized dataset without choosing a technique. This is helpful for users who may not know how to anonymize data or aren't familiar with it.

We also offer Workload-Aware anonymization techniques. These take the usual anonymization parameters also present in the conventional anonymization techniques but, in addition to that, the user can give a query representing to work to be done on the dataset. This ensures higher utility over the tasks to be done.

Technique Query
Simple query (quasi-identifier (operation*) value )
Keeping correlation corr( quasi-identifier, sensitive-attribute )
Grouping group( quasi-identifier, value )

*operation can be: >, >=, =, < or <=

Utility

The utility module offers some utility techniques and a function that given an anonymized dataset, replaces the interval on the quasi-identifiers with a value comprehended in it.

The utility metrics available are:

  • Discernibility Metric
  • Average Equivalence Class Size Metric
  • Normalized Certainty Penalty

Verifier

This module given an anonymized dataset offers funtions for each of the conventional techniques in the Anonymization module.

These functions will say which parameter was used to anonymize the dataset. For instance, it would give the K for k-anonymity, l for distinct l-diversity, and so forth.

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

anonymity_api-0.5.2.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

anonymity_api-0.5.2-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

Details for the file anonymity_api-0.5.2.tar.gz.

File metadata

  • Download URL: anonymity_api-0.5.2.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for anonymity_api-0.5.2.tar.gz
Algorithm Hash digest
SHA256 4eb358ac2c2dd4ae7d20b4e04e96f442be87b05fdd955c7bf505a0e6337f09d7
MD5 8099d20361adfa69e23a6c840409c087
BLAKE2b-256 8a71a18f4d1d385e9d5b3a9fd5274103084a23a582cb006ae76ea4af4faafd8d

See more details on using hashes here.

File details

Details for the file anonymity_api-0.5.2-py3-none-any.whl.

File metadata

File hashes

Hashes for anonymity_api-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cf8c1875ce7eaa017bab823853249fabf7f71997beb721953c4020be04d25af6
MD5 c55ec8c1ce5fb0847b5b5196cf44c95a
BLAKE2b-256 258615575f71978c83e903bd11008e20427afc638a1a49b2404dc9ac130bed7e

See more details on using hashes here.

Supported by

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