Skip to main content

ARXaaS Python wrapper package

Project description

CircleCI Maintainability Test Coverage Documentation Status License: MIT

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

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

pyARXaaS-0.5.7.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

pyARXaaS-0.5.7-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

Details for the file pyARXaaS-0.5.7.tar.gz.

File metadata

  • Download URL: pyARXaaS-0.5.7.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pyARXaaS-0.5.7.tar.gz
Algorithm Hash digest
SHA256 a1ea308f4eae63e77ff5be9a1d952a2384272bc802440ac1a11c9e2941c5e18e
MD5 3143aefb2aea188cd5d84e41aa022a85
BLAKE2b-256 c567a2acdf44460083fdc1bfade8d0aaee000d53cf1717d59d87b7e4dedc71d0

See more details on using hashes here.

File details

Details for the file pyARXaaS-0.5.7-py3-none-any.whl.

File metadata

  • Download URL: pyARXaaS-0.5.7-py3-none-any.whl
  • Upload date:
  • Size: 35.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pyARXaaS-0.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 247bbaa31fb2ff61bc42aacafbb1f49cec12167b9816327792cde017bdde1a3f
MD5 82943cb966bfa5f961223f280dfe132b
BLAKE2b-256 0ba09d357ebcaaa2619f1ab81985ed2895eb0012df0926253a6d92e6228a211d

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