Skip to main content

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.4.2.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

curry_batch-0.4.2-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page