Collection of Python modules for masking PHI in delimited files and Excel worksheets.
Project description
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.
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
phi_masker_utils-0.1.1.tar.gz
(16.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file phi_masker_utils-0.1.1.tar.gz.
File metadata
- Download URL: phi_masker_utils-0.1.1.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d01313db35456695022958dcad6bb4c0e98801bee57e0dd9d24b02dd3aceac5
|
|
| MD5 |
5208a1176bec43cc0284d45f665e0a0d
|
|
| BLAKE2b-256 |
9ecf5ac49ac852ca4b0d7b4eac9ecfb83cf2b18a7eeb9829d423d192d92853b9
|
File details
Details for the file phi_masker_utils-0.1.1-py3-none-any.whl.
File metadata
- Download URL: phi_masker_utils-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0fee115cead664d6beaf3648797ab9dc0d5b9824b7a534363378eb6046c4426
|
|
| MD5 |
ffd6014514fa8cc4943fe10eeed145b9
|
|
| BLAKE2b-256 |
25f9c8381f01d6d0c5ed9d04e0c52a8ffad3edb5d96b7832b8409580d1d27d98
|