Concurrent CLI task runner
Project description
Powerchord: Concurrent CLI task runner
Installation
pip install powerchord
Usage
Run a number of tasks:
$ powerchord -t "ruff check ." pytest mypy
✔ ruff check . 21.075 ms
✔ mypy 166.433 ms
✔ pytest 187.096 ms
Tasks can be labeled by passing them as NAME=COMMAND values:
$ powerchord -t lint="ruff check ." test=pytest typing=mypy
To do:
• lint ruff check .
• test pytest
• typing mypy
Results:
✔ lint 48.452 ms
✔ typing 202.403 ms
✔ test 286.231 ms
Verbosity can be specified for all output, for successful tasks and for failed tasks by setting log levels:
$ powerchord -t "ruff chekc ." pytest mypy -l all=info success=info fail=error
✘ ruff chekc . 126.852 ms
chekc:1:1: E902 No such file or directory (os error 2)
Found 1 error.
✔ pytest 255.197 ms
.. [100%]
2 passed in 0.03s
✔ mypy 542.490 ms
Success: no issues found in 11 source files
✘ Failed tasks: ['ruff chekc .']
For all options see the help:
powerchord -h
Config can also be specified in pyproject.toml
:
[tool.powerchord.tasks]
task = "command --foo bar /path/to/happiness"
other-task = "..."
you-get-the-idea = "..."
[tool.powerchord.log_levels]
all = "info" # "debug" | "info" | "warning" | "error" | "critical" | ""
success = "" # log level of successful task output
fail = "error" # log level of failed task output
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
powerchord-0.1.1.tar.gz
(8.2 kB
view details)
Built Distribution
File details
Details for the file powerchord-0.1.1.tar.gz
.
File metadata
- Download URL: powerchord-0.1.1.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1019-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 276d67e1639dbad2bc0550afaa9f7cded615c87730df05d1a20befd9ff6f2f49 |
|
MD5 | debcdd856c3535bec77886431c7abd81 |
|
BLAKE2b-256 | a50fb01ef8a8758e7e1dddb65e65adf594413aaf44321bf0f9f6445302d03e30 |
File details
Details for the file powerchord-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: powerchord-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1019-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fced4ff0bded468dedbfe07ffcd6fd3549a248f1d77928d097eadf9df11d73b2 |
|
MD5 | 62a8bca0585615f095b6ca7eaecd73a8 |
|
BLAKE2b-256 | 7e9dad212f6a11f739dbad01f59bc614e536e2577512637183cf03144a75c943 |