--- id: pathable version: "0.6.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # pathable — Object-oriented paths License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install pathable uv add pathable poetry add pathable ## Description # pathable [![Package version](https://img.shields.io/pypi/v/pathable.svg)](https://pypi.org/project/pathable/) [![Python versions](https://img.shields.io/pypi/pyversions/pathable.svg)](https://pypi.org/project/pathable/) [![License](https://img.shields.io/pypi/l/pathable.svg)](https://pypi.org/project/pathable/) ## About Pathable provides a small set of "path" objects for traversing hierarchical data (mappings, lists, and other subscriptable trees) using a familiar path-like syntax. It’s especially handy when you want to: * express deep lookups as a single object (and pass it around) * build paths incrementally (`p / "a" / 0 / "b"`) * safely probe (`exists()`, `get(...)`) or strictly require segments (`//`) ## Key features * Intuitive path-based navigation for nested data (e.g., dicts/lists) * Pluggable accessor layer for custom backends * Pythonic, chainable API for concise and readable code * Per-instance (bounded LRU) cached lookup accessor for repeated reads of the same tree ## Quickstart ```python from pathable import LookupPath data = { "parts": { "part1": {"name": "Part One"}, "part2": {"name": "Part Two"}, } } root =... ## AI interpretation — verify before relying Pathable provides object-oriented path objects for traversing hierarchical data (dicts, lists, and other subscriptable structures) using familiar path-like syntax with operators like `/` for segment chaining and safe or strict access methods. Verdict: Pathable is a lightweight, well-maintained utility for expressive nested-data navigation with zero runtime dependencies and permissive licensing. It is suitable for production use in applications requiring readable, chainable access to hierarchical structures, though its small repository footprint (5 stars) suggests limited adoption. [View on SkillFed](https://skillfed.io/packages/pathable) · [View on PyPI](https://pypi.org/project/pathable/)