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.9-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.10.tar.gz (50.9 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.10-py3-none-any.whl (50.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for phi_finder-0.1.10.tar.gz
Algorithm Hash digest
SHA256 fb8734c68b8cd4273b81126d8365eaa7a77a6f1614376b698b4742a3702b57a7
MD5 e672c303d62976a879f560c774ada3a0
BLAKE2b-256 ef9bda73203af985ee024f67188f261372591f5ea86dae5c1eda57ab2b4c606c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for phi_finder-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 4bc4daf14f08fb394e558bd84fbe634292044d250086449e73e39eb5effccd6e
MD5 ee80229a549223b01dadb4123daa3ec3
BLAKE2b-256 426ba66c09d884102d8c3dcc7218d729392ab81f824dc611ff0362ff357a6400

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