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
heavily inspired by Kid.