CLI for printing text in gradient color using the rich-gradient library.
Project description
rich-gradient-cli
rich-gradient-cli is a CLI for rich-gradient. The tool allows you to create colorful gradients in your terminal output, making it easier to visualize data or simply add some flair to your command-line applications.
Installation
You can install rich-gradient-cli from PyPI
uv (recommended)
uv add rich-gradient-cli
pip
pip install rich-gradient-cli
Usage
To use the rich-gradient-cli, you can run the following command in your terminal:
gradient print --colors 'red,#ff9900,#ffff00' "This is gradient text that starts red, transitions through orange, and ends in yellow\!"
Rule
You can also create gradient rules using the rule command:
gradient rule --colors 'blue,#00ff00,cyan' "Blue to Green to Cyan Rule"
Panel
To create a gradient panel, you can use the panel command:
gradient panel --colors "red,#ff9999" -t "Error" --title-style "bold #ffffff" --title-align left 'This is an error message with a red to pink gradient background.'
Markdown
You can also render Markdown with gradients:
echo "# Hello\n\n- This is **bold**.\n- This is *italic*." | gradient markdown -
Docs
Build and preview the documentation locally with MkDocs:
uv pip install -e ".[docs]"
mkdocs serve
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rich_gradient_cli-0.1.0.tar.gz.
File metadata
- Download URL: rich_gradient_cli-0.1.0.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de79535beadfa25f8c9970d306aa172459a3b08f508922e83fa3e5e4f711fcd4
|
|
| MD5 |
8126955f13f37b1384dca2983ad4dc1f
|
|
| BLAKE2b-256 |
8e802f2d5a539ebfeadd455a3b8c02c30c8fd282d9ab152c3634b985db69eea2
|
File details
Details for the file rich_gradient_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rich_gradient_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af05737ba80461959d56f80aa9c4f4194bea399f7c467b508b893282374bb7a3
|
|
| MD5 |
e1964efdda9913d8493e1a737c0081df
|
|
| BLAKE2b-256 |
a3bac55b23ba840b854117fca9bf6de4019694f69480b731997d684e84964432
|