roboto.collection_utils#

Module Contents#

roboto.collection_utils.get_by_path(target, key_path)#

Access a key path in a mapping. Returns None if any part of the path is not found or traverses through an object that is not a mapping.

Parameters:
  • target (collections.abc.Mapping[Any, Any])

  • key_path (collections.abc.Iterable[Any])

Return type:

Any