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!

zc.buildout recipe to run python methods as hooks

Project Description
Supported options

Custom python script(s) and method(s) that will be executed.
The format of the options is::


where the first part is a filesystem path to the python module and
the second part is the name of the callable in the module that
will be called. The callable will be passed two parameters: the
``options`` dictionary from the recipe and the global ``buildout``
dictionary. The callable is not expected to return anything.

This code was essentially ripped out of plone.recipe.command_
and hexagonit.recipe.cmmi_

.. _plone.recipe.command :
.. _hexagonit.recipe.cmmi :

Example usage

It can be helpful to define in [buildout] a::

hooks = ${buildout:directory}/hooks

then invoke like::

hooks = ${buildout:hooks}/

The value of 'hooks' can be a whitespace-separated list of
files:methods to specify multiple hooks that are executed in
order. You can also specify options that can be used in your
hooks. Example::

hooks = ${buildout:hooks}/
option1 = xyzzy
option2 = You won't get it up the stairs.
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


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
koansys.recipe.hooks-0.1-dev-r8.tar.gz (3.4 kB) Copy SHA256 Checksum SHA256 Source Feb 13, 2008

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