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

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.2
File Size Uploaded Provenance Actions
rich_gradient_cli-0.4.2.tar.gz 19.4 kB Without provenance Details for rich_gradient_cli-0.4.2.tar.gz

Built distribution (wheel)

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

Total release size: 42.1 kB

Release files / rich_gradient_cli-0.4.2.tar.gz

Download URL rich_gradient_cli-0.4.2.tar.gz
Size 19.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e881fe306f2f7933a75ef24e82293a1e74c11f35ec4746bd43910dc6913c51ab
BLAKE2b-256 checksum
How to use checksums
c62bd1b558b7c8d8d8a194a471a977bb9395d26b9b044413f81ca4b38b56c262
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.2-py3-none-any.whl

Download URL rich_gradient_cli-0.4.2-py3-none-any.whl
Size 22.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
213d44e5884fc63123dcb8f8fb33cadd3ddadca2a111f1e4b98e45627332c834
BLAKE2b-256 checksum
How to use checksums
ced8f4031d38106e85ccead0a02174bbe740b8607dfb64123ecdc25988672a1a
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.2

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