get_value

Contents

get_value#

eoio.utils.dict_tools.get_value(test_dict, key, multiple=False, default: Any | None = None)[source]#

Return dictionary values associated with the specified key

Parameters:
  • multiple – if multiple keys have same name within the dictionaries, specifying True will return all as a list

  • test_dict – input dictionary in which to search for the key-value pair/s

  • key – key to use to search through dictionary

Returns:

Matching value or values associated with key.