Comparison
flatdict vs flatten-dict vs json-flattener
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Python module for interacting with nested dicts as a single level dict with delimited keys.
Maintained. Last release 10 months ago, commits in 1 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install flatdictA 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 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
- json-flattener looks abandoned: avoid it for new projects.
- flatten-dict is the most used: 3.8M downloads a month, 2.5× more than flatdict.
- flatten-dict also has the best Pythie’s Index (53).
- flatdict is growing fastest: downloads +17% over the last month.
Side by side
| Metric | flatdict | flatten-dict | json-flattener |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 43 | 53 |