Skip to main content

A Quick Tool For Sorting Dicom Files

Project description

pydicomsorter

codecov CI-CD

Ruff Built with Material for MkDocs

PyPI - Version PyPI - Format pixi-badge

Testing the pydicom library to sort dicom files by patient name and study date.

[!NOTE] none of this works yet

Designing should look like:

Usage: dicomsort [OPTIONS] SOURCEDIR DESTINATION_DIR

╭─ Advanced options ───────────────────────────────────────────────────────────────╮
│ --delete_source  -d    Delete the source files after sorting.                    │
│ --keep_going     -k    Keep going when an error occurs.                          │
│ --symlink        -s    Create symbolic links instead of moving files.            │
│ --dry_run        -n    Do not move or copy files, just print what would be done. │
╰──────────────────────────────────────────────────────────────────────────────────╯
╭─ Basic options ──────────────────────────────────────────────────────────────────╮
│ --verbose        Print verbose output.                                           │
│ --debug          Print debug output.                                             │
│ --help     -h    Show this message and exit.                                     │
╰──────────────────────────────────────────────────────────────────────────────────╯

DICOM data model

A Patient has one or more Studies, a Study has one or more Series, and a Series has one or more Instances.

graph TD
    A[Patient] --> B(Study)
    B --> C(Series)
    C --> D(Instance)

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

pydicomsorter-0.10.0.tar.gz (72.3 kB view hashes)

Uploaded Source

Built Distribution

pydicomsorter-0.10.0-py3-none-any.whl (12.9 kB view hashes)

Uploaded Python 3

Supported by

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