# 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](examples/moulti-debian-upgrade.bash) looks like with Moulti:
![Moulti demo: Debian upgrade (Animated PNG)](https://xavier.kindwolf.org/p/moulti/doc/img/moulti-demo-debian-upgrade.png?20240218)
Interested? [Run this demo in a container using docker or podman](https://hub.docker.com/r/xavierong/moulti-demo)
Not convinced yet? What if the output of your Ansible playbooks looked like this?
![Moulti: Ansible playbook output](https://xavier.kindwolf.org/p/moulti/doc/img/moulti-ansible.png?20240505)
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](https://github.com/dandavison/delta)):
![Moulti: man page](https://xavier.kindwolf.org/p/moulti/doc/img/moulti-man-bash.png?20240621)
![Moulti: unified diff output](https://xavier.kindwolf.org/p/moulti/doc/img/moulti-diff.png?20240914)
## Installation
TL;DR: `pipx install moulti; pipx ensurepath`
More details in the [Documentation](Documentation.md#installation)
## 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](Documentation.md).
## Features
As shown in the demo, Moulti enables user interactions through **questions**:
![Moulti input question](https://xavier.kindwolf.org/p/moulti/doc/img/moulti-input-question.png?20240218)
![Moulti button question](https://xavier.kindwolf.org/p/moulti/doc/img/moulti-button-question.png?20240218)
Moulti also features:
- text **search**, similar to `less`: [documentation](Documentation.md#text-search)
- ability to maximize a single step log, similar to tmux's zoom feature
- a **progress bar**: [documentation](Documentation.md#progress-bar)
- programmatic scrolling: [documentation](Documentation.md#programmatically-scrolling-through-steps)
- an askpass helper named `moulti-askpass`: [documentation](Documentation.md#moulti-run-dealing-with-ssh)
- support for [Ansible playbooks](Documentation.md#moulti-run-dealing-with-ansible), [man pages](Documentation.md#moulti-manpage) and [unified diff](Documentation.md#moulti-diff)
When it comes to look and feel, Moulti can be customised:
- through `moulti set`: define whether Moulti steps flow up or down: [documentation](Documentation.md#multiple-ways-to-display-steps)
- through [Textual CSS (TCSS)](https://textual.textualize.io/guide/CSS/): [documentation](Documentation.md#how-to-define-my-own-step-classes-)
- through ANSI themes: [documentation](Documentation.md#appearance-look-and-feel)
## Implementation
Moulti is written in Python and leverages [Textual](https://textual.textualize.io/), along with [Pyperclip](https://pypi.org/project/pyperclip/),
[argcomplete](https://kislyuk.github.io/argcomplete/) and [unidiff](https://github.com/matiasb/python-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](https://invisible-island.net/dialog/dialog-figures.html) and
[whiptail](https://whiptail.readthedocs.io/en/latest/index.html).
At some point, the author stumbled upon
[multiplex](https://github.com/dankilman/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](https://github.com/napisani/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](https://github.com/willmcgugan) for creating it
- [Dave Pearson](https://davep.dev/) for his regular help and feedback about Textual issues
Raw data
{
"_id": null,
"home_page": "https://github.com/xavierog/moulti",
"name": "moulti",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "cli, tui, curses, terminal, multiplex, script, output, steps, textual, collapsible, ansible, diff",
"author": "Xavier G.",
"author_email": "xavier.moulti@kindwolf.org",
"download_url": "https://files.pythonhosted.org/packages/51/61/4dc6637b439df5353e892e1cbb771235915583bec2b8d72ad8c1a1926a0f/moulti-1.22.0.tar.gz",
"platform": null,
"description": "# MOULTI\n\nMoulti changes the way your shell scripts (bash, zsh, etc.) display their output in your terminal.\nMoulti enables you to assign the numerous lines emitted by your scripts to \"steps\", i.e. visual, collapsible blocks featuring their own title and color.\n\nHere is what [upgrading a Debian system](examples/moulti-debian-upgrade.bash) looks like with Moulti:\n\n![Moulti demo: Debian upgrade (Animated PNG)](https://xavier.kindwolf.org/p/moulti/doc/img/moulti-demo-debian-upgrade.png?20240218)\n\nInterested? [Run this demo in a container using docker or podman](https://hub.docker.com/r/xavierong/moulti-demo)\n\nNot convinced yet? What if the output of your Ansible playbooks looked like this?\n\n![Moulti: Ansible playbook output](https://xavier.kindwolf.org/p/moulti/doc/img/moulti-ansible.png?20240505)\n\nMoulti is a tool meant for people who write and execute shell scripts and/or Ansible playbooks.\nSpecifically, 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.\n\nBy the way, Moulti can also display man pages and unified diff files (with colors courtesy of [delta](https://github.com/dandavison/delta)):\n\n![Moulti: man page](https://xavier.kindwolf.org/p/moulti/doc/img/moulti-man-bash.png?20240621)\n\n![Moulti: unified diff output](https://xavier.kindwolf.org/p/moulti/doc/img/moulti-diff.png?20240914)\n\n## Installation\n\nTL;DR: `pipx install moulti; pipx ensurepath`\n\nMore details in the [Documentation](Documentation.md#installation)\n\n## How?\n\nSynopsis:\n\n1. Start a Moulti instance: `moulti init`\n2. Add a step: `moulti step add step_name --title='some clever title here'`\n3. Fill it: `whatever_your_script_does | moulti pass step_name`\n4. Repeat #2 and #3 until your script is done.\n\nLearn how to leverage Moulti by jumping to its [Documentation](Documentation.md).\n\n## Features\n\nAs shown in the demo, Moulti enables user interactions through **questions**:\n\n![Moulti input question](https://xavier.kindwolf.org/p/moulti/doc/img/moulti-input-question.png?20240218)\n\n![Moulti button question](https://xavier.kindwolf.org/p/moulti/doc/img/moulti-button-question.png?20240218)\n\nMoulti also features:\n- text **search**, similar to `less`: [documentation](Documentation.md#text-search)\n- ability to maximize a single step log, similar to tmux's zoom feature\n- a **progress bar**: [documentation](Documentation.md#progress-bar)\n- programmatic scrolling: [documentation](Documentation.md#programmatically-scrolling-through-steps)\n- an askpass helper named `moulti-askpass`: [documentation](Documentation.md#moulti-run-dealing-with-ssh)\n- support for [Ansible playbooks](Documentation.md#moulti-run-dealing-with-ansible), [man pages](Documentation.md#moulti-manpage) and [unified diff](Documentation.md#moulti-diff)\n\nWhen it comes to look and feel, Moulti can be customised:\n\n- through `moulti set`: define whether Moulti steps flow up or down: [documentation](Documentation.md#multiple-ways-to-display-steps)\n- through [Textual CSS (TCSS)](https://textual.textualize.io/guide/CSS/): [documentation](Documentation.md#how-to-define-my-own-step-classes-)\n- through ANSI themes: [documentation](Documentation.md#appearance-look-and-feel)\n\n## Implementation\n\nMoulti is written in Python and leverages [Textual](https://textual.textualize.io/), along with [Pyperclip](https://pypi.org/project/pyperclip/),\n[argcomplete](https://kislyuk.github.io/argcomplete/) and [unidiff](https://github.com/matiasb/python-unidiff).\n\n## Inspiration\n\nMoulti remained a mere idea for a significant time (possibly years).\n\nThe idea of driving TUI elements from scripts obviously comes from tools like\n[dialog](https://invisible-island.net/dialog/dialog-figures.html) and\n[whiptail](https://whiptail.readthedocs.io/en/latest/index.html).\n\nAt some point, the author stumbled upon\n[multiplex](https://github.com/dankilman/multiplex), which is probably the closest thing to Moulti. multiplex was deemed\nunsatisfying on multiple points (including architecture) and that prompted the development of Moulti.\n\n[procmux](https://github.com/napisani/procmux) is also similar to Moulti but did not affect its development.\n\n## Acknowledgments\n\nThe Textual framework helped a lot, so kudos to the Textual team, and specifically to:\n- [Will McGugan](https://github.com/willmcgugan) for creating it\n- [Dave Pearson](https://davep.dev/) for his regular help and feedback about Textual issues\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "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.",
"version": "1.22.0",
"project_urls": {
"Homepage": "https://github.com/xavierog/moulti"
},
"split_keywords": [
"cli",
" tui",
" curses",
" terminal",
" multiplex",
" script",
" output",
" steps",
" textual",
" collapsible",
" ansible",
" diff"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a4a2110e022474e145104650ad9c04ac0fdd7247f67bfdb0ae2646fa09609b15",
"md5": "a8327b1b9fb2d76cee35036338cc117f",
"sha256": "ccf117ad7a009a7df7c67954e4bf9ec9615c66f63213096a72c80f8929f8a04b"
},
"downloads": -1,
"filename": "moulti-1.22.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a8327b1b9fb2d76cee35036338cc117f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 83638,
"upload_time": "2024-10-26T22:09:43",
"upload_time_iso_8601": "2024-10-26T22:09:43.799335Z",
"url": "https://files.pythonhosted.org/packages/a4/a2/110e022474e145104650ad9c04ac0fdd7247f67bfdb0ae2646fa09609b15/moulti-1.22.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "51614dc6637b439df5353e892e1cbb771235915583bec2b8d72ad8c1a1926a0f",
"md5": "bb6f6497065efa057de031585cb65e3f",
"sha256": "30d4d1dcc027a12af28153d6a54fe1b0e34d08aeace84cb381ee5aeec42e8ccb"
},
"downloads": -1,
"filename": "moulti-1.22.0.tar.gz",
"has_sig": false,
"md5_digest": "bb6f6497065efa057de031585cb65e3f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 69172,
"upload_time": "2024-10-26T22:09:45",
"upload_time_iso_8601": "2024-10-26T22:09:45.765328Z",
"url": "https://files.pythonhosted.org/packages/51/61/4dc6637b439df5353e892e1cbb771235915583bec2b8d72ad8c1a1926a0f/moulti-1.22.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-26 22:09:45",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "xavierog",
"github_project": "moulti",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "moulti"
}