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.2.4.tar.gz (7.8 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.2.4-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: powerchord-0.2.4.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.0 CPython/3.12.3 Linux/6.11.0-1018-azure

File hashes

Hashes for powerchord-0.2.4.tar.gz
Algorithm Hash digest
SHA256 399fd68151a81ff47deac76c53dc07628d3aa9797d96f00068673c02611c5ce4
MD5 e175bb12163c072acf054b85df04731c
BLAKE2b-256 6ad806d62a5d63d74a77afc883b328676802a73996c5c506979f804ceda94ea4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: powerchord-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.0 CPython/3.12.3 Linux/6.11.0-1018-azure

File hashes

Hashes for powerchord-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 648220008c1ee1620c034356de52fb5c874a9698e595c4651b3dd2d67934e070
MD5 d0e9997355a13157945261d0c62091a3
BLAKE2b-256 9b1a0c70c227dc1ed4cc5e747399b6798b4b558a2520ab26996f233788711396

See more details on using hashes here.

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