lxml/lxml
The lxml XML toolkit for Python observed · 2026-10-21
Health v2 · maintenance only
97/100
- Activity 99
- Release rhythm 93
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 17
- age_days: 5730
- days_rel: 48
- days_push: 9
- n_releases_24m: 16
Adoption not part of the score
3067 stars · 657 forks observed · 2026-10-21
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
lxml is a fast, feature-rich Python library for processing XML and HTML, built on the C libraries libxml2 and libxslt. It provides an ElementTree-compatible API plus XPath, XSLT, schema validation (DTD, RelaxNG, XMLSchema, Schematron), CSS selectors, and HTML parsing utilities.
Use cases
- parse xml files in python
- scrape html pages with xpath
- validate xml against an xsd schema
- transform xml with xslt
- extract data from html using css selectors
- generate xml documents programmatically
- parse malformed html with a lenient parser
When to choose
- you need fast, memory-efficient XML/HTML parsing in Python
- you need XPath, XSLT, or schema validation support
- you want an ElementTree-compatible API with more features
- you are scraping or cleaning real-world HTML
When to avoid
- you only need simple XML parsing and want zero C dependencies (use stdlib ElementTree)
- you are parsing JSON or non-markup data formats
- you need a pure-Python solution for restricted environments
Facets
library · maturity stable
parser serialization web-scraping developer-tools parsers web-development developer-tools files python cross-platform xml html xpath xslt libxml2 cssselect schema-validation
8 sources
- readme: https://github.com/lxml/lxml · fetched 2026-10-21 · 890c9368cb99
- homepage: https://lxml.de/ · fetched 2026-08-29 · db2a97d70e44
- site_page: https://lxml.de/installation.html · fetched 2026-08-29 · 8767112a6f00
- site_page: https://lxml.de/FAQ.html · fetched 2026-08-29 · 2401592eb09d
- site_page: https://lxml.de/index.html · fetched 2026-08-29 · db2a97d70e44
- site_page: https://lxml.de/changes-7.0.0a3.html · fetched 2026-08-29 · 271928c8c700
- site_page: https://lxml.de/api/index.html · fetched 2026-08-29 · 2fc72892857e
- site_page: https://lxml.de/6.0 · fetched 2026-08-29 · f8c71e6c72b3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| lxml/lxml | main | 97 |
For agents
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem