finesse.utilities.misc.reduce_getattr

finesse.utilities.misc.reduce_getattr(obj, key: str, delimiter: str = '.')[source]

Applies a nested getattr with reduce to select an attribute of a nested object within obj.

Parameters
objobject

Object to search

keystr

Delimited string of attributes

delimiterstr, optional

Delimiter character of key

Returns
Attribute of object