Skip to content

CLI Applications Overview

This section documents the sample command-line interface (CLI) applications provided by dcmspec.

These sample CLI applications enable extraction, parsing, and processing of specification tables and related data from the DICOM standard and IHE documents. Each CLI script is located in the src/dcmspec/cli/ folder and can be run as a standalone application.

How to Run

CLI scripts can be executed using one of the following methods:

  • With Poetry:
poetry run python -m src.dcmspec.cli.<script_name> --help
  • Directly (if installed as a script):
poetry run <script_name> --help
  • With Python (after setting PYTHONPATH):
    export PYTHONPATH=$(pwd)/src
    python -m dcmspec.cli.<script_name> --help
    

Example

To parse the Patient Module Attributes Table:

poetry run python -m src.dcmspec.cli.modattributes table_C.7-1