Skip to main content

runspec-tui

The runspec-console Forms view, in a terminal. Install it into a venv that has runspec runnables, run runspec-tui, and you get a searchable list of those runnables and a typed form for each one. Fill the form in, press Ctrl+R, and the output streams in below it.

It's for the places the desktop console can't go: an SSH session on a server, a jump host, a container, a terminal on a locked-down machine.

pip install runspec-tui      # into the venv that holds your runnables
runspec-tui

What you get

  • The list — every runnable installed in the venv, grouped by package, with its autonomy level. Type / to search names, descriptions and command names.
  • The form — one field per arg, built from runspec.toml with core's own inference, so it asks for exactly what parse() will accept:
    • a switch for a flag, a dropdown for a choice, a checklist for a multiple choice, one-per-line for other multiple args;
    • path and folder fields with Tab completion and a Browse picker (F2);
    • ui = "date" / "datetime" / "time" / "month" / "color" hints;
    • password args masked and never shown again;
    • commands to pick from, with Inherited and This command sections;
    • args that have a default folded into Default arguments;
    • a field that .runspec_env or an env var already supplies says from … and can be left blank.
  • Validation before running — required fields, types, ranges, patterns and group rules (exactly-one, …) are checked as you'd get them from parse(), shown under each field.
  • Streaming output with the exit code and time, JSON output pretty-printed, and a Debug switch that turns on --debug for the run.

Keys

Key Does
/ Search runnables
Enter Open the highlighted runnable or command
Tab / Shift+Tab Next / previous field
Ctrl+R Run
Ctrl+T Stop the run
F2 Browse for a file or folder
Ctrl+O Show or hide the output
Ctrl+Y Copy the output
Esc Back: out of search, then up a command
Ctrl+P Command palette (themes, quit, …)
Ctrl+Q Quit

runspec-tui --all also lists runnables marked discoverable = false. --theme NAME (or RUNSPEC_TUI_THEME) picks a Textual theme.

How runs work

Each run goes through the same code as runspec exec, so it is recorded: a row in the venv's runs index (or a logs-inbox file when you aren't the venv owner) with the exit code and the tail of the output, labelled tui.

runspec history list --label tui
  • Secrets never reach the command line. A password field is passed as RUNSPEC_<RUNNABLE>_ARG_<NAME> in the environment, never on argv.
  • run_as is honoured. When a runnable runs as another account (by default the venv owner), the run escalates with sudo -n the same way runspec exec does, and the values travel on stdin, not argv.
  • Only what you changed is sent. A field left at its default isn't passed, so .runspec_env and env vars still apply.
  • The run can't read your keyboard. Its stdin is /dev/null; a runnable that prompts gets end-of-file.

Requirements

Python 3.10+, runspec 0.75.0+, and a terminal (it exits with a pointer to runspec exec when stdin or stdout isn't one). It isn't a runnable itself, so it doesn't appear in runspec local or runspec serve.

Docs: https://runspec.app/tui/

Metadata

Release files for runspec-tui 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for runspec-tui 0.1.0
File Size Uploaded Provenance Actions
runspec_tui-0.1.0.tar.gz 47.2 kB With provenance Details for runspec_tui-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for runspec-tui 0.1.0
File Interpreter ABI Platform Actions
runspec_tui-0.1.0-py3-none-any.whl Python 3 none any Details for runspec_tui-0.1.0-py3-none-any.whl

Total release size: 70.9 kB

Release files / runspec_tui-0.1.0.tar.gz

Download URL runspec_tui-0.1.0.tar.gz
Size 47.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2ee0e4dee19fb69775ee920adcf6670c666ec05b128ceafd6871e27b5a64447e
BLAKE2b-256 checksum
How to use checksums
ce1d5df6a942c6f2be8bdd308b095557f7479ab86a9f2ba7e8f1b25e60755767
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Release files / runspec_tui-0.1.0-py3-none-any.whl

Download URL runspec_tui-0.1.0-py3-none-any.whl
Size 23.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d4e5275452ce22abc951f8cd4bf7cc07435de01f546a64dc2d40393dd0418f0
BLAKE2b-256 checksum
How to use checksums
23f3b2c196a69db7036ab9a85007cafc5d0de9268440f0c2f1812fb8b9d19172
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Security for runspec-tui 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for runspec_tui-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page