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

task automation tool for Python, similar to Make, Rake, Ant, or Cook

Project Description

pyKook is a very useful tool to control your task such as compile, install or clean. pyKook is similar to Make, Rake, Ant, or Cook. Kookbook.py, which is a task definition file for pyKook, is written in Python.

Simple Example of Kookbook.py:

@recipe
def hello(c):
    print("Hello")

Output Result:

bash> kk hello     # or pykook hello
### * hello (recipe=hello)
Hello

Other Example of Kookbook.py:

CC = prop('CC', 'gcc -Wall')
kookbook.default = 'all'

@recipe
@ingreds('hello')                      # ingredients
def all(c):                            # or task_all(c)
    pass

@recipe('*.o', ['$(1).c', '$(1).h'])   # @recipe(product, [ingredients])
def file_o(c):
    """compile *.c and *.h into *.o"""
    system(c%'$(CC) -c $(ingred)')

@recipe('hello', ['hello.o'])          # @recipe(product, [ingredients])
def file_hello(c):
    """create 'hello' command"""
    system(c%'$(CC) -o $(product) $(ingred)')

@recipe
def clean(c):
    rm_rf("**/*.o", "**/*~")

## or
kookbook.load('@kook/books/clean.py')   # load 'clean' and 'sweep' recipes
CLEAN.append("**/*.o")

See User’s Guide for details.

Release History

Release History

This version
History Node

0.7.2

History Node

0.7.1

History Node

0.7.0

History Node

0.6.0

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Kook-0.7.2.tar.gz (188.7 kB) Copy SHA256 Checksum SHA256 Source Jul 13, 2012

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