Skip to main content

python-dicom-sort

Script to sort DICOM files according to their tags. With a CLI and a GUI.

Installation

Install it using pip:

pip install -e .

If you want to ensure the availability of the GUI, this will also install the optional PySide2 dependency:

pip install -e .[GUI]

Usage

Call dicom_sort (or python dicom_sort) without arguments to open the GUI (if PySide2 is available).

Otherwise you can use it as a command line tool with the following syntax:

usage: dicom_sort [-h] [--copy] src dest pattern

Move DICOM files into a directory structure

positional arguments:
  src         Origin directory with unsorted files
  dest        Destination directory with sorted files
  pattern     Directory pattern (example: %PatientName%/%StudyDate%/%SeriesNumber%_%SeriesName%)

optional arguments:
  -h, --help  show this help message and exit
  --copy, -c  Copy files instead of moving

The program will move (or copy) the dicom files from the src folder to the dest folder, creating an appropriate directory structure as specified by pattern. The dicom files themselves will be renamed into imageXXXX.dcm where XXXX is replaced by the instance number.

License

This program is copyrighted by Francesco Santini (2021) and released under the MIT license. See the LICENSE file for details.

Metadata

Release files for simple-dicom-sort 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simple-dicom-sort 0.0.3
File Size Uploaded Provenance Actions
simple-dicom-sort-0.0.3.tar.gz 6.6 kB Without provenance Details for simple-dicom-sort-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for simple-dicom-sort 0.0.3
File Interpreter ABI Platform Actions
simple_dicom_sort-0.0.3-py3-none-any.whl Python 3 none any Details for simple_dicom_sort-0.0.3-py3-none-any.whl

Total release size: 14.9 kB

Release files / simple-dicom-sort-0.0.3.tar.gz

Download URL simple-dicom-sort-0.0.3.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2be6c31df04cec0e718428c5b6bc01bc5ad89a39c423e2f05ccb89933c043d90
BLAKE2b-256 checksum
How to use checksums
27494f130ea5c35a64911f827fef892e7af819d4c897c3948eb2472cc8c147b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / simple_dicom_sort-0.0.3-py3-none-any.whl

Download URL simple_dicom_sort-0.0.3-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4dd994aae7d56f685791e0f9d47b4e75b6af9111b4dd7319573386b62f861ce9
BLAKE2b-256 checksum
How to use checksums
3a5d016856d0d33467d20984fb263ef6c0d722f2aeb225cd8cbc78b4971cd99e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for simple-dicom-sort 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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