{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/11"}],"enrichment":{"capability":"Flattens nested dictionaries into single-level key-value pairs using a separator, and reconstructs them back to their original nested structure.","skillfed_tags":["data-structure","serialization"],"use_cases":["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."],"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\u2014dicts and lists\u2014and 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.\n\nThe 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.","worth_installing":"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\u2014use it only for stable, self-contained use cases where you can own any future fixes."},"id":"deflate-dict","links":{"html":"https://skillfed.io/packages/deflate-dict","md":"https://skillfed.io/packages/deflate-dict.md","pypi":"https://pypi.org/project/deflate-dict/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-10-26","license_spdx":null,"license_treatment":"permissive","name":"deflate-dict","python_support":"unspecified","summary":"Package to deflate and inflate dictionaries."},"popularity":{"monthly_downloads":86606,"position":13847,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.2.2"}
