Skip to main content

A data anonymization toolkit

Project description

Downloads

mysto - Data Anonymization in Python

Requires

This project was built and tested with Python 3.6 and later versions. It requires the pycryptodome and ff3 libraries:

pip3 install pycryptodome pip3 install ff3

Installation

Install this project with pip:

pip3 install mysto

Usage

tbd

Code Example

The code example below can help you get started:

import pandas as pd
from datetime import date
import main 

d = {'SSN': ['938-49-5100', '976-52-7639'], 'date': [date(1994,2,22), date(2000,10,10)]}
df = pd.DataFrame(data=d)
rules = [ '{"column" : "SSN", "type" : "Mask", "format" : "5" }',  '{"column" : "date", "type" : "Generalize.Date"}' ]
out_df = main.anonymize(df, rules)
print(out_df)

Testing

To run unit tests on this implementation:

  1. python3 rules_test.py

Implementation Notes

Author

Brad Schoening

License

This project is licensed under the terms of the Server Side Pubic License.

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

mysto-0.8.1.tar.gz (12.6 kB view hashes)

Uploaded Source

Built Distribution

mysto-0.8.1-py3-none-any.whl (12.4 kB view hashes)

Uploaded Python 3

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