--- id: trogon version: "0.6.0" license: MIT license_treatment: permissive maintenance: aging --- # trogon — Automatically generate a Textual TUI for your Click CLI License: permissive · Maintenance: aging · Downloads: 337.4K/mo ## What it is and what it does Trogon is a decorator-based tool that inspects a Click CLI application and automatically generates a Textual-based terminal user interface for it. Instead of users memorizing command syntax and options, they interact with a visual menu to discover and configure commands. The tool works by extracting the schema from your Click app—its options, switches, and help text—and rendering an interactive TUI where users can edit parameters and execute commands. The integration is minimal: adding just two lines of code (an import and a decorator) to an existing Click application enables a new `tui` command that launches the interface. Trogon depends on textual for the UI framework and click for CLI introspection, both of which are well-maintained libraries. The package is in Beta and supports Python 3.8 through 3.12 across macOS, Windows, and Linux. Use it for: - Make a CLI tool more discoverable for infrequent users who struggle to remember command syntax and available options. - Provide a graphical alternative to command-line invocation for end users who prefer visual interfaces over typing. - Reduce support burden by offering a self-documenting UI that displays all available options and help text interactively. - Quickly prototype a TUI wrapper around an existing Click application without rewriting the underlying CLI logic. - Enable non-technical users to run complex CLI tools by hiding command-line syntax behind a friendly menu interface. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Trogon auto-generates a terminal user interface (TUI) for Click command-line applications, letting users interact with CLI options through a visual menu instead of typing commands. Yes, if you maintain a Click CLI and want to offer users a low-friction TUI alternative. The integration is trivial (two lines), dependencies are minimal and stable, and the MIT license poses no restrictions. The aging maintenance status (681 days since last release) is a minor concern—verify compatibility with your current Click and Textual versions before relying on it for production—but the lack of known vulnerabilities and active repository suggest it remains usable. ## Install pip install trogon uv add trogon poetry add trogon ## Installing trogon Before you install: Low friction install with only two runtime dependencies (textual and click). The project is in Beta status and has not been updated in 681 days, though the repository remains active and well-starred. License in practice: MIT license is permissive; you can use, modify, and distribute this package with minimal restrictions, making it suitable for both open-source and proprietary projects. Quickstart: pip install trogon from trogon import tui import click @tui() @click.group() def cli(): pass if __name__ == "__main__": cli() Requires Python 3.8.1 or later; works on macOS, Windows 10/11, and Linux. Verify before relying: - Whether Typer support mentioned in the description is fully functional or still experimental. - Performance characteristics when applied to CLIs with very large numbers of options or subcommands. - Whether the aging maintenance status (681 days since last release) affects compatibility with recent Click or Textual versions. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: aging - Downloads: 337.4K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags cli to tui generator, click command ui wrapper, terminal user interface builder, command line app gui, interactive cli interface, click decorator tui, textual cli wrapper, cli-ui-generation, textual-framework [View on SkillFed](https://skillfed.io/packages/trogon) · [View on PyPI](https://pypi.org/project/trogon/)