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.
Metadata
Release files for rich-run 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rich_run-0.1.2.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rich_run-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.7 kB
Release files / rich_run-0.1.2.tar.gz
| Download URL | rich_run-0.1.2.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd8e20d5105f5e8c8fae02a2f0d6562500f398d317105305a714d72449eba999
|
|
BLAKE2b-256 checksum How to use checksums |
40e8301c62491809978e473ee19b1ef6aebcb82843c2fca34cd6d10e808ce7e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 16, 2025.
Transparency logRelease files / rich_run-0.1.2-py3-none-any.whl
| Download URL | rich_run-0.1.2-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
15a94a030013be901aecd54884aa351cacd4f7f68f2dc7657472eb105f112078
|
|
BLAKE2b-256 checksum How to use checksums |
7adb5d9366218ac9986d14f8a16b259a2a57f4e27604b513f90c7a0a3271b71f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 16, 2025.
Transparency log