html5tagger
Pythonic HTML generation/templating (no template files)
Decision gist · record as of 2026-08-14
Yes. html5tagger is actively maintained, has zero dependencies, supports current Python versions, carries a permissive license, and solves a real problem—generating HTML without template syntax or string manipulation. The low install friction and recent activity make it a safe choice. Install it if you prefer writing HTML in Python code rather than templates.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Installs with no runtime dependencies and low friction.
- Active maintenance with recent releases; last commit 2026-07-10 and version 2.0.0 released 35 days ago.
License · maintenance · safety
Unlicense (permissive) — Licensed under Unlicense (permissive public domain equivalent), imposing no restrictions on use, modification, or distribution.
last release 2026-07-10 (35 days) · last repo commit 2026-07-10 · 32 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,194,859 downloads/mo, #4,233 on PyPI
Alternatives
Verify before relying
pip install html5tagger
from html5tagger import Document, E
doc = Document("My Page", lang="en")
doc.h1("Hello").p("Content here")
print(str(doc))- Performance comparison with Jinja2 under realistic workloads and document sizes.
- Whether the 'super fast' claim in the description is independently benchmarked.
- Real-world adoption patterns and use in production systems beyond the 1.2M monthly downloads.
What it is and what it does
html5tagger is a pure-Python HTML generation library that lets you build HTML5 documents and snippets using Python method chaining and dot notation instead of writing template files or concatenating strings. You call methods on builder objects to add tags, set attributes, and nest content—for example, `E.p("text").a(href="...")` produces a paragraph with a link. It supports both standalone snippets via the `E` builder and full documents via `Document`, which automatically includes DOCTYPE declarations.
The library includes a templating system that precompiles static content into long strings and leaves only capitalized placeholders for dynamic values, designed to render quickly. It handles HTML5 specifics like optional closing tags, context-aware escaping (different rules for attributes, script content, and iframe srcdoc), and CSS selector syntax for setting classes and IDs. With no external dependencies and support for Python 3.10 through 3.14, it's straightforward to install and integrate into any project.
Use it for
- Generate HTML responses in web frameworks where you prefer code over template files.
- Build reusable page components by composing templates with dynamic data injection.
- Create HTML emails or reports programmatically with proper escaping and structure.
- Render complex nested HTML structures (tables, lists, forms) using Python control flow.
- Prototype or test HTML output without managing separate template files.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
html5tagger is actively maintained, has zero dependencies, supports current Python versions, carries a permissive license, and solves a real problem—generating HTML without template syntax or string manipulation. The low install friction and recent activity make it a safe choice. Install it if you prefer writing HTML in Python code rather than templates.
Install
html5tagger on PyPI
Before you install
Installs with no runtime dependencies and low friction. Active maintenance with recent releases; last commit 2026-07-10 and version 2.0.0 released 35 days ago.
Requires Python 3.10 or later.
License in practice
Licensed under Unlicense (permissive public domain equivalent), imposing no restrictions on use, modification, or distribution.
Quickstart
pip install html5tagger
from html5tagger import Document, E
doc = Document("My Page", lang="en")
doc.h1("Hello").p("Content here")
print(str(doc))
Verify before relying
- Performance comparison with Jinja2 under realistic workloads and document sizes.
- Whether the 'super fast' claim in the description is independently benchmarked.
- Real-world adoption patterns and use in production systems beyond the 1.2M monthly downloads.
Package facts
| License | Unlicense permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 35 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,194,859 / month, #4,233 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseLicense :: Public DomainOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Text Processing :: Markup :: HTML |
Evidence: html5tagger-2.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “html5 builder”
- html5taggerGenerates HTML5 markup programmatically using Python syntax instead…
- tinyhtmlRenders HTML5 safely from Python expressions using a functional API…
- html5rdfParses HTML documents into tree structures compatible with RDFLib,…
Give your agent the search over MCP, or paste the wish link into any chat.
More HTML packages
MarkupSafe provides a text object that escapes special characters so untrusted strings can be safely embedded in HTML and XML without injection attacks.
Jinja2 is a templating engine that renders dynamic content by combining templates with Python-like syntax and data, supporting template inheritance, macros, autoescaping, and sandboxed execution.
Beautiful Soup parses HTML and XML documents into a navigable tree, providing Pythonic methods to search, iterate, and modify the parsed content.
Install it if you need to parse or extract data from markup documents.
lxml provides Python bindings to libxml2 and libxslt, enabling parsing, validation, and transformation of XML and HTML documents through an ElementTree-compatible API with support for XPath, XSLT, and schema validation.
Install it if you need robust XML/HTML parsing, validation, or transformation; avoid it only if you must stay pure-Python and can accept slower performance.
Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.
Converts Markdown text to HTML using a Python implementation of John Gruber's Markdown specification, with support for extensions.
Install it if you need to parse Markdown in Python.
See also dominate · htmlBuilder · meld3 · tinyhtml · yattag · hyperscript · branca · textile · jinja2-simple-tags · htpy