Skip to main content

tranchitella.recipe.fs

This recipe creates files and directories in a buildout.

Usage

This recipe offers the following entry points:

  • mkdir

  • mkfile

mkdir

This is a minimal buildout.cfg which makes use of the mkdir recipe:

[buildout]
parts = dirs

[dirs]
recipe = tranchitella.recipe.fs:mkdir
paths =
    ${buildout:directory}/var
    ${buildout:directory}/var/lib
    ${buildout:directory}/var/tmp
    ${buildout:directory}/var/log

This will create the directories specified by the paths attribute.

mkfile

This is a minimal buildout.cfg which makes use of the mkfile recipe:

[buildout]
parts = conffiles

[conffiles]
recipe = tranchitella.recipe.fs:mkfile
template = ${buildout:directory}/templates/config
path = ${buildout:directory}/etc/config
mode = 0644
database = postgres

This will create the file specified by the path attribute using the given template; the file will be customized using string interpolations of the options specified in the buildout part (eg. %(database)s will be replaced with the string postgres).

0.3 (2010-03-23)

  • Do not consider directory and files as “created” by buildout, otherwise they will be automatically removed by buildout when the recipe is uninstalled.

  • Added logging

0.2 (2010-03-07)

  • Added a new recipe entry point mkfile.

0.1 (2010-02-29)

  • Initial release.

Metadata

Release files for tranchitella.recipe.fs 0.3

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

Source distribution (sdist)

Source distribution for tranchitella.recipe.fs 0.3
File Size Uploaded Provenance Actions
tranchitella.recipe.fs-0.3.tar.gz 10.9 kB Without provenance Details for tranchitella.recipe.fs-0.3.tar.gz

Release files / tranchitella.recipe.fs-0.3.tar.gz

Download URL tranchitella.recipe.fs-0.3.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e96be45489c9b54dd534b3a30695ecf8dfc0ce2f9e2219ddeb90532faa275f0c
BLAKE2b-256 checksum
How to use checksums
50ee45ea09586de4fddd0e13c08fab596a3f286fff5c59462e14a5fc1dd09f02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for tranchitella.recipe.fs 0.3

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.

Release history Release notifications | RSS feed

This release

0.3 This release

1 release file No provenance

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