get_at_path
functionsignature
get_at_path(obj, path): anyRead the value at a dotted path, or `None` if the path does not resolve. Navigates mappings (by key, falling back to an integer key when the segment is numeric — paths record `str(key)`), sequences (by integer index), and objects (by attribute, for dataclass/Pydantic fields). A leading dot is ignored. Mirrors the TS getter's "returns undefined on a dead path" behavior.
Parameters
| Name | Type | Description |
|---|---|---|
obj | any | Root value (a slice or nested value). |
| Name | Type | Description |
|---|---|---|
path | str | Dotted path; `""` returns `obj` unchanged. |
Returns
any — The value at `path`, or `None` if any segment does not resolve.