imas.ids_convert.iter_parents

imas.ids_convert.iter_parents(path: str) Iterator[str]

Iterate over parents of this path, starting with the highest-level parent.

Example

>>> list(iter_parents("abc/def/ghi"))
["abc", "abc/def"]
Parameters:
path: str

Path to get parents of.

Yields:

Parent paths of the provided path.


Last update: 2026-01-28