A data anonymization toolkit
Project description
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:
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
Release history Release notifications | RSS feed
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 details)
Built Distribution
mysto-0.8.1-py3-none-any.whl
(12.4 kB
view details)
File details
Details for the file mysto-0.8.1.tar.gz
.
File metadata
- Download URL: mysto-0.8.1.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d39d5c41558b3bef4d9aa6a1b50d5724341cc2fa429822f6b4cc0ffe5ceb8338 |
|
MD5 | cc6477e975ed286823d94872475a7791 |
|
BLAKE2b-256 | 89918f731c1b6fa60fe22946fcb2940bd39bd7d8cd506736b59ef8f92f2b3754 |
File details
Details for the file mysto-0.8.1-py3-none-any.whl
.
File metadata
- Download URL: mysto-0.8.1-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef57c7d3d10b62d51be0e6bab146ba0fc76fd6ada27b6274af44b5b289c669c7 |
|
MD5 | 6d1c1a826f2d981e13825169cdd5eea8 |
|
BLAKE2b-256 | 17b5435f41444fea0059405142d280e050ad3cc5f472f62a081b2c450ce5b2fd |