sherlockpipe.loading.common.get_from_user_or_config

sherlockpipe.loading.common.get_from_user_or_config(target: dict, user_properties: dict, key: str) object

Given the root user_properties dictionary and the specific target dictionary, it loads the property with name key iteratively: first tries to load the value from user_properties, then it tries to load it from target. If target contained a value, the one from user_properties is overwritten.

Parameters:
  • target (dict) – the target inner properties

  • user_properties (dict) – the global properties

  • key (str) – the key of the properties to be extracted

Return object:

the final value