Comparison
deflate-dict vs flatten-json vs json-flattener 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 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-flattenerUnflatten 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-flattener looks abandoned: avoid it for new projects.
- deflate-dict is the most used: 90.5K downloads a month.
- Maintenance is comparable: deflate-dict 18, unflatten 16 on Pythie’s Index.
Side by side
| Metric | deflate-dict | flatten-json | json-flattener | unflatten |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 18 | 25 |