Comparison
deflate-dict vs flatten-json vs json-flatten vs unflatten
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-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 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-flattenUnflatten dict to dict with nested dict/arrays
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 unflattenIn short
- flatten-json is slowing down (last release over 3 years ago): fine for existing code, risky for a new project.
- json-flatten is the most used: 407K downloads a month.
- Maintenance is comparable: deflate-dict 18, unflatten 16, json-flatten 14 on Pythie’s Index.
Side by side
| Metric | deflate-dict | flatten-json | json-flatten | unflatten |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 18 | Pythie’s Index: 25 | Pythie’s Index: 14 | Pythie’s Index: 16 |
| Verdict | Low maintenance activity | Slowing down | Low maintenance activity | Low maintenance activity |
| Downloads / month | 90.5K | 2.7M | 407K | 75.2K |
| Downloads, month over month | -1% | -5% | +1% | -28% |
| GitHub stars | 2 | 555 | 56 | 24 |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 2 | 69 | 4 | 6 |
| Last release | Oct 26, 2024 | Oct 27, 2023 | Sep 7, 2024 | Sep 5, 2024 |
| Releases, 12 months | 0 | 0 | 0 | 0 |
| Weeks with commits | 2 / 26 | 0 / 26 | 0 / 26 | 0 / 26 |
| Recent contributors | 1 | 15 | 1 | 1 |
| First release | May 2019 | Apr 2016 | Jun 2019 | Jan 2018 |
| Python versions | – | – | – | 3.6 – 3.11 |
| License | MIT | MIT | Apache-2.0 | BSD-3-Clause |
| 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.