Skip to main content

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.

Metadata

Release files for mysto 0.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mysto 0.8.1
File Size Uploaded Provenance
mysto-0.8.1.tar.gz 12.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mysto 0.8.1
File Interpreter ABI Platform
mysto-0.8.1-py3-none-any.whl Python 3 none any Details

Total release size: 25.0 kB

Release files / mysto-0.8.1.tar.gz

Download URL mysto-0.8.1.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d39d5c41558b3bef4d9aa6a1b50d5724341cc2fa429822f6b4cc0ffe5ceb8338
BLAKE2b-256 checksum
How to use checksums
89918f731c1b6fa60fe22946fcb2940bd39bd7d8cd506736b59ef8f92f2b3754
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / mysto-0.8.1-py3-none-any.whl

Download URL mysto-0.8.1-py3-none-any.whl
Size 12.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef57c7d3d10b62d51be0e6bab146ba0fc76fd6ada27b6274af44b5b289c669c7
BLAKE2b-256 checksum
How to use checksums
17b5435f41444fea0059405142d280e050ad3cc5f472f62a081b2c450ce5b2fd
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for mysto 0.8.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.8.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page