PHI Masker Utils
Collection of Python modules for masking PHI in delimited files and Excel worksheets.
Usage
from phi_masker_utils import Masker
config_file = "conf/config.yaml"
config = yaml.safe_load(Path(config_file).read_text())
# Tab-delimited file
infile = "my.tsv"
outfile = "my_masked.tsv"
# Or comma-separated file
infile = "my.csv"
outfile = "my_masked.csv"
masker = Masker(
config=config,
config_file=config_file,
infile=infile,
logfile=logfile,
outdir=outdir,
outfile=outfile,
verbose=verbose,
)
masker.mask_phi_values()
Exported Script
mask-file --infile ~/projects/phi-masker-utils/labguru_mockup.csv --outdir .
--config_file was not specified and therefore was set to
'/tmp/phi-masker-utils/venv/lib/python3.10/site-packages/phi_masker_utils/conf/config.yaml'
--logfile was not specified and therefore was set to './mask_file.log'
--outfile was not specified and therefore was set to './labguru_mockup.csv'
History
0.1.0 (2024-09-15)
First release on PyPI.
Metadata
Release files for phi-masker-utils 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| phi_masker_utils-0.1.1.tar.gz | 16.1 kB | Without provenance | Details for phi_masker_utils-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| phi_masker_utils-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for phi_masker_utils-0.1.1-py3-none-any.whl |
Total release size: 28.6 kB
Release files / phi_masker_utils-0.1.1.tar.gz
| Download URL | phi_masker_utils-0.1.1.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d01313db35456695022958dcad6bb4c0e98801bee57e0dd9d24b02dd3aceac5
|
|
BLAKE2b-256 checksum How to use checksums |
9ecf5ac49ac852ca4b0d7b4eac9ecfb83cf2b18a7eeb9829d423d192d92853b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / phi_masker_utils-0.1.1-py3-none-any.whl
| Download URL | phi_masker_utils-0.1.1-py3-none-any.whl |
|---|---|
| Size | 12.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a0fee115cead664d6beaf3648797ab9dc0d5b9824b7a534363378eb6046c4426
|
|
BLAKE2b-256 checksum How to use checksums |
25f9c8381f01d6d0c5ed9d04e0c52a8ffad3edb5d96b7832b8409580d1d27d98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Security for phi-masker-utils 0.1.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.