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.12-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')

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.12.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.12-py3-none-any.whl (52.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for phi_finder-0.1.12.tar.gz
Algorithm Hash digest
SHA256 7275f559e61d3f61d2e5657c55525543367070457119c8cf2df6f2c0d03197f9
MD5 df0cdc01bcb15a09096a83544e8cb95e
BLAKE2b-256 e62fc1bea9f7d57f15a6ed31d87f4efc625ff0d8f5bccc4d913a4f032f648159

See more details on using hashes here.

File details

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

File metadata

  • Download URL: phi_finder-0.1.12-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.0

File hashes

Hashes for phi_finder-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 9cf0ff4be7312f568e64b9ce0bee7392a58bccfad61b679d990f9f46789c695d
MD5 75dbfac4e1f99ebdcfbd192ee959daba
BLAKE2b-256 109fb5539d670af7135629aeb0ef56584538afa3657ac4043aebc194982ef2b4

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