A command runner with rich formatting
Project description
Rich Run
A command runner with rich formatting that wraps your commands in elegant panels and provides clear success/failure feedback.
Features
- 🎨 Command output with rich formatting
- ⏰ Timestamps for command execution
- ✅ Clear success/failure indicators
- 📦 Easy installation via pip/pipx
- 🚀 Drop-in replacement for running commands
Installation
Via pipx (recommended)
pipx install rich-run
Via pip
pip install rich-run
Prerequisites
This package depends on rich-cli. If it's not already installed, you can install it with:
pipx install rich-cli
Usage
Simply prepend rich-run to any command you want to run:
# Run a simple command
rich-run echo 'Hello, World!'
# Run a more complex command
rich-run python -c "print('This is a Python script')"
# Run commands with arguments
rich-run ls -la /usr/local
# Chain commands (note: use quotes to preserve shell behavior)
rich-run "echo 'First command' && echo 'Second command'"
Example Output
When you run a command with rich-run, you'll see:
- A blue panel showing the command being executed with a timestamp
- A separator line
- The actual command output
- Another separator line
- A success (green) or failure (red) message with the exit code
Development
To set up for development:
git clone https://github.com/tanganke/rich-run.git
cd rich-run
pip install -e .
License
MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
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_run-0.1.0.tar.gz.
File metadata
- Download URL: rich_run-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
129a6a1c4459cfc395217922a12feec337b2f1991f381f1fca1c1f95898e03c8
|
|
| MD5 |
8ac3fd20c2ca236ad0bb1902f682b1c7
|
|
| BLAKE2b-256 |
30f8b0a722ccd85e0ee91aef9014ae3b83d823bcff71f21f7e612c0bf30fe1ac
|
Provenance
The following attestation bundles were made for rich_run-0.1.0.tar.gz:
Publisher:
publish.yml on tanganke/rich-run
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rich_run-0.1.0.tar.gz -
Subject digest:
129a6a1c4459cfc395217922a12feec337b2f1991f381f1fca1c1f95898e03c8 - Sigstore transparency entry: 271411268
- Sigstore integration time:
-
Permalink:
tanganke/rich-run@80874fe339485a531ff03691d6bd4e92df8e29c7 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/tanganke
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@80874fe339485a531ff03691d6bd4e92df8e29c7 -
Trigger Event:
release
-
Statement type:
File details
Details for the file rich_run-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rich_run-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01bb26dd697f5e7f5247e24af087d57e427ae0533b42b937fafa6c374fcf04db
|
|
| MD5 |
8054b935e7cc0979b97df63c0d3723ed
|
|
| BLAKE2b-256 |
7bde92b396479efe33e2d1bae957a3b7592c3a0b4e4022944bc62e1f2ea51d4a
|
Provenance
The following attestation bundles were made for rich_run-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on tanganke/rich-run
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rich_run-0.1.0-py3-none-any.whl -
Subject digest:
01bb26dd697f5e7f5247e24af087d57e427ae0533b42b937fafa6c374fcf04db - Sigstore transparency entry: 271411273
- Sigstore integration time:
-
Permalink:
tanganke/rich-run@80874fe339485a531ff03691d6bd4e92df8e29c7 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/tanganke
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@80874fe339485a531ff03691d6bd4e92df8e29c7 -
Trigger Event:
release
-
Statement type: