Description
Generates HTML from Python code without separate template files. It helps developers build small pages, reports, and components by composing Python objects instead of writing a template language.
Use it as a web or document-generation library. Escape user-provided content correctly, because programmatic HTML generation can still create cross-site scripting issues if values are inserted unsafely.