mkt.schema.utils.rgetattr

mkt.schema.utils.rgetattr(obj, attr, *args)[source]

Get attribute from object recursively.

Parameters:
  • obj (Any) – Object to get attribute from.

  • attr (str) – Attribute to get.

  • *args (Any) – Any additional arguments to pass to getattr.

Returns:

Value of attribute if found.

Return type:

Any