Comparison
bs4 vs leptris vs lxml
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Dummy package for Beautiful Soup (beautifulsoup4)
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install bs4Python bindings for libleptris — fast XML 1.0 parsing and XPath 1.0, shaped like lxml
Actively maintained. Last release 3 days ago, commits in 14 of the last 26 weeks. A safe choice.
pip install leptrisPowerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.
Actively maintained. Last release 4 days ago, commits in 18 of the last 26 weeks. A safe choice.
pip install lxmlIn short
- bs4 is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- lxml is the most used: 445.4M downloads a month, 25× more than bs4.
- Maintenance is comparable: lxml 84, leptris 83 on Pythie’s Index.
- leptris is growing fastest: downloads +33% over the last month.
- leptris is the newcomer: first released Aug 2026.
- Safe default for a new project: lxml.
Side by side
| Metric | bs4 | leptris | lxml |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 27 | Pythie’s Index: 83 | Pythie’s Index: 84 |
| Verdict | Slowing down | Actively maintained | Actively maintained |
| Downloads / month | 17.5M | 250.3K | 445.4M |
| Downloads, month over month | +2% | +33% | +13% |
| GitHub stars | – | 0 | 3.1K |
| Stars, last 7 days | – | – | – |
| Direct dependents | 3.1K | 0 | 9.4K |
| Last release | Jan 17, 2024 | Nov 28, 2026 | Nov 27, 2026 |
| Releases, 12 months | 0 | 194 | 11 |
| Weeks with commits | – | 14 / 26 | 18 / 26 |
| Recent contributors | – | 2 | 9 |
| First release | Mar 2016 | Aug 2026 | Jul 2007 |
| Python versions | – | 3.9 – 3.13 | 3.8 – 3.15 |
| License | MIT | MIT | BSD-3-Clause |
| Known vulnerabilities | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.