PyARXaaS
Python Package for interfacing with ARXaaS in Python
Read more about PyARXaaS at: https://pyarxaas.readthedocs.io/
Getting Started
Installation
pip install pyarxaas
Basic Usage
# import dependencies
from pyarxaas import ARXaaS
from pyarxaas.privacy_models import KAnonymity
from pyarxaas import AttributeType
from pyarxaas import Dataset
import pandas as pd
arxaas = ARXaaS(url) # url contains url to AaaS web service
df = pd.read_csv("data.csv")
# create Dataset
dataset = Dataset.from_pandas(df)
# set attribute type
dataset.set_attributes(AttributeType.QUASIIDENTIFYING, 'name', 'gender')
dataset.set_attribute(AttributeType.IDENTIFYING, 'id')
# get the risk profle of the dataset
risk_profile = arxaas.risk_profile(dataset)
# get risk metrics
re_indentifiation_risk = risk_profile.re_identification_risk
distribution_of_risk = risk_profile.distribution_of_risk
Metadata
Release files for pyARXaaS 0.5.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyARXaaS-0.5.7.tar.gz | 20.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyARXaaS-0.5.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 55.2 kB
Release files / pyARXaaS-0.5.7.tar.gz
| Download URL | pyARXaaS-0.5.7.tar.gz |
|---|---|
| Size | 20.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1ea308f4eae63e77ff5be9a1d952a2384272bc802440ac1a11c9e2941c5e18e
|
|
BLAKE2b-256 checksum How to use checksums |
c567a2acdf44460083fdc1bfade8d0aaee000d53cf1717d59d87b7e4dedc71d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
|
Release files / pyARXaaS-0.5.7-py3-none-any.whl
| Download URL | pyARXaaS-0.5.7-py3-none-any.whl |
|---|---|
| Size | 35.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
247bbaa31fb2ff61bc42aacafbb1f49cec12167b9816327792cde017bdde1a3f
|
|
BLAKE2b-256 checksum How to use checksums |
0ba09d357ebcaaa2619f1ab81985ed2895eb0012df0926253a6d92e6228a211d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
|