{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/2"}],"enrichment":{"capability":"Converts nested dictionaries into flat key-value pairs and back, with customizable key-joining strategies like tuples, paths, underscores, or dots.","skillfed_tags":["dict-utilities","data-transformation"],"use_cases":["Convert nested configuration objects into flat key-value pairs for environment variable mapping or flat file storage.","Flatten API responses or JSON payloads to extract all leaf values with their full key paths.","Transform flat dictionaries back into nested structures for hierarchical data reconstruction.","Enumerate list indices as keys to treat sequences uniformly with nested dicts during flattening.","Customize key joining with domain-specific delimiters or logic via callable reducers."],"what_it_does":"flatten-dict provides two core functions: `flatten()` transforms nested dict-like objects into a single-level dictionary with composite keys, and `unflatten()` reverses the process. The package supports multiple key-joining strategies\u2014tuples, filesystem paths, underscores, dots, or custom callables\u2014letting you choose how nested keys combine. You can also enumerate sequences (lists) as indexed keys, preserve or discard empty containers, limit flattening depth, and invert keys and values.\n\nThe package is useful when you need to serialize hierarchical data into flat form for storage, comparison, or API transmission, or when you need to reconstruct nested structures from flat representations. It has no external dependencies and works across modern Python versions.","worth_installing":"Yes. The package is lightweight, dependency-free, actively maintained, has no known vulnerabilities, and solves a common data-transformation problem with a clean API. Install it if you regularly work with nested dictionaries or need flexible dict flattening/unflattening."},"id":"flatten-dict","links":{"html":"https://skillfed.io/packages/flatten-dict","md":"https://skillfed.io/packages/flatten-dict.md","pypi":"https://pypi.org/project/flatten-dict/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-04-28","license_spdx":null,"license_treatment":"permissive","name":"flatten-dict","python_support":"supports_current","summary":"A flexible utility for flattening and unflattening dict-like objects in Python."},"popularity":{"monthly_downloads":4136768,"position":2373,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.5.0"}
