Skip to main content

Parallel command runner

Project description

par-run

License: MIT PyPI version Python Versions

Ever needed to run groups of long-ish running commands in parallel groups? Then this is for you. par-run gives both a CLI and web interface to running groups of commands in parallel.

Getting Started

pip install par-run
par-run run

This expects a file call commands.ini or you can override with the --file option

[group.formatting]
ruff_fmt = ruff format src py_tests
ruff_fix = ruff check --fix src py_tests

[group.quality]
ruff_lint = ruff check src py_tests
mypy = mypy src
pytest = pytest py_tests

The tool will execute each group in parallel collating the the output until each command has completed before writing to the console. If you do not want to wait then it's possible to get the output as it's produced with the --style recv param.

There is also a web component included, in order to us ensure to install the optional web component

pip install par-run[web]
par-run web --help

This will add a new sub command with options to start/stop/restart the web service and see the commands updating to the web server on 8081

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

par_run-0.1.3.tar.gz (66.3 kB view hashes)

Uploaded Source

Built Distribution

par_run-0.1.3-py3-none-any.whl (14.6 kB view hashes)

Uploaded Python 3

Supported by

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