semvec/pypi-packages huggingface dataset:
hotreload 2020.6.12.15.23.48
Run any arbitrary python script every time the code changes in the file.
Requires Python: >=3.6

<h1 align="center">
    <img src="https://raw.githubusercontent.com/say4n/hotreload/master/assets/hotreload.py.svg"
    style="background-color:rgba(0,0,0,0);" height=230 alt="hotreload: hot reload your python code!">
    <br>
    hotreload.py
    <br>
    <sup><sub><sup>hot reload your python code!</sup></sub></sup>
    <br>
</h1>

Run any arbitrary python script every time the code changes in the file.

## installation

Get the package from PyPI with `pip3 install hotreload`.

## usage

Say you have script (`script.py`) that you want to run every time the code
changes in that file.

To do that, it is as simple as doing this:

```python
import time
import logging
from hotreload import Loader


if __name__ == "__main__":
    logging.basicConfig(level=logging.INFO)
    script = Loader("script.py")

    while True:
        # Check if script has been modified since last poll.
        if script.has_changed():
            # Execute a function from script if it has been modified.
            script.main()

        time.sleep(1)
```

### author

Sayan Goswami &copy; 2020
pypyARXaaS 0.0.1
ARXaaS Python wrapper package
Keywords: anonymization ARX ARXaaS ARX-as-a-Service

[![CircleCI](https://circleci.com/gh/navikt/PyARXaaS.svg?style=svg)](https://circleci.com/gh/navikt/PyARXaaS)
[![Maintainability](https://api.codeclimate.com/v1/badges/d4f7e73c09cb1affea99/maintainability)](https://codeclimate.com/github/navikt/PyARXaaS/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/d4f7e73c09cb1affea99/test_coverage)](https://codeclimate.com/github/navikt/PyARXaaS/test_coverage)
[![Documentation Status](https://readthedocs.org/projects/pyarxaas/badge/?version=latest)](https://pyarxaas.readthedocs.io/en/latest/?badge=latest)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

# PyARXaaS

Python Package for interfacing with ARXaaS in Python

Read more about PyARXaaS at: https://pyarxaas.readthedocs.io/


## Getting Started

#### Installation

````bash
pip install pyarxaas

````

#### Basic Usage

````python

   # 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
````