kd.kontext#
Kontext is a small self-contained library to manipulate nested trees.
Extract values
Symbols#
Class#
Represents a string path. |
|
Represents a (non-glob) string path. |
Function#
Filters a context by a path. |
|
Flatten any PyTree / ConfigDict into a dict with ‘keys.like[0].this’. |
|
Get (nested) item or attribute by given path. |
|
Return a dictionary mapping Key-annotated fieldnames to their paths. |
|
Check if a given class or instance has fields annotated with |
|
Create a path builder from a class. |
|
Resolve the Key annotations of an object for given context. |
|
Get values for key_paths from context with useful errors when failing. |
|
Mutate the |