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

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.1
File Size Uploaded Provenance
lewishowles_cli_style-0.18.1.tar.gz 6.1 kB With provenance Details

Built distribution (wheel)

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

Total release size: 13.5 kB

Release files / lewishowles_cli_style-0.18.1.tar.gz

Download URL lewishowles_cli_style-0.18.1.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
35c77dcd674caba985f5be2be4ad946d5c48d85f94741cffe5f6cb19aa80245f
BLAKE2b-256 checksum
How to use checksums
354a5f7dcd884e62a6dc5657f6eb170ad882c3be783b5b2f753a9be707aa1250
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 22, 2026.

Transparency log

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

Download URL lewishowles_cli_style-0.18.1-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
336b1b1a2b93a9eb2cb8800cee0aa42fecd2f8790dbae767afcf925d6a39ea94
BLAKE2b-256 checksum
How to use checksums
4497cfa71227c692c69262b8dcc98b1d10f29071beab845adce4b6b4ed4cd90e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 22, 2026.

Transparency log

Security for lewishowles-cli-style 0.18.1

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.1.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 22, 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