{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/4"}],"enrichment":{"capability":"Flattens nested dictionaries into single-level dicts with delimited composite keys, and optionally flattens lists and tuples by index.","skillfed_tags":["data-structure","dict-utility"],"use_cases":["Normalize deeply nested JSON or config objects into a flat key-value store for easier iteration or lookup.","Convert API responses with nested structures into a single-level dict for database storage or serialization.","Flatten configuration hierarchies to pass as environment variables or command-line arguments.","Transform nested data structures into a format suitable for CSV export or tabular processing.","Simplify access patterns in code that needs to work with both flat and nested representations simultaneously."],"what_it_does":"FlatDict provides two dict subclasses\u2014FlatDict and FlatterDict\u2014that present nested dictionaries as a single flat level while preserving access to the original structure. When you wrap a nested dict, keys are automatically flattened using a delimiter (colon by default), so a path like `{'foo': {'bar': 'baz'}}` becomes accessible as `{'foo:bar': 'baz'}`. You can read and write using either the composite key or the nested path interchangeably.\n\nFlatterDict extends this to sequences: lists and tuples are also flattened by converting indices to keys, so `{'list': ['a', 'b', 'c']}` becomes `{'list:0': 'a', 'list:1': 'b', 'list:2': 'c'}`. This is useful when you need to work with deeply nested or mixed structures as a flat key-value store\u2014common in configuration handling, data transformation, or API response normalization.","worth_installing":"Yes. This is a stable, well-maintained utility with zero dependencies, no known vulnerabilities, and a permissive license. Install it if you regularly work with nested dicts and need a lightweight, transparent way to flatten them. The low friction and broad Python version support make it a safe, practical choice."},"id":"flatdict","links":{"html":"https://skillfed.io/packages/flatdict","md":"https://skillfed.io/packages/flatdict.md","pypi":"https://pypi.org/project/flatdict/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-02-15","license_spdx":"BSD-3-Clause","license_treatment":"permissive","name":"flatdict","python_support":"supports_current","summary":"Python module for interacting with nested dicts as a single level dict with delimited keys."},"popularity":{"monthly_downloads":1527366,"position":3811,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"4.1.0"}
