{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/3"}],"enrichment":{"capability":"dpath lets you access, search, and modify nested dictionaries using glob-style path syntax (e.g., `/a/b/[cd]`), similar to filesystem navigation or XPath queries.","skillfed_tags":["dict-navigation","data-querying","configuration-management"],"use_cases":["Query configuration files or JSON documents using glob patterns to find all matching keys without nested loops.","Bulk update or delete values in deeply nested dictionaries by specifying a path glob instead of iterating manually.","Create new nested paths in a dictionary automatically (like `mkdir -p`) without manually creating intermediate dicts.","Extract a subset of a large nested structure by searching for keys matching a pattern and returning only the matching branches.","Merge two configuration dictionaries deeply, combining lists and nested objects instead of shallow replacement."],"what_it_does":"dpath is a Python library that treats nested dictionaries as if they were filesystems, letting you navigate and query them using slash-separated paths and glob patterns. Instead of writing nested bracket notation like `x['a']['b']['43']`, you write `dpath.get(x, '/a/b/43')`. It supports glob syntax (e.g., `[cd]` to match keys 'c' or 'd', or `*` to match any key at a level) for bulk operations like searching, setting, or deleting multiple values at once.\n\nThe library provides functions to get single values, search for all matches (returning a filtered dictionary or yielding path-value tuples), extract just the values, set or create new paths (with automatic intermediate key creation), delete matching paths, and merge dictionaries deeply. It has no external dependencies and works with modern Python versions (3.7 through 3.12), making it a lightweight utility for working with configuration files, JSON data, or any nested dict structure where path-based access is clearer than nested indexing.","worth_installing":"Yes. dpath is a stable, dependency-free utility for a common task\u2014navigating nested dicts with path syntax. It has no known vulnerabilities, permissive licensing, and broad Python version support. The dormant maintenance status is not a blocker for a mature, focused library with no active dependencies to break. Install it if you work frequently with nested dictionaries or configuration structures."},"id":"dpath","links":{"html":"https://skillfed.io/packages/dpath","md":"https://skillfed.io/packages/dpath.md","pypi":"https://pypi.org/project/dpath/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-06-12","license_spdx":null,"license_treatment":"permissive","name":"dpath","python_support":"supports_current","summary":"Filesystem-like pathing and searching for dictionaries"},"popularity":{"monthly_downloads":11340497,"position":1397,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.2.0"}
