deflate-dict
Package to deflate and inflate dictionaries.
Decision gist · record as of 2026-08-14
Yes, if you have a specific need to flatten and unflatten nested dictionaries and accept that the package is not actively maintained. The code is simple, has no dependencies, and carries no security vulnerabilities. MIT licensing is unrestrictive. However, dormant maintenance means no bug fixes or Python version updates are forthcoming—use it only for stable, self-contained use cases where you can own any future fixes.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- High install friction with no compiled dependencies.
- Maintenance is dormant—last commit was 2024-10-26, but the package has not been updated in 657 days and shows minimal community engagement (2 stars).
- Installation will succeed, but ongoing support is uncertain.
License · maintenance · safety
MIT (permissive) — MIT license is permissive and imposes no restrictions on use, modification, or redistribution in proprietary or open-source projects.
last release 2024-10-26 (657 days) · last repo commit 2024-10-26 · 2 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 86,606 downloads/mo, #13,847 on PyPI
Alternatives
Verify before relying
pip install deflate_dict
from deflate_dict import deflate, inflate
D = {"a": [{"b": (0, 1, 2)}, {"c": [1, 2, 3]}]}
flat = deflate(D, sep="_")
restored = inflate(flat, sep="_")- Whether type_encode_key parameter correctly preserves and restores all Python types during round-trip deflate/inflate cycles.
- Performance characteristics with very large or deeply nested dictionaries.
- Compatibility with Python versions beyond the unspecified support range.
What it is and what it does
Deflate Dict is a utility for converting nested dictionaries into flat, single-level dictionaries and back again. It works by traversing nested structures—dicts and lists—and creating flattened keys that encode the path to each leaf value using a configurable separator. The inverse operation, inflate, reconstructs the original nested structure from the flattened keys. This is useful when you need to serialize, store, or transmit nested data in a format that expects flat key-value pairs, or when you want to apply operations uniformly across all leaf values without recursion.
The package has no runtime dependencies and is straightforward to install. It supports optional type encoding to preserve the original types of keys during the flatten-unflatten cycle. Maintenance is dormant, with the last update in October 2024, so bug fixes or feature additions are unlikely without community contribution.
Use it for
- Convert nested configuration dictionaries to flat environment variables or flat config files for deployment.
- Serialize nested API responses or database records into a single-level format for storage or transmission.
- Flatten hierarchical data structures for machine learning feature engineering or data analysis pipelines.
- Create lookup tables or caches from nested data where keys encode the full path to each value.
- Debug or inspect deeply nested dictionaries by viewing all leaf values with their full paths at once.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you have a specific need to flatten and unflatten nested dictionaries and accept that the package is not actively maintained.
The code is simple, has no dependencies, and carries no security vulnerabilities. MIT licensing is unrestrictive. However, dormant maintenance means no bug fixes or Python version updates are forthcoming—use it only for stable, self-contained use cases where you can own any future fixes.
Install
deflate-dict on PyPI
Before you install
High install friction with no compiled dependencies. Maintenance is dormant—last commit was 2024-10-26, but the package has not been updated in 657 days and shows minimal community engagement (2 stars). Installation will succeed, but ongoing support is uncertain.
License in practice
MIT license is permissive and imposes no restrictions on use, modification, or redistribution in proprietary or open-source projects.
Quickstart
pip install deflate_dict
from deflate_dict import deflate, inflate
D = {"a": [{"b": (0, 1, 2)}, {"c": [1, 2, 3]}]}
flat = deflate(D, sep="_")
restored = inflate(flat, sep="_")
Verify before relying
- Whether type_encode_key parameter correctly preserves and restores all Python types during round-trip deflate/inflate cycles.
- Performance characteristics with very large or deeply nested dictionaries.
- Compatibility with Python versions beyond the unspecified support range.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Dormant 657 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 86,606 / month, #13,847 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3 |
Evidence: deflate_dict-1.2.2.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “flatten nested dictionary”
- deflate-dictFlattens nested dictionaries into single-level key-value pairs using…
- json-flattenConverts nested JSON objects into flat key-value dictionaries and…
- flatdictFlattens nested dictionaries into single-level dicts with delimited…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also flatdict · flatten-json · json-flatten · flatten-dict · json-flattener · inflate64 · dm-tree · deflate · json-tools-rs · json-normalize