Skip to main content

A Command line tool for the dicom processor library

Project description

dcm-processor-utils

dcm-processor-utils contains the shared helper functionality used across the dcm-processor platform.

It is the lowest-level common utility package among the modules we scanned.

Role In The Bigger Picture

This module is not a user-facing runtime on its own. Its value is that it keeps duplicated low-level logic out of the higher-level packages.

It currently provides shared behavior for things like:

  • device identification
  • archive and file handling
  • downloader/path classification logic
  • constants and settings enums

Other modules depend on it so they can share the same basic contracts and helper implementations.

Main Responsibilities

1. Archive And File Helpers

The module provides the shared file and archive handling logic used by other packages.

This includes:

  • zipping directories
  • extracting archives
  • safe archive extraction checks

2. Shared Downloader Helpers

The module now also owns the shared downloader logic for:

  • path classification
  • web and git download handling
  • archive extraction after download
  • locating dcm-processor.json
  • splitting version expressions

This keeps the CLI and DB-provider modules from carrying separate copies of the same download/extraction logic.

3. Device Identity

The package provides device identity helpers used by runtime modules to identify the local machine in a stable way where possible.

4. Shared Constants

The module exports shared constant types and app setting identifiers used throughout the platform.

Key Internal Areas

  • dcm_processor_utils/file_manager.py
    • zip and unzip helpers
  • dcm_processor_utils/downloaders.py
    • shared downloader and path classification logic
  • dcm_processor_utils/device_info.py
    • device identification helpers
  • dcm_processor_utils/constants.py
    • shared settings and constant values

Dependencies On Other Modules

This package is intentionally low in the dependency graph.

It is used by:

  • dcm-processor-cli
  • dcm-processor-db-provider
  • dcm-processor-job-scheduler
  • dcm-processor-worker
  • dcm-processor-service

What This Module Is Not

This package is not:

  • an application runtime
  • a worker
  • a scheduler
  • a DICOM server
  • a persistence layer

It is the shared infrastructure support package for the rest of the system.

Summary

Use this module for reusable low-level behavior that should stay consistent across the platform.

It exists to reduce duplication and keep the higher-level modules aligned on common helper logic.

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_utils-0.0.1.tar.gz (7.3 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_utils-0.0.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file dcm_processor_utils-0.0.1.tar.gz.

File metadata

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

File hashes

Hashes for dcm_processor_utils-0.0.1.tar.gz
Algorithm Hash digest
SHA256 bfb475f32cc8606bc533fc4dd65377ce8ec7f79924fe54a650353c52f5c2c47c
MD5 c320c209e25eb60018f4c1257bf4792f
BLAKE2b-256 330e8dd483bb8dc73a4b9a06aa6ca1d928836f6afc8315297858cd00fe01e7b2

See more details on using hashes here.

File details

Details for the file dcm_processor_utils-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dcm_processor_utils-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c8ab7017af9a77e8161ec909f72e1e10fbbb6a589adbe863d35ce50cf282131b
MD5 2fd9c7316889830d6678649de443b3d5
BLAKE2b-256 8540e223952eb0d5023b0f3d630ced72a074bfdd99198ad8f6c80a2df1528c49

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