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.4.tar.gz
(8.8 kB
view details)
Built Distribution
File details
Details for the file powerchord-0.1.4.tar.gz
.
File metadata
- Download URL: powerchord-0.1.4.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.0 CPython/3.10.12 Linux/6.2.0-1019-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdcb7dd2a1576ac39c3a8c999e650409418f953626e815a4a045e4c48892aa0a |
|
MD5 | bead88485a9471db38e9f2218a0ef7b7 |
|
BLAKE2b-256 | 88279b7fcbb93f37cbf8955a065024b48abb38ecc9582035347afff6d9ad76dd |
File details
Details for the file powerchord-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: powerchord-0.1.4-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.0 CPython/3.10.12 Linux/6.2.0-1019-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee8300df6836a65d033b925ae156ab643e4f5efdde8bf08f8a4d96ebeee97b42 |
|
MD5 | d5e9cae2dc54405cebacfe32248ab502 |
|
BLAKE2b-256 | b6fa570b6fe88fd1428063abec6b940ea6b02a4888695337f0bb33cd2369c09f |