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!

CLI template processor

Project Description

CLI templater (CLT)

A simple command-line tool for convenient templates processing. For example, you have a config file for some web service and just want to put there a different host:port binding
depending on the target server role. Using the tool, you can simply pass the missing variables using syntax like:
clt --tpl your_file.conf --out test.out --binding


Reads infile.tpl template and rewrites its contents to infile.out,
substituting "$$$test":

clt --tpl infile.tpl --out file.out --delim '$$$' --test 30

Reads infile.tpl template and rewrites its contents to outdir/infile.tpl,
substituting "%var1" and "%var2":

clt --tpl infile.tpl --out outdir --delim '%' --var1 20 --var2 hello

Reads all files from indir and rewrites them to outdir,
substituting "$$$var1" and "$$$var2" ("$$$" is the default delimiter):

clt --tpl indir --out outdir --var1 10 --var2 50

Reads all files matching "*.tpl" and rewrites them to
outdir, substituting "$$$var1" and "$$$var2":

clt --tpl indir/\*.tpl --out outdir --var1 10 --var 20

pip install clt

Python versions supported
Tested with 2.6.x and 2.7.x

Release History

This version
History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(3.0 kB) Copy SHA256 Hash SHA256
Source None Jan 12, 2014

Supported By

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 Google Google Cloud Servers DreamHost DreamHost Log Hosting