larztui
Pretty terminal UI — panels, tables and rules — zero dependencies.
A small, rich-style toolkit for good-looking terminal output with no dependency.
Everything is width-aware: it measures the visible width (ignoring ANSI
colour codes) so columns line up even when cells are styled — and it degrades
gracefully, switching colour off automatically when output isn't a terminal or
NO_COLOR is set.
Install
pip install larztui
Use
from larztui import panel, table, rule, style, columns
print(rule("Report"))
print(table(["Name", "Score"], [["Ada", "99"], ["Bob", "5"]],
aligns=["left", "right"], header_style={"bold": True}))
print(panel("All systems go.", title="Status", box="rounded"))
print(style("done", fg="green", bold=True))
──────────────────────── Report ─────────────────────────
┌───────┬───────┐
│ Name │ Score │
├───────┼───────┤
│ Ada │ 99 │
│ Bob │ 5 │
└───────┴───────┘
Tests
python -m unittest discover -s tests -v # 17 tests
The Larz stack
One of 60+ pure-Python, zero-dependency libraries at github.com/larz-scripter. Complements larzprogress (bars/spinners) and larzcli.
License
MIT (c) larz-scripter
Metadata
Release files for larztui 0.1.0
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 | |
|---|---|---|---|---|
| larztui-0.1.0.tar.gz | 6.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| larztui-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.3 kB
Release files / larztui-0.1.0.tar.gz
| Download URL | larztui-0.1.0.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1656b303d2b379f53319669d878bbef552421c2eeb5913a4e5cad1f90b35033b
|
|
BLAKE2b-256 checksum How to use checksums |
cd12dd830c84bad5491b828b2658207b1ba6adfc3523594fce9af789e7e0a7b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / larztui-0.1.0-py3-none-any.whl
| Download URL | larztui-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57a51b5138ff72c2a6b59f52eec6c0959cf8e2010c1c2bcd2d80136287265db9
|
|
BLAKE2b-256 checksum How to use checksums |
a870b4357e1e61f8c83fbb7c3e68e3113d2eda20d06f73edca260f84632f6c14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Security for larztui 0.1.0
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.