llmp.utils.helper.safe_getter

llmp.utils.helper.safe_getter(key: str, *args, default=None)[source]

performs get operatation in descending order and returns the first value found

Parameters
  • key (str) – key to get

  • *args – list of dictionaries

  • default (Any, optional) – default value to return if key not found. Defaults to None.