Python Textual Notes Showcase Example

flagship terminal host with pure VMx state, Textual rendering, dialogs, search, and paging

Python Textual Notes Showcase Example flagship terminal host with pure VMx state, Textual rendering, dialogs, search, and paging Python Textual Notes Showcase Example flagship terminal host with pure VMx state, Textual rendering, dialogs, search, and paging Host and adapter boundary VMx-owned application state Verification and modeling rule Textual screens compose/on_mount views single-statement actions keyboard bindings Textual adapters property binders collection bridge dialog + dispatcher ports 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 WorkspaceVM AggregateVM6 shell async construct theme sibling Notebook + note VMs tree projection PagedComposition strict NoteFormVM Workflow services TokenPagedComposition NotificationVM DiscriminatorVM Repository + models in-memory notes seed notebooks theme model VM + view tests uv run pytest Pure-VM contract adapter smoke tests Best-fit use Use this as the Python reference for full VMx MVVM in a terminal UI. 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

Full surface

  • Exercises the same 19-row Notes Workspace contract.
  • Textual owns rendering, not state.

Adapter seam

  • View classes stay thin and route to VM commands.
  • VM tests cover the domain behavior.

Parity role

  • Matches the C#, TypeScript, and Swift flagship scenario.