Comparison
dict2xml vs dicttoxml vs json2xml vs xmljson
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 a Python dictionary or other native data type into a valid XML string.
Slowing down. Last release over 3 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install dicttoxmlSimple Python Library to convert JSON to XML
Actively maintained. Last release 7 weeks ago, commits in 23 of the last 26 weeks. A safe choice.
pip install json2xmlConverts XML into JSON/Python dicts/arrays and vice-versa.
Archived. The repository is read-only: no more fixes or releases will come.
pip install xmljsonIn short
- dict2xml is archived: avoid it for new projects.
- dicttoxml is slowing down (last release over 3 years ago): fine for existing code, risky for a new project.
- xmljson is archived: avoid it for new projects.
- json2xml is the most used: 216.9K downloads a month.
- json2xml also has the best Pythie’s Index (88).
- json2xml is growing fastest: downloads +23% over the last month.
- Safe default for a new project: json2xml.
Side by side
| Metric | dict2xml | dicttoxml | json2xml | xmljson |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 6 | Pythie’s Index: 16 | Pythie’s Index: 88 | Pythie’s Index: 3 |
| Verdict | Archived | Slowing down | Actively maintained | Archived |
| Downloads / month | 540.5K | 2M | 216.9K | 645.8K |
| Downloads, month over month | -39% | +9% | +23% | -14% |
| GitHub stars | 32 | 384 | 111 | 125 |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 27 | 126 | 8 | 36 |
| Last release | Jan 14, 2026 | Dec 23, 2022 | Oct 12, 2026 | Apr 25, 2020 |
| Releases, 12 months | 1 | 0 | 21 | 0 |
| Weeks with commits | 0 / 26 | 0 / 26 | 23 / 26 | 0 / 26 |
| Recent contributors | 7 | 8 | 1 | 7 |
| First release | Mar 2012 | May 2013 | Jul 2013 | Sep 2015 |
| Python versions | – | – | 3.11 – 3.14 | 3.6 – 3.7 |
| License | MIT | GPL-2.0 | Apache-2.0 | 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.