anonymity-api


Nameanonymity-api JSON
Version 0.5.2 PyPI version JSON
download
home_pagehttps://github.com/farosilva0/anonymity_api
SummaryA Python library offering conventional anonymity functions, as well as Workload-Aware anonymity.
upload_time2024-06-27 08:46:32
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseMIT
keywords anonymity privacy
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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:

```bat
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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/farosilva0/anonymity_api",
    "name": "anonymity-api",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "anonymity privacy",
    "author": null,
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/8a/71/a18f4d1d385e9d5b3a9fd5274103084a23a582cb006ae76ea4af4faafd8d/anonymity_api-0.5.2.tar.gz",
    "platform": null,
    "description": "This is a Python library that offers conventional anonymization techniques, utility metrics, and verification methods.\r\n\r\n# Instalation\r\n\r\nYou can install the package via the command line:\r\n\r\n```bat\r\npip install anonymity-api\r\n```\r\n\r\n# Package Description\r\n\r\nThe package is divided into three different modules, as mentioned previously:\r\n* anonymity\r\n* utility\r\n* verifier\r\n\r\n## Anonymity\r\n\r\nThis module contains the functions to anonymize data.\r\n\r\nThe conventional anonymization functions available are:\r\n* k-anonymity\r\n* distinct l-diversity\r\n* entropy l-diversity\r\n* recursive (c,l)-diversity\r\n* t-closeness\r\n\r\nAnother 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.\r\n\r\nWe 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.\r\n\r\n| Technique|      Query|\r\n|----------|:-------------:|\r\n| Simple query |  (*quasi-identifier* (operation*) *value* ) |\r\n| Keeping correlation|    corr( *quasi-identifier*, *sensitive-attribute* )|\r\n| Grouping | group( *quasi-identifier*, *value* ) |\r\n\r\n*operation can be: >, >=, =, < or <=\r\n\r\n## Utility\r\n\r\nThe 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.\r\n\r\nThe utility metrics available are:\r\n* Discernibility Metric\r\n* Average Equivalence Class Size Metric\r\n* Normalized Certainty Penalty\r\n\r\n## Verifier\r\n\r\nThis module given an anonymized dataset offers funtions for each of the conventional techniques in the Anonymization module.\r\n\r\nThese 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.\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A Python library offering conventional anonymity functions, as well as Workload-Aware anonymity.",
    "version": "0.5.2",
    "project_urls": {
        "Homepage": "https://github.com/farosilva0/anonymity_api"
    },
    "split_keywords": [
        "anonymity",
        "privacy"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "258615575f71978c83e903bd11008e20427afc638a1a49b2404dc9ac130bed7e",
                "md5": "c55ec8c1ce5fb0847b5b5196cf44c95a",
                "sha256": "cf8c1875ce7eaa017bab823853249fabf7f71997beb721953c4020be04d25af6"
            },
            "downloads": -1,
            "filename": "anonymity_api-0.5.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c55ec8c1ce5fb0847b5b5196cf44c95a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 21317,
            "upload_time": "2024-06-27T08:46:30",
            "upload_time_iso_8601": "2024-06-27T08:46:30.783487Z",
            "url": "https://files.pythonhosted.org/packages/25/86/15575f71978c83e903bd11008e20427afc638a1a49b2404dc9ac130bed7e/anonymity_api-0.5.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8a71a18f4d1d385e9d5b3a9fd5274103084a23a582cb006ae76ea4af4faafd8d",
                "md5": "8099d20361adfa69e23a6c840409c087",
                "sha256": "4eb358ac2c2dd4ae7d20b4e04e96f442be87b05fdd955c7bf505a0e6337f09d7"
            },
            "downloads": -1,
            "filename": "anonymity_api-0.5.2.tar.gz",
            "has_sig": false,
            "md5_digest": "8099d20361adfa69e23a6c840409c087",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 15105,
            "upload_time": "2024-06-27T08:46:32",
            "upload_time_iso_8601": "2024-06-27T08:46:32.604013Z",
            "url": "https://files.pythonhosted.org/packages/8a/71/a18f4d1d385e9d5b3a9fd5274103084a23a582cb006ae76ea4af4faafd8d/anonymity_api-0.5.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-27 08:46:32",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "farosilva0",
    "github_project": "anonymity_api",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "anonymity-api"
}
        
Elapsed time: 0.28200s