sherlockpipe.loading.common.get_from_user_or_config_or_default

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

This method does the same as get_from_user_or_config() but also returns a default value if no value was found associated to the given key

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

  • user_properties (dict) – the global properties

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

  • default – the default value if none was found

Return object:

the final value