Show HN: Trogon – An automatic TUI for command line apps

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • trogon

    Easily turn your Click CLI into a powerful terminal application

  • sqlite-utils

    Python CLI utility and library for manipulating SQLite databases

  • This is really fun. I have an experimental branch of my sqlite-utils CLI tool (which has dozens of sub-commands) running with this now and it really did only take 4 lines of code - I'm treating Trogon as an optional dependency because people using my package as a Python library rather than a CLI tool may not want the extra installed components:

    https://github.com/simonw/sqlite-utils/commit/ec12b780d5dcd6...

    There's an animated GIF demo of the result here: https://github.com/simonw/sqlite-utils/issues/545#issuecomme...

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • parachute

  • This looks interesting, I love Textual so I tried this with one of the apps I wrote:

    https://gitlab.com/stavros/parachute

    Unfortunately, it doesn't seem to work, failing to find the `cli.command()` function (a group function) after I decorate `cli()` with @tui...

  • oil

    Oils is our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell!

  • I believe something of this nature was proposed in the Oilshell under the name Shellac[0]. A shell-agnostic autocompletion format so that the world could finally move on from writing bespoke completion protocols for every new shell language.

    [0] https://github.com/oilshell/oil/wiki/Shellac-Protocol-Propos...

  • tldr

    📚 Collaborative cheatsheets for console commands

  • You should check out https://tldr.sh/ It gives you practical examples for common use cases.

  • uplaybook

    A python-centric IT automation system.

  • This is exactly my current experiment on a personal project I'm working on, though I'm trying to create a Textual UI on a dynamic Python argparse CLI. Creating a Textual UI is non-trivial.

    My tool uPlaybook[0] is kind of a CookieCutter [1] / Ansible [2] mashup, and the playbooks typically would have a number of "slots" you can configure to control the templating, like project name, license, if you want to "git init", that sort of thing.

    It currently auto-generates a argparse interface, or it can interactively ask you those questions. But I've been working on a Textual UI as well. I chose argparse over Click largely because I want to work with minimal dependencies, and the Textual UI would be an optional dependency.

    Going to have to check this guy out.

    [0] https://github.com/linsomniac/uplaybook

  • Ansible

    Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy and maintain. Automate everything from code deployment to network configuration to cloud management, in a language that approaches plain English, using SSH, with no agents to install on remote systems. https://docs.ansible.com.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • cheat.sh

    the only cheat sheet you need

  • hsh

    better shell

  • oh, that's not really type annotations; that's just... cli linting? no idea what to call it but something that will both highlight errors in commands before they fail, and suggest intelligent tab completes.

    I want that too, I've already started building it https://github.com/GrayHatter/hsh give me a few months :)

  • textual

    The lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser.

  • I would also[0] be interested in an argparse equivalent of this for my tool Library[1]

    [0] https://github.com/Textualize/textual/discussions/228

    [1] https://github.com/chapmanjacobd/library

  • library

    An index for your archive. 70+ CLI tools to help you build, browse, and manage your media library. (by chapmanjacobd)

  • I would also[0] be interested in an argparse equivalent of this for my tool Library[1]

    [0] https://github.com/Textualize/textual/discussions/228

    [1] https://github.com/chapmanjacobd/library

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts