Run and handle the output of multiple executables in pyallel (as in parallel)
Project description
Pyallel
Run and handle the output of multiple executables in pyallel (as in parallel)
https://github.com/Danthewaann/pyallel/assets/22531177/8685eb92-aac5-440a-9170-30fd1460c53f
Requires Python >=3.8
Tested on Linux and MacOS only
Quick start
pyallel can be installed using pip:
pip install pyallel
Once installed, you can run pyallel to see usage information, like so:
usage: pyallel [-h] [-t] [-n] [-V] [-v] [--colour {yes,no,auto}] [commands ...]
Run and handle the output of multiple executables in pyallel (as in parallel)
positional arguments:
commands list of quoted commands to run e.g "mypy ." "black ."
can provide environment variables to each command like so:
"MYPY_FORCE_COLOR=1 mypy ."
options:
-h, --help show this help message and exit
-t, --no-timer don't time how long each command is taking
-n, --non-interactive
run in non-interactive mode
-V, --verbose run in verbose mode
-v, --version print version and exit
--colour {yes,no,auto}
colour terminal output, defaults to "auto"
Currently you can provide a variable number of commands to run to pyallel, like so:
[!IMPORTANT] If you need to provide arguments to a command, you must surround the command and it's arguments in quotes!
pyallel "MYPY_FORCE_COLOR=1 mypy ." \
"black --check --diff ." \
"pytest ."
TODOs
- Add custom parsing of command output to support filtering for errors (like vim's
errorformat) - Allow list of files to be provided to supply as input arguments to each command
- Allow input to be piped into
pyallelvia stdin to supply as standard input to each command
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyallel-0.18.5.tar.gz.
File metadata
- Download URL: pyallel-0.18.5.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6c2d9ba43a60ad552805f09bf6df0bc0a7982472d7f4e21e001853c03507594
|
|
| MD5 |
75eee254698caa490222b5f4e6e6d14f
|
|
| BLAKE2b-256 |
b6ff151433b0038b598b071381fd0fd7b4f1c49a65240f4f8cf4d6059dc70994
|
File details
Details for the file pyallel-0.18.5-py3-none-any.whl.
File metadata
- Download URL: pyallel-0.18.5-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c19042b2c2de07d4e38441e4f36e8c457487763252d32f4d6c49666820ce4dd8
|
|
| MD5 |
a375a57b450799d3ff8e0ed3908ad067
|
|
| BLAKE2b-256 |
f7fbfef19b185203e5c4ea39a871a86023ce3b2a6d188f0414911c0745a414b7
|