moulti


Namemoulti JSON
Version 1.7.0 PyPI version JSON
download
home_pagehttps://github.com/xavierog/moulti
SummaryMoulti 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.
upload_time2024-04-28 13:19:59
maintainerNone
docs_urlNone
authorXavier G.
requires_pythonNone
licenseMIT
keywords cli tui curses terminal multiplex script output steps textual collapsible
VCS
bugtrack_url
requirements argcomplete bpython build mypy pylint pyperclip ruff textual-dev textual twine
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 how [upgrading a Debian system](examples/upgrade-system.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)

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](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:
- 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)

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/) and [argcomplete](https://kislyuk.github.io/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](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": null,
    "maintainer_email": null,
    "keywords": "cli, tui, curses, terminal, multiplex, script, output, steps, textual, collapsible",
    "author": "Xavier G.",
    "author_email": "xavier.moulti@kindwolf.org",
    "download_url": "https://files.pythonhosted.org/packages/c8/33/c5dd13b49fcff1dd553c665179f0dd2de893d31d40560065a5c1f264ef32/moulti-1.7.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 how [upgrading a Debian system](examples/upgrade-system.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\nMoulti is a tool meant for people who write and execute shell scripts.\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\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- 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\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/) and [argcomplete](https://kislyuk.github.io/argcomplete/).\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.7.0",
    "project_urls": {
        "Homepage": "https://github.com/xavierog/moulti"
    },
    "split_keywords": [
        "cli",
        " tui",
        " curses",
        " terminal",
        " multiplex",
        " script",
        " output",
        " steps",
        " textual",
        " collapsible"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "200147f16542271a5a12eae37f4b3489f0c9f985f6f81e60988297fed409347f",
                "md5": "1df047b802edf58786a6277267b266b7",
                "sha256": "457c4e858132b70a1e26b1a6087b42845712bbac533aacdaa2bcb921bdfa45fa"
            },
            "downloads": -1,
            "filename": "moulti-1.7.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1df047b802edf58786a6277267b266b7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 51311,
            "upload_time": "2024-04-28T13:19:57",
            "upload_time_iso_8601": "2024-04-28T13:19:57.499530Z",
            "url": "https://files.pythonhosted.org/packages/20/01/47f16542271a5a12eae37f4b3489f0c9f985f6f81e60988297fed409347f/moulti-1.7.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c833c5dd13b49fcff1dd553c665179f0dd2de893d31d40560065a5c1f264ef32",
                "md5": "32c04d233d532cb5871e9fd2b6417924",
                "sha256": "5c455cb8304084986c8c90b3f030e6d00ec1dd9e919dc245797ae93916281022"
            },
            "downloads": -1,
            "filename": "moulti-1.7.0.tar.gz",
            "has_sig": false,
            "md5_digest": "32c04d233d532cb5871e9fd2b6417924",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 42092,
            "upload_time": "2024-04-28T13:19:59",
            "upload_time_iso_8601": "2024-04-28T13:19:59.374298Z",
            "url": "https://files.pythonhosted.org/packages/c8/33/c5dd13b49fcff1dd553c665179f0dd2de893d31d40560065a5c1f264ef32/moulti-1.7.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-28 13:19:59",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "xavierog",
    "github_project": "moulti",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "argcomplete",
            "specs": []
        },
        {
            "name": "bpython",
            "specs": []
        },
        {
            "name": "build",
            "specs": []
        },
        {
            "name": "mypy",
            "specs": []
        },
        {
            "name": "pylint",
            "specs": []
        },
        {
            "name": "pyperclip",
            "specs": []
        },
        {
            "name": "ruff",
            "specs": []
        },
        {
            "name": "textual-dev",
            "specs": []
        },
        {
            "name": "textual",
            "specs": [
                [
                    ">=",
                    "0.53"
                ]
            ]
        },
        {
            "name": "twine",
            "specs": []
        }
    ],
    "lcname": "moulti"
}
        
Elapsed time: 0.27022s