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
:
Tasks:
[tool.powerchord]
tasks = ["command --arg", "...", "..."]
Labeled tasks:
[tool.powerchord.tasks]
task = "command --foo bar /path/to/happiness"
other-task = "..."
you-get-the-idea = "..."
Log levels:
[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.3.tar.gz
(8.7 kB
view hashes)
Built Distribution
Close
Hashes for powerchord-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49acfedd120cf0f55bdbb0e1bb61df9e8dc91669a3c19e2f6ce5534274b9b79b |
|
MD5 | 9fa258bddf671c6b8677e5093c0319f1 |
|
BLAKE2b-256 | 692945dbe6c6df9a77c81f67ff683fad19bd4dcd61413bc30a0ded7bdbf2d250 |