Comparison
dict2xml vs xmljson vs xmltodict vs xmltojson
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Small utility to convert a python dictionary into an XML string
Archived. The repository is read-only: no more fixes or releases will come.
pip install dict2xmlConverts XML into JSON/Python dicts/arrays and vice-versa.
Archived. The repository is read-only: no more fixes or releases will come.
pip install xmljsonMakes 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
- dict2xml is archived: avoid it for new projects.
- xmljson is archived: 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: 115.1M downloads a month, 183× more than xmljson.
- xmltodict also has the best Pythie’s Index (43).
Side by side
| Metric | dict2xml | xmljson | xmltodict | xmltojson |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 6 | Pythie’s Index: 3 | Pythie’s Index: 43 | Pythie’s Index: 18 |
| Verdict | Archived | Archived | Maintained | Slowing down |
| Downloads / month | 530.6K | 628.5K | 115.1M | 538K |
| Downloads, month over month | -38% | -15% | +8% | +16% |
| GitHub stars | 32 | 125 | 5.8K | 13 |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 27 | 36 | 1.6K | 2 |
| Last release | Jan 14, 2026 | Apr 25, 2020 | Feb 22, 2026 | Oct 20, 2024 |
| Releases, 12 months | 1 | 0 | 2 | 0 |
| Weeks with commits | 0 / 26 | 0 / 26 | 2 / 26 | 0 / 26 |
| Recent contributors | 7 | 7 | 10 | 3 |
| First release | Mar 2012 | Sep 2015 | Aug 2012 | Mar 2017 |
| Python versions | – | 3.6 – 3.7 | 3.9 – 3.14 | 3.7 – 3.11 |
| License | MIT | MIT | MIT | Apache-2.0 |
| 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.