A standardized interface to register custom pipes as templatetags for django.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Pipetter is a module designed to provide uniform registration and processing of inclusion tags for information pulled from other sources, such as websites. By design, it defines very little about the nature of the pipette, requiring only that it supply the following method:

obj.get_context   :: returns variables to be added to the context of the included template.

A pipette may optionally supply:

obj.tag_name      :: the name of the template tag. Defaults to obj.__module__.rsplit('.')[-1].
obj.template      :: the name of the template to be used with the pipette. Defaults to "pipettes/<tag_name>.html"
obj.cache_for     :: how long to cache the context results for (minutes). Default: 5.