Python Console hello_vmx Example
minimal uv-run script for ComponentVMOf lifecycle and reactivex-backed hub messages
Python Console hello_vmx Example
minimal uv-run script for ComponentVMOf lifecycle and reactivex-backed hub messages
Python Console hello_vmx Example
minimal uv-run script for ComponentVMOf lifecycle and reactivex-backed hub messages
Host and adapter boundary
VMx-owned application state
Verification and modeling rule
Python module
python -m hello_vmx
uv-managed env
stdout narrative
Reactive observers
hub.messages subscribe
status/property printout
no UI toolkit
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
ComponentVMOf[UserModel]
fluent builder
name + hint
construct/destruct/dispose
UserModel projection
dataclass-like model
Alice -> Bob mutation
equality guard
MessageHub
ConstructionStatusChanged
PropertyChanged
reactivex stream
UserModel
name
age
typed payload
Manual smoke
uv sync
uv run python -m hello_vmx
expected log trace
Best-fit use
Use this as the shortest Python path before adding tkinter, Textual, or child containers.
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
Smallest Python path
One modeled VM demonstrates lifecycle and hub semantics.
No view adapter is required.
Signal path
Model changes publish property messages.
Equal assignments are intentionally quiet.
Next step
Move to tkinter Todo for CompositeVM or Textual Inspector for tree traversal.