Skip to main content
Pre-release

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

Textfile Recipe

This is a very simple recipe which generates a textfile from a template.

The template can be everything, and may contain python-style string formatters. The values will be replaced with the options you set inside the buildout.cfg section.

Parameters

template – the template file

default: ${buildout:template-directory}/$(name)s.in

output – the output file

default: ${buildout:parts-directory}/$(name)s

${buildout:template-dir} is set to ${buildout:directory}/templates if not set in the buildout section.

Example

An example buildout.cfg:

[buildout]
parts=test.txt
template-dir=${buildout:directory}/templates

[test.txt]
recipe=inquant.recipe.mktemplate
template=${buildout:template-dir}/test.txt.in
output=${buildout:directory}/test.txt

avalue=foo
anothervalue=bar

Note that due to the default settings (see above), the template-dir and template settings are redundant.

An example text template:

This is just a test

template=%(template)s
output=%(output)s

This is just text %(avalue)s and %(anothervalue)s got
replaced. See?

The recipe will read the template and replace the strings yielding something like:

This is just a test

template=/Users/seletz/develop/plone/buildout/templates/test.txt.in
output=/Users/seletz/develop/plone/buildout/test.txt

This is just text foo and bar got
replaced. See?

EOF

vim: set ft=rst ts=2 sw=2 tw=75 expandtab:

Metadata

Release files for inquant.recipe.textfile 0.2.1dev-r1958

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

Source distribution (sdist)

Source distribution for inquant.recipe.textfile 0.2.1dev-r1958
File Size Uploaded Provenance Actions
inquant.recipe.textfile-0.2.1dev-r1958.tar.gz 13.3 kB Without provenance Details for inquant.recipe.textfile-0.2.1dev-r1958.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for inquant.recipe.textfile 0.2.1dev-r1958
File Interpreter ABI Platform Actions
inquant.recipe.textfile-0.2.1dev_r1958-py2.4.egg Legacy Egg format - - Details for inquant.recipe.textfile-0.2.1dev_r1958-py2.4.egg

Total release size: 19.0 kB

Release files / inquant.recipe.textfile-0.2.1dev-r1958.tar.gz

Download URL inquant.recipe.textfile-0.2.1dev-r1958.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
60157bafe1d000f094a8635f10ff0c7c957e4b8fef9ca97e293b59bc5eb409c9
BLAKE2b-256 checksum
How to use checksums
01943f5d364d5c81798d0a2a5ba2cab44fb407536fc1892887cffa42ed4d1a00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / inquant.recipe.textfile-0.2.1dev_r1958-py2.4.egg

Download URL inquant.recipe.textfile-0.2.1dev_r1958-py2.4.egg
Size 5.7 kB
Tags Egg
SHA-256 checksum
How to use checksums
245c705fd3b3804e6b38ef9830c993ff0d1cd04e79be382fb1f57f4076d34503
BLAKE2b-256 checksum
How to use checksums
92714bacd26c5943e7f4700a836d1b8f3858cc1e1d1b69d002820d5b07601c52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for inquant.recipe.textfile 0.2.1dev-r1958

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