Skip to main content

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)

Source distribution for phi-masker-utils 0.1.1
File Size Uploaded
phi_masker_utils-0.1.1.tar.gz 16.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for phi-masker-utils 0.1.1
File Interpreter ABI Platform
phi_masker_utils-0.1.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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