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
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.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rich_gradient_cli-0.4.3.tar.gz | 20.0 kB | Without provenance | Details for rich_gradient_cli-0.4.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rich_gradient_cli-0.4.3-py3-none-any.whl | Python 3 | none | any | Details for rich_gradient_cli-0.4.3-py3-none-any.whl |
Total release size: 43.4 kB
Release files / rich_gradient_cli-0.4.3.tar.gz
| Download URL | rich_gradient_cli-0.4.3.tar.gz |
|---|---|
| Size | 20.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0bd5ffa061b4028e02946d4dea8929f48fbd150331d130bf2ddcf392ea6af056
|
|
BLAKE2b-256 checksum How to use checksums |
5cf2d638374ed93a8e7b41bc6be59201793e9dd9b900dbe3cffa24bd3442bec9
|
| 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.3-py3-none-any.whl
| Download URL | rich_gradient_cli-0.4.3-py3-none-any.whl |
|---|---|
| Size | 23.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3271d46e2101ad33cfb2383af0b90e65313e337200ce387ef43c99a5bd1811ae
|
|
BLAKE2b-256 checksum How to use checksums |
940a50540a4a08eb1b181e45380002f8c7b0f96cc9538732ad91c18b06bace96
|
| 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.3
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.