scglue.utils.get_chained_attr
- scglue.utils.get_chained_attr(x, attr)[source]
Get attribute from an object, with support for chained attribute names.
- Parameters:
x (
typing.Any
) – Object to get attribute fromattr (
str
) – Attribute name
- Return type:
- Returns:
attr_value – Attribute value