Comparison
deflate-dict vs flatdict vs flatten-dict vs json-flatten
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Package to deflate and inflate dictionaries.
Low maintenance activity. Last release over 2 years ago, commits in 2 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install deflate-dictPython 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 3 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.9M downloads a month, 2.5× more than flatdict.
- flatten-dict also has the best Pythie’s Index (53).
- flatdict is growing fastest: downloads +19% over the last month.
Side by side
| Metric | deflate-dict | flatdict | flatten-dict | json-flatten |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 18 | Pythie’s Index: 43 | Pythie’s Index: 53 | Pythie’s Index: 14 |
| Verdict | Low maintenance activity | Maintained | Maintained | Low maintenance activity |
| Downloads / month | 90.5K | 1.6M | 3.9M | 407K |
| Downloads, month over month | -1% | +19% | +4% | +1% |
| GitHub stars | 2 | 116 | 185 | 56 |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 2 | 68 | 91 | 4 |
| Last release | Oct 26, 2024 | Feb 15, 2026 | Nov 14, 2026 | Sep 7, 2024 |
| Releases, 12 months | 0 | 1 | 2 | 0 |
| Weeks with commits | 2 / 26 | 1 / 26 | 2 / 26 | 0 / 26 |
| Recent contributors | 1 | 6 | 13 | 1 |
| First release | May 2019 | Aug 2012 | Dec 2016 | Jun 2019 |
| Python versions | – | 3.10 – 3.14 | 3.10 – 3.14 | – |
| License | MIT | BSD-3-Clause | 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.