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

Built distribution (wheel)

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

Total release size: 13.5 kB

Release files / lewishowles_cli_style-0.17.1.tar.gz

Download URL lewishowles_cli_style-0.17.1.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
192086aa09738f193d15b494d64a46c9dff244e2fa10d2e30aa8c2796aa96067
BLAKE2b-256 checksum
How to use checksums
80a410432ef2baaf1047c701ee37d2d49c8fb4969922f8557e7137cd7fab0884
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.17.1-py3-none-any.whl

Download URL lewishowles_cli_style-0.17.1-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8857310286e8a0756bcefeaeb03e5b7fd6313c56ab07ba20ffbb92f71cf6fb43
BLAKE2b-256 checksum
How to use checksums
d13c27d267bf088dc3bc23ff40b9e2ea9463611cb177b02d5fb2c68bd2e37038
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.17.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.17.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 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