lisa.utils.get_nested_key#
- lisa.utils.get_nested_key(mapping, key_path, getitem=<built-in function getitem>)[source]#
Get a key in a nested mapping
- Parameters:
mapping (collections.abc.Mapping) – The mapping to lookup in
key_path (list) – Path to the key in the mapping, in the form of a list of keys.
getitem (collections.abc.Callable) – Function used to get items on the mapping. Defaults to
operator.getitem()
.