Object-oriented paths
pathable
About
Object-oriented paths
Key features
Usage
.. code-block:: python
from pathable import DictPath
d = { "parts": { "part1": { "name": "Part One", }, "part2": { "name": "Part Two", }, }, }
dp = DictPath(d)
parts = dp / "parts"
"part2" in parts
with parts.open() as parts_dict: print(parts_dict)