Skip to main content

Creates files and directories from templates

Project description

Stencil creates files and directories from templates. It is inspired by Paste Templates, but Stencil has no dependencies.

Installation

Install Stencil with pip:

$ pip install Stencil

It will also install argparse for python < 2.7. There is no python 3 support yet.

Usage example

To create new file or directory of files and subdirectories from <stencil> use:

$ stencil [global args] <stencil> [stencil args]

For example, using stencil new you can create a new project containing a new stencil:

$ stencil new mystencil

For creating stencils use new stencil as example. All stencils are collected together using entry points from Distribute.

History

0.2.1 (2011-08-10)

  • Better handling of target directory creation

  • Fix stencils order in command output

0.2 (2011-08-05)

  • Overridable resources

  • Use Jinja2 for templates

0.1.2 (2011-08-05)

  • Fix resource target path rendering

0.1.1 (2011-07-28)

  • Add possibility to collect resources from multiple dirs

0.1 (2011-04-14)

  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Stencil-0.2.1.tar.gz (6.4 kB view details)

Uploaded Source

File details

Details for the file Stencil-0.2.1.tar.gz.

File metadata

  • Download URL: Stencil-0.2.1.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Stencil-0.2.1.tar.gz
Algorithm Hash digest
SHA256 c68196d1f0b27a2981d98c61d28de5777c766f10356207dd8f068e2469c2c2ac
MD5 a4146fde69df3ee95b4d9c7a596f3fd3
BLAKE2b-256 79d7202e0593f2e03ace807daaccd4190dfb81890c92d57443c873bd88eca4dd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page