Dominate is a Python library for creating and manipulating HTML documents using an elegant DOM API. It allows you to write HTML pages in pure Python very concisely, which eliminate the need to learn another template language, and to take advantage of the more powerful features of Python.
The Dominate library requires only knowledge of object-oriented Python and HTML as described by the DOM interface. Written by Tom Flanagan, Jake Wharton and Brad Janke. Made available under LGPL v3.0 license.
It makes HTML elements available as classes and members in Python, without imposing a separation between the application logic and the presentation layer. This provides an intuitive ready-to-use solution, that may ease or dispense the additional learning curve sometimes required by other templating tools and engines.
An introduction with examples of use, can be found on GitHub: https://github.com/Knio/dominate