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

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.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 rich-gradient-cli 0.4.1
File Size Uploaded Provenance Actions
rich_gradient_cli-0.4.1.tar.gz 18.4 kB Without provenance Details for rich_gradient_cli-0.4.1.tar.gz

Built distribution (wheel)

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

Total release size: 39.9 kB

Release files / rich_gradient_cli-0.4.1.tar.gz

Download URL rich_gradient_cli-0.4.1.tar.gz
Size 18.4 kB
Tags Source
SHA-256 checksum
How to use checksums
badf83acd2e5c602d6035fd7217144655a56828e74c53510c523d969dadc139e
BLAKE2b-256 checksum
How to use checksums
699246462245b47643d6197c809b23a9a8ca3c2fb4e7cb5881d23cef4cc99dad
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.1-py3-none-any.whl

Download URL rich_gradient_cli-0.4.1-py3-none-any.whl
Size 21.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d068d32797d7c044fb2217a14c027c8d3f394d2efc9d5b2b7e982aaf9bd2be6b
BLAKE2b-256 checksum
How to use checksums
dcd29290913d288dc399f41e845f750e8b7cb84ecc6a5158257f003195bf19cd
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.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.

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