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.

Example

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.1.tar.gz (4.2 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.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file rich_run-0.1.1.tar.gz.

File metadata

  • Download URL: rich_run-0.1.1.tar.gz
  • Upload date:
  • Size: 4.2 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.1.tar.gz
Algorithm Hash digest
SHA256 20ecbad6b5bd54c8d4d1f41cd1f47e85855977e7e9ee01be3c59467d2bd1f363
MD5 81349cb92414a98b3b791162353b67ee
BLAKE2b-256 516f6115a8965e45870a1812301796f2f7e8fba81dede53d04fb6c61c91a9d22

See more details on using hashes here.

Provenance

The following attestation bundles were made for rich_run-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: rich_run-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3ba7ecb03fc8dcd1aae47b49d9719176fa67ba6a70c29d51e1fd02bfbc0b57f7
MD5 194e2d7fa492f1316f7d02401e211ac2
BLAKE2b-256 921a93ac13e50b09fa9d9a7f8afa99f2516466aa93ce08bb038c785fc31e968e

See more details on using hashes here.

Provenance

The following attestation bundles were made for rich_run-0.1.1-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