Genshi
Python toolkit for generation of output for the web

Genshi is a Python library that provides an integrated set of components for parsing, generating, and processing HTML, XML or other textual content for output generation on the web.
The main feature is a template language that is smart about markup: unlike conventional template languages that only deal with bytes and (if you're lucky) characters, Genshi knows the difference between tags, attributes, and actual text nodes, and uses that knowledge to your advantage. For example:
For those cases where you don't want to generate markup, Genshi also provides a simple text-based template language.
Quick Links
Documentation
Please note that the Genshi source tarballs come with comprehensive HTML documentation, encompassing both the generated API documentation and the user guide. The API documentation (courtesy of  Epydoc) in particular is a lot better than the version you find here.
Development
The Subversion repository can be accessed via:
Discussion about the development of Genshi takes place on the mailing lists or IRC channel. Find out more about the people working on this project on GenshiTeam.


