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 what upgrading a Debian system looks like with Moulti:
Interested? Run this demo in a container using docker or podman
Not convinced yet? What if the output of your Ansible playbooks looked like this?
Moulti is a tool meant for people who write and execute shell scripts and/or Ansible playbooks. 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.
By the way, Moulti can also display man pages and unified diff files (with colors courtesy of delta):
Installation
TL;DR: pipx install moulti; pipx ensurepath
More details in the Documentation
How?
Synopsis:
- Start a Moulti instance:
moulti init - Add a step:
moulti step add step_name --title='some clever title here' - Fill it:
whatever_your_script_does | moulti pass step_name - 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 also features:
- text search, similar to
less: documentation - ability to maximize a single step log, similar to tmux's zoom feature
- a progress bar: documentation
- programmatic scrolling: documentation
- an askpass helper named
moulti-askpass: documentation - support for Ansible playbooks, man pages and unified diff
When it comes to look and feel, Moulti can be customised:
- through
moulti set: define whether Moulti steps flow up or down: documentation - through Textual CSS (TCSS): documentation
- through ANSI themes: documentation
Implementation
Moulti is written in Python and leverages Textual, along with Pyperclip, argcomplete and unidiff.
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:
- Will McGugan for creating it
- Dave Pearson for his regular help and feedback about Textual issues
Metadata
Release files for moulti 1.34.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| moulti-1.34.1.tar.gz | 85.9 kB | Without provenance | Details for moulti-1.34.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| moulti-1.34.1-py3-none-any.whl | Python 3 | none | any | Details for moulti-1.34.1-py3-none-any.whl |
Total release size: 181.7 kB
Release files / moulti-1.34.1.tar.gz
| Download URL | moulti-1.34.1.tar.gz |
|---|---|
| Size | 85.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cdfca85e4e345ac686a7e99cb5081a22116ef1f74ba7b15e1144aabeaf3c8f44
|
|
BLAKE2b-256 checksum How to use checksums |
090fcac22950a0cb3a9ed535bd0b90899752fca1c559812da3351895e06892fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.5
|
Release files / moulti-1.34.1-py3-none-any.whl
| Download URL | moulti-1.34.1-py3-none-any.whl |
|---|---|
| Size | 95.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a800c5d97b1b7b0d6553ada15c57c0eb4b7d8e2c5cc72f324b46275d40bf856
|
|
BLAKE2b-256 checksum How to use checksums |
0bd0cc09dec82ddfafbf3f82fcab1a3fc7c118d743d378476fa08455fa00d0fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.5
|
Security for moulti 1.34.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.