lxml/lxml
The lxml XML toolkit for Python observed · 2026-08-28
Health v2 · maintenance only
99/100
- Activity 99
- Release rhythm 99
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 23.5
- age_days: 5682
- days_rel: 11
- days_push: 8
- n_releases_24m: 15
Adoption not part of the score
3050 stars · 634 forks observed · 2026-08-28
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-08-28 · 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 | 99 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem