Skip to main content

rich-gradient-cli

gradient is a single-command CLI for rich-gradient, modeled on rich-cli: point it at a file, a URL, - for stdin, or literal text and it renders the result with a gradient.

gradient [OPTIONS] [PATH,TEXT,URL, or '-']

Installation

uv tool install rich-gradient-cli   # or: pip install rich-gradient-cli

Or with Homebrew:

brew install maxludden/tap/rich-gradient-cli

Requires Python 3.11+.

Usage

The renderable is chosen from the file extension (.md, .rst, .ipynb, .json, .csv/.tsv, source code) or by a mode flag, exactly like rich-cli. Literal text and stdin are printed as gradient text.

gradient --colors 'red,#ff9900,#ffff00' "Gradient text that runs red, orange, yellow!"
gradient README.md                        # Markdown, auto-detected
gradient pyproject.toml -n -g             # syntax with line numbers and guides
gradient data.csv --colors cyan,magenta   # table
gradient notebook.ipynb                   # Jupyter notebook
cat doc.rst | gradient - --rst            # reStructuredText from stdin
gradient https://example.com/page.md      # URL
gradient "Title" --rule --colors blue,cyan
gradient "Heads up" --panel rounded --title Notice
gradient str --inspect                    # inspect a Python object
gradient --spectrum --hues 7
gradient --tree src                       # directory tree
gradient README.md --export-svg out.svg   # also: -o out.html, --pager

Gradient text

Options at a glance

Shared flags keep their rich-cli spelling (-p --print, -u --rule, -m --markdown, -J --json, -a --panel BOX, -d --padding, -s --style, -S --panel-style, -l/-c/-r block alignment, -L/-C/-R/-F text justify, -w/-W width, -h/-t head/tail, -n -g -x -y -j, -o --export-html, --export-svg, --pager, -v --version). Gradient-specific options are long-only: --colors, --bgcolors, --rainbow, --hues, --repeat-scale, --highlight-word, --highlight-regex, --animate, --duration.

See docs/options.md or run gradient --help for the grouped list.

From 0.3 subcommands

Versions up to 0.3 used subcommands (gradient print, gradient panel, gradient view, ...). They were replaced by flags on the one command; see the CHANGELOG for the mapping.

Telemetry

Anonymous usage telemetry is off by default. gradient --telemetry enable|disable|status manages it; when enabled and AMPLITUDE_API_KEY is set, a Command Run event with the render mode and a random install ID is sent after a command succeeds.

Docs

Build and preview the documentation locally with Zensical:

uv pip install -e ".[docs]"
zensical serve

Metadata

Release files for rich-gradient-cli 0.4.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 rich-gradient-cli 0.4.0
File Size Uploaded Provenance Actions
rich_gradient_cli-0.4.0.tar.gz 18.5 kB Without provenance Details for rich_gradient_cli-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rich-gradient-cli 0.4.0
File Interpreter ABI Platform Actions
rich_gradient_cli-0.4.0-py3-none-any.whl Python 3 none any Details for rich_gradient_cli-0.4.0-py3-none-any.whl

Total release size: 40.4 kB

Release files / rich_gradient_cli-0.4.0.tar.gz

Download URL rich_gradient_cli-0.4.0.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e9a3ebf646ec03d0e86ebc6183419c8a2c718db0fab99c4423e8dc15b41e63a5
BLAKE2b-256 checksum
How to use checksums
2991cde1885e74bf350376ce8d36682c9da03ff2e8b116fbfc0a00612cbfdc46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / rich_gradient_cli-0.4.0-py3-none-any.whl

Download URL rich_gradient_cli-0.4.0-py3-none-any.whl
Size 21.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d8705f9db8e80f6bd3fc81bb40583ea0b1a87119ebaa798212aabc618825f900
BLAKE2b-256 checksum
How to use checksums
de0b918462e351a253e7eea77b59fd9cff006d9ab1ba979e6a7e89a8bf1c74d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for rich-gradient-cli 0.4.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.

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