mergernet.core.utils.find_by_value#

mergernet.core.utils.find_by_value(d: dict, search: Any)[source]#

Search a dictionary by values and returns the corresponding key.

Parameters:
  • d (dict) – Dictionary to search.

  • search (Any) – Value of the dictionary to search.

Returns:

The key of corresponding value.

Return type:

Any