Skip to main content

Run multiple iterations of commands from a config file

Project description

clack on PyPI clack on PyPI Documentation for clack on Read The Docs Travis-CI build status for clack GitHub issues for clack

Run multiple iterations of the same command from a stored configuration.

I build this to help with building multiple packages using fpm. I had a set of commands where it was useful to share default and common arguments for each package, and the commands were complex enough that I wanted a configuration file describing them (and generic functions are painful in make). An example of using clack with fpm can be found in examples/fpm.json.


Create a configuration file:

    "default": {
        "command": "cowsay",
        "options": { "-f": "default" }
    "iterations": [
            "arguments": ["moo"]
            "arguments": ["baa"],
            "options": { "-f": "sheep" }

Then run clack on the file:

clack examples/farm.json

And the result:

< moo >
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
< baa >
            ||    ||


Install clack with pip or pipsi.

pip install clack


clack is licensed under the MIT Licence.


clack was written by Sam Clements.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for clack, version 1.2.0
Filename, size File type Python version Upload date Hashes
Filename, size clack-1.2.0-py2-none-any.whl (7.7 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size clack-1.2.0-py2.py3-none-any.whl (7.7 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size clack-1.2.0.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page