Python Textual Inspector Example
live TUI for walking VMx hierarchies and observing hub message traffic
Python Textual Inspector Example
live TUI for walking VMx hierarchies and observing hub message traffic
Python Textual Inspector Example
live TUI for walking VMx hierarchies and observing hub message traffic
Host and adapter boundary
VMx-owned application state
Verification and modeling rule
Textual app
tree widget
details panel
message table
Inspector views
vmx.tree.walk
highlighted node actions
hub log sink
User gestures
events become VM calls
no domain state in host
render from VM snapshots
Run surface
local example command
smoke-friendly path
documented README entry
Sample hierarchy
ComponentVM nodes
constructable tree
selected node context
Tree projection
walk output
node metadata
details view
Lifecycle actions
construct
destruct
reconstruct
dispose / select
Hub stream
PropertyChanged
ConstructionStatusChanged
ordered log rows
Smoke test
uv run project
Textual import smoke
sample hierarchy renders
Best-fit use
Use this to inspect VMx runtime behavior before wiring a domain-specific application host.
Reading rule
Follow arrows top to bottom: host input becomes VMx commands; VMx state publishes renderable projections back to the host.
binds
routes
runs
owns
projects
executes
loads
children
commands
data
tests
boundary
Observability
The app makes lifecycle and property messages visible.
It is intentionally general-purpose.
Tree utilities
vmx.tree.walk drives the visual hierarchy.
Highlighted nodes route lifecycle commands.
Learning role
Best for understanding state flow and hub traffic.