Comparison
html5lib vs lxml vs markupever vs xmlschema
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
HTML parser based on the WHATWG HTML specification
Low maintenance activity. Last release over 6 years ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install html5libPowerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.
Actively maintained. Last release 3 days ago, commits in 18 of the last 26 weeks. A safe choice.
pip install lxmlThe fast, most optimal, and correct HTML & XML parsing library.
Actively maintained. Last release 2 weeks ago, commits in 6 of the last 26 weeks. A safe choice.
pip install markupeverAn XML Schema validator and decoder
Maintained. Last release 5 months ago, commits in 2 of the last 26 weeks. Weaker on commit activity and issue handling.
pip install xmlschemaIn short
- lxml is the most used: 445.4M downloads a month, 15× more than html5lib.
- Maintenance is comparable: lxml 84, markupever 77, xmlschema 43, html5lib 19 on Pythie’s Index.
- markupever is growing fastest: downloads +50% over the last month.
- markupever is the newcomer: first released Mar 2025.
- Safe default for a new project: lxml.
Side by side
| Metric | html5lib | lxml | markupever | xmlschema |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 19 | Pythie’s Index: 84 | Pythie’s Index: 77 | Pythie’s Index: 43 |
| Verdict | Low maintenance activity | Actively maintained | Actively maintained | Maintained |
| Downloads / month | 29.5M | 445.4M | 91.6K | 7.9M |
| Downloads, month over month | +4% | +13% | +50% | +11% |
| GitHub stars | 1.2K | 3.1K | 41 | 475 |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 860 | 9.4K | 1 | 169 |
| Last release | Jun 22, 2020 | Nov 27, 2026 | Nov 16, 2026 | Jun 30, 2026 |
| Releases, 12 months | 0 | 11 | 7 | 3 |
| Weeks with commits | 0 / 26 | 18 / 26 | 6 / 26 | 2 / 26 |
| Recent contributors | 24 | 9 | 3 | 5 |
| First release | Feb 2012 | Jul 2007 | Mar 2025 | May 2017 |
| Python versions | 3.5 – 3.8 | 3.8 – 3.15 | 3.10 – 3.15 | 3.10 – 3.15 |
| License | MIT | BSD-3-Clause | MIT | MIT |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.