pyiron_base.utils.instance

pyiron_base.utils.instance#

Utility functions used in pyiron. In order to be accessible from anywhere in pyiron, they must remain free of any imports from pyiron!

Functions

import_class(class_type)

Import a class dynamically based on its fully qualified name.

static_isinstance(obj, obj_type)

A static implementation of isinstance() - instead of comparing an object and a class, the object is compared to a string, like 'pyiron_base.jobs.job.generic.GenericJob' or a list of strings.