Comparison
xml-python vs xmltodict vs xmltojson
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A library for making Python objects from XML.
Likely abandoned. No release or commit for years (last release over 5 years ago).
$
pip install xml-pythonMakes working with XML feel like you are working with JSON
Maintained. Last release 9 months ago, commits in 2 of the last 26 weeks. Weaker on commit activity and release cadence.
$
pip install xmltodictA Python module and cli tool to quickly convert xml text or files into json
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
$
pip install xmltojsonIn short
- xml-python looks abandoned: avoid it for new projects.
- xmltojson is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- xmltodict is the most used: 117M downloads a month, 219× more than xmltojson.
- xmltodict also has the best Pythie’s Index (44).
Side by side
| Metric | xml-python | xmltodict | xmltojson |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 19 | Pythie’s Index: 44 | Pythie’s Index: 18 |
| Verdict | Likely abandoned | Maintained | Slowing down |
| Downloads / month | 115.9K | 117M | 534K |
| Downloads, month over month | -10% | +9% | +18% |
| GitHub stars | – | 5.8K | 13 |
| Stars, last 7 days | – | – | – |
| Direct dependents | 6 | 1.6K | 2 |
| Last release | Jan 7, 2021 | Feb 22, 2026 | Oct 20, 2024 |
| Releases, 12 months | 0 | 2 | 0 |
| Weeks with commits | – | 2 / 26 | 0 / 26 |
| Recent contributors | – | 10 | 3 |
| First release | Nov 2019 | Aug 2012 | Mar 2017 |
| Python versions | – | 3.9 – 3.14 | 3.7 – 3.11 |
| License | non-standard | MIT | Apache-2.0 |
| Known vulnerabilities | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.