Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Run multiple iterations of commands from a config file

Project Description

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.

Release History

This version
History Node


History Node


History Node


History Node


History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(7.7 kB) Copy SHA256 Hash SHA256
2.7 Wheel Jan 12, 2015
(7.7 kB) Copy SHA256 Hash SHA256
2.7 Wheel Jan 12, 2015
(5.0 kB) Copy SHA256 Hash SHA256
Source Jan 12, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting