# Knio/dominate

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.

Repository: https://github.com/Knio/dominate
Canonical: https://ross.abutalabs.com/products/dominate
Language: Python
License: LGPL-3.0
License Family: copyleft
Topics: python, html, html-document, html-element, python-library
Last push: 2026-05-09T20:18:48+00:00

## Health v2 (maintenance only)
Score: 59/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 81, release rhythm 8, longevity 100
- inputs: {"age_days": 6320, "days_push": 116, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1827, forks 124 (observed 2026-08-28T04:05:41.485608+00:00)

## What it is
Dominate is a Python library for creating and manipulating HTML documents through an elegant DOM API. It lets developers write HTML pages entirely in pure Python, eliminating the need for a separate template language.

## Use cases
- generate html documents in pure python
- build html without learning a template language
- programmatically construct dom trees in python
- render html pages from python code
- create html reports from python scripts

## When to choose
- you prefer composing HTML with Python code and control flow over template syntax
- you need to generate HTML fragments or documents programmatically
- you want a lightweight dependency for HTML generation

## When to avoid
- your team already uses a mature template engine like Jinja2
- you need server-side rendering with a full web framework's templating features
- you need designer-friendly template files separated from code

## Facets
- artifact type: library
- maturity: stable
- function: templating
- domain: web-development, frontend
- platform: python, cross-platform
- tags: dom-api, html-generation, no-template-language, pure-python, html

## Member repositories
- Knio/dominate (main) score 59

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:41.485608+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:19:24.676951+00:00, confidence not recorded.
  - readme: https://github.com/Knio/dominate (fetched 2026-08-28T04:05:41.485608+00:00, sha d74fb45d472e)
  - registry_pypi: https://pypi.org/pypi/dominate/json (fetched 2026-08-29T10:58:31.275516+00:00, sha fded80e51265)
- Data as of 2026-08-30T08:39:29.467469+00:00.
