Skip to main content

Collection of tools to check uploaded scans and records for identifiable data.

Project description

PHI-finder

CI/CD Codecov

Local testing (docker required)

conda create -n phi-finder python==3.11
conda activate phi-finder
pip install -e .[dev,test] --no-cache-dir
pytest .

Building

python -m pip install --upgrade build

python -m build

pip install dist/phi_finder-0.1.11-py3-none-any.whl

Basic usage

import pydicom as dicom
from phi_finder.dicom_tools import anonymise_dicom

dcm = dicom.dcmread("/path/to/some/dicom.dcm")
anonymised_dcm = anonymise_dicom.anonymise_image(dcm)
anonymised_dcm.save_as('/path/to/some/dicom_anon.dcm')


import pydicom as dicom
from phi_finder.dicom_tools import anonymise_dicom

dcm = dicom.dcmread("0012.DCM")
anonymised_dcm = anonymise_dicom.anonymise_image(dcm)
anonymised_dcm.save_as('0012b.DCM')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

phi_finder-0.1.11.tar.gz (52.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

phi_finder-0.1.11-py3-none-any.whl (52.1 kB view details)

Uploaded Python 3

File details

Details for the file phi_finder-0.1.11.tar.gz.

File metadata

  • Download URL: phi_finder-0.1.11.tar.gz
  • Upload date:
  • Size: 52.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for phi_finder-0.1.11.tar.gz
Algorithm Hash digest
SHA256 e59046ff8ed224355ed17d158c8446a36927a54d5ab500f4f400909b26b0f9c6
MD5 d6ab56ac7dc0942fb5a66b71ab3dc700
BLAKE2b-256 f43bbccb06ea4d482d973eeeec7ebbe05973b856c3027973a3b59e64261d98a7

See more details on using hashes here.

File details

Details for the file phi_finder-0.1.11-py3-none-any.whl.

File metadata

  • Download URL: phi_finder-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 52.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for phi_finder-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 bd76e1ff8d6447ab96f6bf336fb990e1c735f5da6ea5e7ef9d5bea5c7250510f
MD5 3ba27737e120c14ee03d036346e1d510
BLAKE2b-256 f03d811d208e4d93353ef344c50ed2591cd1f85aceea3727e0160b2e28f7be15

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page