Curry a list of commands passed as arguments with a YAML list of argument lists, then output the command stdout as a new YAML list of lists.
Project description
Curry-batch reads from stdin a YAML list of argument lists and a set of command templates as arguments. It curries the commands with the argument lists, runs them, and captures the outputs, storing them in a new list.
Example:
argument list:
-
- hello
- world
-
- brain
- wash
template filters: "echo {1}" "echo {2}" "echo {1}, {2}!" "echo {1} {2} {1} {2}"
output:
-
- hello
- world
- hello, world!
- hello world hello world
-
- brain
- wash
- brain, wash!
- brain wash brain wash
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
curry_batch-0.2.0.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for curry_batch-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b282d4d405993f49bb1f7facf002c5a795f56ce73fb0c59a8b12cf601b8174a3 |
|
MD5 | 6ecdba26661f8fa4d341f44a5c48ac66 |
|
BLAKE2b-256 | a4cb524a184fce9bdeff8bc60ffaf9cb0d2d863695b2e83c53b41ad25aa43827 |