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

pypyARXaaS-0.0.1.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypyARXaaS-0.0.1-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

Details for the file pypyARXaaS-0.0.1.tar.gz.

File metadata

  • Download URL: pypyARXaaS-0.0.1.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.0

File hashes

Hashes for pypyARXaaS-0.0.1.tar.gz
Algorithm Hash digest
SHA256 82116328b5d2f219a337ad5cead9644b09a0f86ca263abcd52b4fa6c9a5140dd
MD5 124fb6c6cf7d5c5412e01a24ae3bb304
BLAKE2b-256 dd5394aa34196c59eb49c28f684c41c7237a531f13c90d95777bdd83c0cd28fd

See more details on using hashes here.

File details

Details for the file pypyARXaaS-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pypyARXaaS-0.0.1-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/42.0.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.0

File hashes

Hashes for pypyARXaaS-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cc8c8429835c3aded6f4ab20194b82b866aad635c13c1ef3abc3056cc0fb3b99
MD5 00c6bbbbd5dc6d0724c0b9dcd06e03cf
BLAKE2b-256 d38f2522cbb4650a27b3843cca760f197e66550f5443421ab1a80c2e9f028aa8

See more details on using hashes here.

Supported by

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