Skip to main content

AaaS Python wrapper

Project description

Build Status Maintainability Test Coverage Documentation Status

PyAaaS

Python Package for interfacing with ARXaaS in Python

Read more about PyAaaS at: https://pyaaas.readthedocs.io/

Getting Started

Installation

pip install pyaaas

Basic Usage

   from pyaaas.aaas import AaaS
   from pyaaas.models.privacy_models import KAnonymity
   from pyaaas.attribute_type import AttributeType
   from pyaaas.dataset import Dataset
   import pandas as pd

   aaas = AaaS(url) # url contains url to AaaS web service

   df = pd.read_csv("data.csv", sep=";")

   # create Dataset
   dataset = Dataset.from_pandas(data_df)


   # set attribute type
   dataset.set_attributes(['name','gender'], AttributeType.QUASIIDENTIFYING)
   dataset.set_attribute('id', AttributeType.IDENTIFYING)

   # get the risk profle of the dataset
   risk_profile = aaas.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.

Filename, size & hash SHA256 hash help File type Python version Upload date
PyAaaS-0.2.3.tar.gz (17.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page