Skip to main content
File added late

1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.

iw.recipe.template package

What is iw.recipe.template ?

iw.recipe.template is a zc.buildout recipe to build template based file/scripts

It also provide some recipe to build Zope2, Zope3 and Squid vhosts config file for apache.

How to use iw.recipe.template ?

We need a buildout config file:

>>> server = start_server(test_dir)

>>> write(sample_buildout, 'buildout.cfg',
... """
... [buildout]
... parts = template.txt
...
... [template.txt]
... recipe = iw.recipe.template
... source = %s/template.txt_impl
... destination = %s/
... """ % (sample_buildout, sample_buildout))

And a template:

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

Then, the recipe should work:

>>> print system(buildout)
Installing template.txt.
template.txt: Generated file 'template.txt'.

Here is the result:

>>> print open(join(sample_buildout, 'template.txt')).read()
My template is named "template.txt"

Now we can generate an executable:

>>> write(sample_buildout, 'buildout.cfg',
... """
... [buildout]
... parts = script
...
... [script]
... recipe = iw.recipe.template:script
... source = %s/template.py_impl
... destination = %s/
... """ % (sample_buildout, sample_buildout))

We need a small template with a python script:

>>> template = join(sample_buildout, 'template.py_impl')
>>> open(template, 'w').write('''
... import sys
... print 'this is the script named "$name"'
... ''')

Run buildout again:

>>> print system(buildout)
Uninstalling template.txt.
Installing script.
script: Generated script 'script'.

Here is the result:

>>> print open(join(sample_buildout, 'script')).read()
#!/.../bin/python
<BLANKLINE>
import sys
print 'this is the script named "script"'
<BLANKLINE>

>>> print system(join(sample_buildout, 'script'))
this is the script named "script"

Metadata

Release files for iw.recipe.template 0.2

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

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for iw.recipe.template 0.2
File Size Uploaded Provenance Actions
iw.recipe.template-0.2.tar.gz 6.2 kB File added late: Without provenance Details for iw.recipe.template-0.2.tar.gz

Built distribution (wheel)

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

Total release size: 19.0 kB

Release files / iw.recipe.template-0.2.tar.gz

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL iw.recipe.template-0.2.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ac8407061d4677234ee7a90de58d2e66b301ad316f52e27c61f74a387549234c
BLAKE2b-256 checksum
How to use checksums
3a1c96b9d4f2808b461fc37d0cda42e1240a248ba8a6f04bef0d670bc7f3b366
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / iw.recipe.template-0.2-py2.4.egg

Download URL iw.recipe.template-0.2-py2.4.egg
Size 12.8 kB
Tags Egg
SHA-256 checksum
How to use checksums
2df8652f4055e35fb7084701e8322ac0c0f62e797f439730ec3245fc45db4182
BLAKE2b-256 checksum
How to use checksums
9b5b219315dc7952bf9cb2f097b99399805b38d45c8495d4e160ebb738cd73e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for iw.recipe.template 0.2

Upload timing

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.


Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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