How maxmukhtarov/dkview works
dkview is a Python CLI for making Docker and Swarm operations readable on a terminal. The main workflow dispatches a command to either an operational view or a Docker command, gathers or transforms its output, and renders a width-fitted table or live view. Documented operational branches include health diagnosis, grouped log errors, a host dashboard, image cleanup, inspection, and logs. Source excerpts and the SOURCE INDEX support the main dispatch and rendering relationships; unsampled feature internals are represented without inferred internal call chains.
Main entry points: cli.py CLI dispatch · runner.py Process runner · table.py Table model · doctor.py Service diagnosis
Components 23
Command entry
- CLI dispatch
src/dkview/cli.py - View options
src/dkview/options.py
Operator views
- Service diagnosis
src/dkview/features/doctor.py - Log error grouping
src/dkview/features/errors.py - Host dashboard
src/dkview/features/dashboard.py - Image cleanup
src/dkview/features/clean.py - Image views
src/dkview/features/images.py - Object inspection
src/dkview/features/inspect.py - Log viewing
src/dkview/features/logs.py - Live refresh
src/dkview/features/live.py - Docker table views
src/dkview/features/tables.py
Docker interaction
- Engine selection
src/dkview/engine.py - Command classification
src/dkview/docker.py - Process runner
src/dkview/runner.py
Output processing
- Output formats
src/dkview/formats.py - Table transforms
src/dkview/transform.py - Unit formatting
src/dkview/units.py - Table model
src/dkview/table.py
Terminal rendering
- Width-fit layout
src/dkview/layout.py - Output styling
src/dkview/styles.py - ANSI and terminal
src/dkview/ansi.py
Other components
- Operator
- Docker or Podman
Connections 32
- Operator → CLI dispatch: runs command
README.md - CLI dispatch → View options: builds options
src/dkview/cli.py - CLI dispatch → Engine selection: selects engine
src/dkview/cli.py - CLI dispatch → Command classification: classifies command
src/dkview/cli.py - CLI dispatch → Service diagnosis: dispatches diagnosis
src/dkview/cli.py - CLI dispatch → Log error grouping: dispatches errors
src/dkview/cli.py - CLI dispatch → Host dashboard: dispatches dashboard
src/dkview/cli.py - CLI dispatch → Image cleanup: dispatches cleanup
src/dkview/cli.py - CLI dispatch → Image views: dispatches images
src/dkview/cli.py - CLI dispatch → Object inspection: dispatches inspection
src/dkview/cli.py - CLI dispatch → Log viewing: dispatches logs
src/dkview/cli.py - CLI dispatch → Live refresh: dispatches refresh
src/dkview/cli.py - CLI dispatch → Docker table views: dispatches tables
src/dkview/cli.py - CLI dispatch → Process runner: passes through
src/dkview/cli.py - Command classification → Engine selection: resolves engine
src/dkview/docker.py - Process runner → Docker or Podman: runs process
src/dkview/runner.py - Service diagnosis → Process runner: captures commands
src/dkview/features/doctor.py - Log error grouping → Process runner: captures logs
src/dkview/features/errors.py - Docker table views → Output formats: selects formats
src/dkview/features/tables.py - Output formats → Command classification: checks command
src/dkview/formats.py - Output formats → Table model: builds table
src/dkview/formats.py - Table transforms → Table model: transforms table
src/dkview/transform.py - Width-fit layout → Table model: renders table
src/dkview/layout.py - Width-fit layout → ANSI and terminal: measures output
src/dkview/layout.py - Table model → ANSI and terminal: strips colors
src/dkview/table.py - Output styling → ANSI and terminal: applies color
src/dkview/styles.py - Image views → Process runner: captures images
src/dkview/features/images.py - Host dashboard → Process runner: captures host data
src/dkview/features/dashboard.py - Service diagnosis → Table model: builds report
src/dkview/features/doctor.py - Log error grouping → Table model: builds report
src/dkview/features/errors.py - Host dashboard → Width-fit layout: renders view
src/dkview/features/dashboard.py - Unit formatting → Table transforms: formats units