Cheetah is an Open Source Python based Templating Framework.
Cheetah is an open source template engine and code generation tool, written in Python. It can be used standalone or combined with other tools and frameworks. Web development is its principle use, but Cheetah is very flexible and is also being used to generate C++ game code, Java, sql, form emails and even Python code.
from CheetahTemplate.org
It works with Python 2.7 and 3.4+. Wheels are available at PyPI. Issues and pull requests are accepted at GitHub.