Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

================
iw.recipe.template package
================

.. contents::

What is iw.recipe.template ?
==================

Explain here what is the purpose of iw.recipe.template.

How to use iw.recipe.template ?
=====================

We need some buildout vars::

>>> data_dir = join(test_dir, 'data')
>>> parts_dir = join(data_dir, 'parts')
>>> buildout = {'instance': {'location': test_dir},
... 'buildout': {'directory': test_dir,
... 'install-from-cache': False,
... 'download-cache':False,
... 'parts-directory': parts_dir}}
>>> name = 'template'

And a template::

>>> template = join(data_dir, 'template.py_impl')
>>> open(template, 'w').write('''My template is named "$name"''')

Then, the recipe should work::

>>> from iw.recipe.template import Recipe
>>> options = {}
>>> options['source'] = template
>>> options['destination'] = join(data_dir, 'template.py')
>>> recipe = Recipe(buildout, name, options)
>>> filename = recipe.install()

Here is the result::

>>> print open(options['destination']).read()
My template is named "template"

Release files for iw.recipe.template 0.1dev-r6578

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for iw.recipe.template 0.1dev-r6578
File Interpreter ABI Platform
iw.recipe.template-0.1dev_r6578-py2.4.egg Legacy Egg format - - Details

Release files / iw.recipe.template-0.1dev_r6578-py2.4.egg

Download URL iw.recipe.template-0.1dev_r6578-py2.4.egg
Size 8.8 kB
Tags Egg
SHA-256 checksum
How to use checksums
009ccbc2aad0d1455ef4d75927a8aca0d472a18b99e9b7f95d88a8cc1101a0a2
BLAKE2b-256 checksum
How to use checksums
5506bf80022f8da254a189bf540cb7388029eda0c0043cc73c0d1ba437548c89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.2

2 release files

0.1

1 release file

This release

0.1dev-r6578 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page