Skip to main content

Concurrent CLI task runner

Project description

Powerchord: Concurrent CLI task runner

Poetry PyPI - Version PyPI - Python Versions

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


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.4.13.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

powerchord-0.4.13-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file powerchord-0.4.13.tar.gz.

File metadata

  • Download URL: powerchord-0.4.13.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for powerchord-0.4.13.tar.gz
Algorithm Hash digest
SHA256 f3dd79d7595f2e2f12f544ad26b16fd34fce0233bad7350b3c8fc8eb5d80d2d0
MD5 0422149ef3f2cbfd8dd9cd56fb274775
BLAKE2b-256 15d20978acc27d4ff5c03a4565806945f8a358f58dd085c8f3ec629c5fff30d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for powerchord-0.4.13.tar.gz:

Publisher: on-release-tag__publish-to-pypi.yml on githuib/powerchord

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file powerchord-0.4.13-py3-none-any.whl.

File metadata

  • Download URL: powerchord-0.4.13-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for powerchord-0.4.13-py3-none-any.whl
Algorithm Hash digest
SHA256 12a7dfa5433f7cc66a3d43ea902a8df15c35f85ab09d2ae88830dcf937184789
MD5 d54c18442c1437a79d1ae9c47bf039ef
BLAKE2b-256 7c19b1e66c07e992c1d64e8022279e3e615c80753764d63ad40a9aba71ea3554

See more details on using hashes here.

Provenance

The following attestation bundles were made for powerchord-0.4.13-py3-none-any.whl:

Publisher: on-release-tag__publish-to-pypi.yml on githuib/powerchord

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