Skip to main content

Moulti is a CLI-driven Terminal User Interface (TUI) that enables you to assign the numerous lines emitted by your scripts to visual, collapsible blocks called steps.

Project description

MOULTI

Moulti changes the way your shell scripts (bash, zsh, etc.) display their output in your terminal. Moulti enables you to assign the numerous lines emitted by your scripts to "steps", i.e. visual, collapsible blocks featuring their own title and color.

Here is how upgrading a Debian system looks like with Moulti:

Moulti demo: Debian upgrade (Animated PNG)

Moulti is a tool meant for people who write and execute shell scripts. Specifically, if you find yourself scrolling up your terminal to ensure everything went fine while your script is still running, then Moulti is made for you.

How?

Synopsis:

  1. Start a Moulti instance: moulti init
  2. Add a step: moulti step add step_name --title='some clever title here'
  3. Fill it: whatever_your_script_does | moulti pass step_name
  4. Repeat #2 and #3 until your script is done.

Learn how to leverage Moulti by jumping to its Documentation.

Features

As shown in the demo, Moulti enables user interactions through questions:

Moulti input question

Moulti button question

Moulti also features a progress bar: documentation

When it comes to look and feel, Moulti can be customised:

Implementation

Moulti is written in Python and leverages Textual, along with Pyperclip and argcomplete.

Inspiration

Moulti remained a mere idea for a significant time (possibly years).

The idea of driving TUI elements from scripts obviously comes from tools like dialog and whiptail.

At some point, the author stumbled upon multiplex, which is probably the closest thing to Moulti. multiplex was deemed unsatisfying on multiple points (including architecture) and that prompted the development of Moulti.

procmux is also similar to Moulti but did not affect its development.

Acknowledgments

The Textual framework helped a lot, so kudos to the Textual team, and specifically to:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

moulti-1.5.1.tar.gz (36.7 kB view hashes)

Uploaded Source

Built Distribution

moulti-1.5.1-py3-none-any.whl (43.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page