moulti


Namemoulti JSON
Version 1.34.1 PyPI version JSON
download
home_pageNone
SummaryMoulti is a CLI-driven Terminal User Interface (TUI) displaying arbitrary outputs inside visual, collapsible blocks called steps.
upload_time2025-08-09 18:46:15
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseMIT License Copyright (c) 2024-2025 Xavier G. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords ansible cli collapsible curses diff multiplex output script steps terminal textual tui
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://moulti.run/install/)

## 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](https://moulti.run/)

## 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](https://moulti.run/text-search/)
- ability to maximize a single step log, similar to tmux's zoom feature
- a **progress bar**: [documentation](https://moulti.run/progressbar/)
- programmatic scrolling: [documentation](https://moulti.run/scrolling/#programmatically-scrolling-through-steps)
- an askpass helper named `moulti-askpass`: [documentation](https://moulti.run/shell-scripting/#ssh)
- support for [Ansible playbooks](https://moulti.run/ansible/), [man pages](https://moulti.run/manpage/) and [unified diff](https://moulti.run/diff/)

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

- through `moulti set`: define whether Moulti steps flow up or down: [documentation](https://moulti.run/direction-and-position/)
- through [Textual CSS (TCSS)](https://textual.textualize.io/guide/CSS/): [documentation](https://moulti.run/classes/#custom-classes)
- through ANSI themes: [documentation](https://moulti.run/environment-variables/#moulti_ansi)

## 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": null,
    "name": "moulti",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "ansible, cli, collapsible, curses, diff, multiplex, output, script, steps, terminal, textual, tui",
    "author": null,
    "author_email": "\"Xavier G.\" <xavier.moulti@kindwolf.org>",
    "download_url": "https://files.pythonhosted.org/packages/09/0f/cac22950a0cb3a9ed535bd0b90899752fca1c559812da3351895e06892fe/moulti-1.34.1.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](https://moulti.run/install/)\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](https://moulti.run/)\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](https://moulti.run/text-search/)\n- ability to maximize a single step log, similar to tmux's zoom feature\n- a **progress bar**: [documentation](https://moulti.run/progressbar/)\n- programmatic scrolling: [documentation](https://moulti.run/scrolling/#programmatically-scrolling-through-steps)\n- an askpass helper named `moulti-askpass`: [documentation](https://moulti.run/shell-scripting/#ssh)\n- support for [Ansible playbooks](https://moulti.run/ansible/), [man pages](https://moulti.run/manpage/) and [unified diff](https://moulti.run/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](https://moulti.run/direction-and-position/)\n- through [Textual CSS (TCSS)](https://textual.textualize.io/guide/CSS/): [documentation](https://moulti.run/classes/#custom-classes)\n- through ANSI themes: [documentation](https://moulti.run/environment-variables/#moulti_ansi)\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 License  Copyright (c) 2024-2025 Xavier G.  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Moulti is a CLI-driven Terminal User Interface (TUI) displaying arbitrary outputs inside visual, collapsible blocks called steps.",
    "version": "1.34.1",
    "project_urls": {
        "Changelog": "https://github.com/xavierog/moulti/blob/master/CHANGELOG.md",
        "Documentation": "https://moulti.run/",
        "Homepage": "https://moulti.run/",
        "Issues": "https://github.com/xavierog/moulti/issues",
        "Repository": "https://github.com/xavierog/moulti.git"
    },
    "split_keywords": [
        "ansible",
        " cli",
        " collapsible",
        " curses",
        " diff",
        " multiplex",
        " output",
        " script",
        " steps",
        " terminal",
        " textual",
        " tui"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0bd0cc09dec82ddfafbf3f82fcab1a3fc7c118d743d378476fa08455fa00d0fb",
                "md5": "0c24d3e1f0a40f8d1d9487b21353446a",
                "sha256": "3a800c5d97b1b7b0d6553ada15c57c0eb4b7d8e2c5cc72f324b46275d40bf856"
            },
            "downloads": -1,
            "filename": "moulti-1.34.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0c24d3e1f0a40f8d1d9487b21353446a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 95862,
            "upload_time": "2025-08-09T18:46:14",
            "upload_time_iso_8601": "2025-08-09T18:46:14.349555Z",
            "url": "https://files.pythonhosted.org/packages/0b/d0/cc09dec82ddfafbf3f82fcab1a3fc7c118d743d378476fa08455fa00d0fb/moulti-1.34.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "090fcac22950a0cb3a9ed535bd0b90899752fca1c559812da3351895e06892fe",
                "md5": "833486bf99a5da979690e914fc782e73",
                "sha256": "cdfca85e4e345ac686a7e99cb5081a22116ef1f74ba7b15e1144aabeaf3c8f44"
            },
            "downloads": -1,
            "filename": "moulti-1.34.1.tar.gz",
            "has_sig": false,
            "md5_digest": "833486bf99a5da979690e914fc782e73",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 85859,
            "upload_time": "2025-08-09T18:46:15",
            "upload_time_iso_8601": "2025-08-09T18:46:15.910902Z",
            "url": "https://files.pythonhosted.org/packages/09/0f/cac22950a0cb3a9ed535bd0b90899752fca1c559812da3351895e06892fe/moulti-1.34.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-09 18:46:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "xavierog",
    "github_project": "moulti",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "moulti"
}
        
Elapsed time: 2.27888s