Comparison
flatten-dict vs json-flatten
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-dictPython functions for flattening a JSON object to a single dictionary of pairs, and unflattening that dictionary back to a JSON object
Low maintenance activity. Last release over 2 years ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
$
pip install json-flattenIn short
- flatten-dict is the most used: 3.8M downloads a month, 9.2× more than json-flatten.
- flatten-dict also has the best Pythie’s Index (53).
Side by side
| Metric | flatten-dict | json-flatten |
|---|---|---|
| Pythie’s Index | Pythie’s Index: 53 | 14 |