lewishowles-cli-style
lewishowles-cli-style is a Python adapter for the shared cli-style command-line renderer. It lets Python programs use the same terminal output styles as the JavaScript package.
Install
python -m pip install lewishowles-cli-style
The package supports Python 3.9 and later. The installed distribution is named lewishowles-cli-style, and you import it as cli_style.
Rendering happens in the separate cli-style binary, so that needs to be on your PATH. The main readme covers the ways to install it.
Usage
from cli_style import render
print(render("status", {"type": "success", "label": "Build passed"}))
If the cli-style binary is not available, render() returns sorted plain key: value text by default. Pass raise_on_missing=True to raise CliStyleNotFoundError instead.
Use row() for one labelled value or row_group() to align several values. Both accept wrap=False to keep values on one line and wrap_width to set the width used when wrapping. row_group() also accepts label_colour, value_colour, and separator as defaults for its rows:
from cli_style import row_group
print(row_group(
[{"label": "Command", "value": "python -m pip install lewishowles-cli-style"}],
wrap=False,
label_colour="muted",
))
Each row has label, value, and an optional result. It can override the group defaults with label_colour, value_colour, separator, wrap, or wrap_width. The JavaScript spellings, such as labelColour and wrapWidth, also work in row dictionaries. Callers add any blank lines around rendered blocks. Python render() removes trailing newlines from rendered strings.
More information
Metadata
Release files for lewishowles-cli-style 0.17.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 | |
|---|---|---|---|---|
| lewishowles_cli_style-0.17.0.tar.gz | 6.1 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lewishowles_cli_style-0.17.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.5 kB
Release files / lewishowles_cli_style-0.17.0.tar.gz
| Download URL | lewishowles_cli_style-0.17.0.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5baf49ca69345131f080a93852f313a92c1305350033a6ff5f165fc6be77cba
|
|
BLAKE2b-256 checksum How to use checksums |
95379b38bf466c48ee7f668691bf2ac691658470f8937f8560398014ec48d5a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 3, 2026.
Transparency logRelease files / lewishowles_cli_style-0.17.0-py3-none-any.whl
| Download URL | lewishowles_cli_style-0.17.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ac6e9ea1619569666d49995312c5b17db07e8ae8ffeef38ac8860b1545bfe852
|
|
BLAKE2b-256 checksum How to use checksums |
511265072c2ad81b28cb89db1bc0c0ec84c379f126e7452c9d33c1cfd3640ece
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 3, 2026.
Transparency logSecurity for lewishowles-cli-style 0.17.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for lewishowles_cli_style-0.17.0.tar.gz
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 Oct 3, 2026.
Transparency logA 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.