Skip to main content

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:

  1. A blue panel showing the command being executed with a timestamp
  2. A separator line
  3. The actual command output
  4. Another separator line
  5. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rich_run-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rich_run-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

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

Hashes for rich_run-0.1.0.tar.gz
Algorithm Hash digest
SHA256 129a6a1c4459cfc395217922a12feec337b2f1991f381f1fca1c1f95898e03c8
MD5 8ac3fd20c2ca236ad0bb1902f682b1c7
BLAKE2b-256 30f8b0a722ccd85e0ee91aef9014ae3b83d823bcff71f21f7e612c0bf30fe1ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for rich_run-0.1.0.tar.gz:

Publisher: publish.yml on tanganke/rich-run

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for rich_run-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01bb26dd697f5e7f5247e24af087d57e427ae0533b42b937fafa6c374fcf04db
MD5 8054b935e7cc0979b97df63c0d3723ed
BLAKE2b-256 7bde92b396479efe33e2d1bae957a3b7592c3a0b4e4022944bc62e1f2ea51d4a

See more details on using hashes here.

Provenance

The following attestation bundles were made for rich_run-0.1.0-py3-none-any.whl:

Publisher: publish.yml on tanganke/rich-run

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page