cliasi (cli easy)
Output pretty command line text without hassle.
This is mostly a collection of pretty print commands
View the documentation here.
Installation
pip install cliasi
uv add cliasi
Basic Usage
from cliasi import cli
cli.success("It works!")
# > ✔ [CLI] | It works!
cli.messages_stay_in_one_line = True
# The next few lines will get overwritten
cli.info("blah")
cli.warn("doing something dangerous")
# > ! [CLI] | doing something dangerous
Read more about different message types and see visualizations in the documentation here.
Animations
One of the main features of cliasi is the ability to display animations while waiting for something to finish.
# File: examples/readme_demo.py
from cliasi import cli
# This will wait for three seconds and display an animation
task = cli.animate_message_non_blocking(
"Saving files...",
message_right="[CTRL-C to abort]",
messages_stay_in_one_line=True
)
do_stuff()
task.update("Files saved, waiting for process to quit", message_right="70%")
tell_process_to_quit()
task.stop()
cli.success("Process quit", message_right="100%")
Catching exceptions
cliasi also catches exceptions and displays them in a pretty way. This then looks something like this:
# exception_message.py
import cliasi
# Importing cliasi automatically installs the logging handler
raise ValueError("An example error")
Example CLI output (uncolored, see colored version in docs):
X [CLI] | Uncaught exception:
X [CLI] | Traceback (most recent call last):
| File "examples/exception_message.py", line 4, in <module>
| raise ValueError("An example error")
| ValueError: An example error
Other features
cliasi has many more features like:
- Logging integration
- Custom message alignments
- Customizable progressbars (with
PBCalculationMode) - And more!
Contributing:
This is just a fun project of mine mainly to try out python packaging. If you would like to contribute or have a feature-request, please open an issue or pull request.
Release files for cliasi 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cliasi-0.4.2.tar.gz | 239.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cliasi-0.4.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 268.6 kB
Release files / cliasi-0.4.2.tar.gz
| Download URL | cliasi-0.4.2.tar.gz |
|---|---|
| Size | 239.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f5228dd927ba612281a8820b793929614bba29d0f829d86a3d640557d4772fa
|
|
BLAKE2b-256 checksum How to use checksums |
d0549b01c0e9cdb09d978be1a7eead4b3c750812d7a68bafa367aa529a61737c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 16, 2026.
Transparency logRelease files / cliasi-0.4.2-py3-none-any.whl
| Download URL | cliasi-0.4.2-py3-none-any.whl |
|---|---|
| Size | 29.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
168494ef4b94d2f20e84cbe7ae0ab276fa158977ec6c791323b117c4f4d469bc
|
|
BLAKE2b-256 checksum How to use checksums |
93ad5d57e8bc461329cc0dc7d56a5e5e5b2c113f57bd9fc2227fc1e41c50f7e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 16, 2026.
Transparency log