Repository navigation
stagetui 1.0.0
stagetui 1.0: the first stable release. Everything in the docs works today on
Linux, macOS and Windows, and code written for 1.0 keeps working in every 1.x
version. New in this release: keys you can rename or turn off, and the 3D add-on
(pip install stagetui-3d, or pip install "stagetui[3d]").
Added — keys you can rename
- Customizable keys. Every key stagetui itself answers to has a name (
quit,
prefix,close_pane,split_right…). An app renames them or turns them off with
KEYS = {"quit": "ctrl+q", "close_pane": "w", "pane_menu": None}. It stays safe:
there is always a quit key, the prefix key can't be turned off, and one key never
does two jobs — a mistake is explained (what, why, how to fix it) when the app
starts. YourBINDINGSstill come first:("q", "save")makes q save. CONFIRM_QUIT = Trueasks "Quit this app?" before a quit key (or × on the last
pane) quits.- Your own keys for every app, in
keys.jsonin the stagetui settings folder
(~/.config/stagetui/, or%APPDATA%\stagetui\on Windows) or wherever
STAGETUI_KEYSpoints. A mistake there never stops an app: that entry is skipped
and one message says so. Tests and agents (headless) read onlySTAGETUI_KEYS. - See every key:
stagetui keys [app.py] [--json],ts.keys(),app.keys()/
Driver.keys(), and thekeystool instagetui mcp(anddrive). - Add-on pane keys: every add-on's keys can be renamed or turned off, per pane —
StagePane("video", keys={"play_pause": "k", "mute": None}). The line at the
bottom of the pane shows the keys in effect. - Docs: Keys.
Added — Milestone 6d: 3D
stagetui-3d, the 3D add-on (its own package):StagePane("3d", path="model.glb")
shows glTF (.glb,.gltf), OBJ (with.mtlcolors and pictures) and STL models.
Drag to turn, right-drag to move, the wheel zooms; Space spins, W shows the wires,
G the floor grid, R starts over. From code:load,view,spin,wireframe,
grid,reset,save(a PNG of the view) andstate; theloadedevent.
It draws on the computer's processor (every core) — no graphics card or driver —
with smooth edges once the model holds still. No new libraries.examples/13_3d.py: a model viewer; with no file it makes a colorful knot.- Drag for tests and agents:
d.drag("#id" or (x, y), (x, y)), the step
{"drag": {"from": …, "to": …}}, and thedragtool instagetui mcp/drive.
Changed
- The 3D add-on is on PyPI:
pip install stagetui-3dorpip install "stagetui[3d]".
Picking 3D in a pane's menu now offers to install it (it no longer says "coming
soon"), and so doesstagetui plugins install 3d. Thevideo,weband3d
extras ask for version 1.0.0 of those add-ons, and each add-on asks for stagetui
1.0.0 or newer. - Clicking × on the last pane closes the app. In a window attached to a running
session it asks Detach or Quit first; in a pane's own pop-out window it puts the
pane back where it came from. Ctrl+Space then x on the last pane does the same.
(Before, the last pane stayed and a message said "This is the last pane".) - Hidden panes pause. When an add-on's pane is switched to another type, or sits in
a tab you aren't looking at, the add-on is told with a newshownmessage: video
pauses its sound and picture (and plays on when you come back, if it was playing),
a hidden web page is frozen, so it makes no sound at all and sends no pictures,
and 3D stops drawing. Older add-ons simply ignore the message and keep going as before. - Add-on API (
stagetui-plugin-api):PaneSource::shown(bool)and the
{"t": "shown", "shown": true | false}message;serve()asks for no frames while
the pane is hidden. Python add-ons getPlugin.shown(shown)the same way.
Fixed
- Closing a pane stops what runs in it right away — an add-on (video, web, 3D) or a
shell — instead of when the app quits. The screen doesn't wait for it, and no
finished process is left behind. - An add-on that isn't published yet can never be installed by name, from any path.
Install
pip install stagetui # the library
pip install "stagetui[3d,video,web]" # with every add-onPyPI: https://pypi.org/project/stagetui/1.0.0/ · Docs: https://github.com/artisanv/stagetui/tree/main/docs