Skip to main content

A Command line tool for the dicom processor library

Project description

dcm-processor-cli

dcm-processor-cli is the main user-facing entry point for the dcm-processor platform.

It is the control-plane package that developers, operators, and maintainers use to:

  • create and initialize applications
  • install and uninstall services and workers
  • configure DICOM nodes, peers, services, workers, and app settings
  • start, stop, restart, and inspect application runtimes
  • authenticate against the package registry and publish packages

Role In The Bigger Picture

If the overall platform is viewed as a processing system, this module is the front door.

It does not ingest DICOM data itself and it does not execute processing code directly. Instead, it coordinates the other modules:

  • dcm-processor-db-provider for persistence and configuration storage
  • dcm-processor-worker for worker installation and execution
  • dcm-processor-dicom-server for DICOM ingestion
  • dcm-processor-job-scheduler for job orchestration
  • dcm-processor-utils for shared helper logic

When an application is started through the CLI, the runtime stack is assembled through those lower-level modules.

Main Responsibilities

1. Application Lifecycle

The CLI creates, initializes, starts, stops, restarts, backs up, restores, and inspects applications.

Key commands:

  • dcm-processor create
  • dcm-processor init
  • dcm-processor start
  • dcm-processor stop
  • dcm-processor restart
  • dcm-processor status
  • dcm-processor logs
  • dcm-processor backup
  • dcm-processor restore

These commands are the operational entry point for the full application stack.

2. Package Installation

The CLI installs packages from:

  • local directories
  • local archives
  • direct web URLs
  • the dcm-processor registry

It understands package manifests through dcm-processor.json and installs:

  • service code
  • worker definitions
  • dependent services and workers when required

3. Configuration Management

The CLI exposes management commands for:

  • DICOM nodes
  • DICOM peers
  • services
  • workers
  • application settings

This makes it the operational shell around the stored application model.

4. Registry Access

The CLI is also the registry client.

It supports:

  • login
  • logout
  • publish
  • package install from registry queries like name, name==1.2.0, name>=1.2.0

Key Internal Areas

  • dcm_processor/manager.py
    • main CLI parser and command dispatch
  • dcm_processor/app_manager.py
    • application lifecycle and backup/restore workflows
  • dcm_processor/registry_manager.py
    • registry login, logout, and publish
  • dcm_processor/install_manager.py
    • install and uninstall command entry points
  • dcm_processor/libs/component_lib.py
    • service and worker install orchestration
  • dcm_processor/libs/app_runner.py
    • runtime assembly for app start/stop

Typical Flow

  1. A user creates or initializes an application.
  2. The CLI stores and reads app configuration through dcm-processor-db-provider.
  3. The CLI installs services and workers from package artifacts.
  4. The CLI starts the runtime stack.
  5. The runtime stack then runs through the scheduler, worker, and DICOM server modules.

What This Module Is Not

This package is not:

  • the database abstraction layer
  • the DICOM listener
  • the scheduler itself
  • the worker execution engine
  • the service SDK used inside processing code

It coordinates those pieces, but it is not their implementation.

Summary

Use this module when you need to interact with the dcm-processor platform as a system:

  • install things
  • configure things
  • run things
  • publish things

It is the main operational interface for the rest of the modules.

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

dcm_processor-2.0.1.tar.gz (27.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dcm_processor-2.0.1-py3-none-any.whl (33.1 kB view details)

Uploaded Python 3

File details

Details for the file dcm_processor-2.0.1.tar.gz.

File metadata

  • Download URL: dcm_processor-2.0.1.tar.gz
  • Upload date:
  • Size: 27.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for dcm_processor-2.0.1.tar.gz
Algorithm Hash digest
SHA256 f74e267fee68afa9edbf8a8f31012e369528a58030d1ab4ed41c7bb3e55438d5
MD5 4307be796c79a419f196e7ac57ccc009
BLAKE2b-256 e012e3c2059b4e3b8f11788aa83bb1d8596b4a23b28b1e0c596b2214eac0e7fb

See more details on using hashes here.

File details

Details for the file dcm_processor-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: dcm_processor-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 33.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for dcm_processor-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0475e3025a4ae5500393bd4dcda7b2864891fda7f77c0db580b4b6b2e2cc7590
MD5 c37f2ad460f3f4887d9c5180fd331a89
BLAKE2b-256 8571756520294e2b4216b3498397b9722d93c2786bd27981949a7544223a4820

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