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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for curry_batch-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7c259524c32c6056a466ea8abc749bf0c22883804e7a9655bfa73a065735bff |
|
MD5 | 6c16d477b5b7374ce19c19a013e666fe |
|
BLAKE2b-256 | b3851e4f10da40db6094beb7622e10f95e4a93a3f91a19c1105750b2ade93e3c |