key_present

Contents

key_present#

eoio.utils.dict_tools.key_present(test: dict | list, keys: str | list) bool[source]#

Determine whether a key is present in a nested iterable

Parameters:
  • test – iterable through which to search

  • keys – keys to search for in iterable

Returns:

True when any requested key is present, otherwise False.