Skip to main content

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.18.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lewishowles-cli-style 0.18.0
File Size Uploaded Provenance
lewishowles_cli_style-0.18.0.tar.gz 6.1 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for lewishowles-cli-style 0.18.0
File Interpreter ABI Platform
lewishowles_cli_style-0.18.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.5 kB

Release files / lewishowles_cli_style-0.18.0.tar.gz

Download URL lewishowles_cli_style-0.18.0.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f5a360598778d23b3067ec88d34b4367929fddf1516d800ad62cfdd2428d39fa
BLAKE2b-256 checksum
How to use checksums
2985e0fff47fb213eacb95302818d6ec13ab787b49d0fe906b454d9a5c13be53
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 20, 2026.

Transparency log

Release files / lewishowles_cli_style-0.18.0-py3-none-any.whl

Download URL lewishowles_cli_style-0.18.0-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9293b53601a02364f97aa2ce84ebbac3cbe4feb7908bc4746a1225de2126e8a
BLAKE2b-256 checksum
How to use checksums
e3d247c014a18522daccd1c2d1b52bb9b5fe2874bd66aa5d7053873f2368dfca
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 20, 2026.

Transparency log

Security for lewishowles-cli-style 0.18.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.

Select from 2 files

Attestation for lewishowles_cli_style-0.18.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 20, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page