def from_object(self, obj: Union[str, Any]) -> None:
if isinstance(obj, str):<EOL><INDENT>obj = importer.import_object_str(obj)<EOL><DEDENT>for key in dir(obj):<EOL><INDENT>if key.isupper():<EOL><INDENT>value = getattr(obj, key)<EOL>self._setattr(key, value)<EOL><DEDENT><DEDENT>logger.info("<STR_LIT>", obj)<EOL>
Load values from an object.