DictPath provides an object-oriented way to navigate and manipulate nested dictionaries using path-like expressions. It allows for robust and type-safe access to dictionary values, supporting various path syntaxes and advanced traversal features. The current stable version is 0.5.0, with a release cadence that has recently seen significant updates focused on API enhancements and performance.
pip install dictpathVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates creating an AccessorPath object and using it to read values from a nested dictionary. It covers basic dot notation, accessing list elements, and using the new subscriptable accessor syntax introduced in 0.5.0. It also shows how to provide a default value for missing paths.
Upgrade your Python environment to 3.8 or newer. If not possible, downgrade dictpath to a version compatible with your Python interpreter (e.g., `pip install 'dictpath<0.5.0'` for Python 3.5-3.7 compatibility with older releases).
Update imports and code references from `BaseAccessor` to `NodeAccessor`. Consult the 0.5.0 documentation for the new `NodeAccessor` API.
Review and update type annotations for `AccessorPath` instances. While basic usage might remain functional, type checkers will flag incompatibilities. Refer to the 0.5.0 documentation for updated typing guidance.
Ensure your path strings adhere strictly to documented formats. Test existing paths thoroughly after upgrading to 0.5.0 to catch any new parsing exceptions. Consult the `dictpath` documentation for specific parsing rules.
No dependency data recorded yet.