Comparison
flatten-dict vs flatten-json vs json-flattener
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A flexible utility for flattening and unflattening dict-like objects in Python.
Maintained. Last release 2 weeks ago, commits in 2 of the last 26 weeks. Weaker on commit activity and release cadence.
$
pip install flatten-dictFlatten JSON objects
Slowing down. Last release over 3 years ago, little activity since. Fine for existing code; think twice for a new project.
$
pip install flatten-jsonPython library for denormalizing nested dicts or json objects to tables and back
Likely abandoned. No release or commit for years (last release over 4 years ago).
$
pip install json-flattenerIn short
- flatten-json is slowing down (last release over 3 years ago): fine for existing code, risky for a new project.
- json-flattener looks abandoned: avoid it for new projects.
- flatten-dict is the most used: 3.8M downloads a month.
- flatten-dict also has the best Pythie’s Index (53).
Side by side
| Metric | flatten-dict | flatten-json | json-flattener |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 53 | 25 |