skip to navigation
skip to content

pymtt 0.1.2

Command-line Text Transformer

Latest Version: 0.1.9

PyMTT is a command-line text transformer. It allows you to render Jinja2 templates using context created from pure Python modules or shell environment variables. Primary usage is config generation for deployment.

PyMTT was inspired by Oleg Mamontov’s MTT but uses Python, not Perl.

Example usage

export DJANGO_SETTINGS_MODULE=settings_test
pymtt -e -d -b ~/template.proto ~/template

This command creates context from settings_test Django module (-d switch), overwrites it with and finally overwrites context with environment variables if any (-e switch). Then uses context to render template out of template.proto.


pip install pymtt
File Type Py Version Uploaded on Size
pymtt-0.1.2.tar.gz (md5) Source 2012-11-30 2KB