Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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.


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.


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
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Stencil-0.2.1.tar.gz (6.4 kB) Copy SHA256 Checksum SHA256 Source Aug 10, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting