Utilities¶
Utility modules
orion.core.utils – Package-wide useful routines¶
-
class
orion.core.utils.Factory(names, bases, dictionary)[source]¶ Instantiate appropriate wrapper for the infrastructure based on input argument,
of_type.Attributes: - types : list of subclasses of
cls.__base__ Updated to contain all possible implementations currently. Check out code.
- typenames : list of str
Names of implemented wrapper classes, correspond to possible
of_typevalues.
Methods
__call__(of_type, *args, **kwargs)Create an object, instance of cls.__base__, on first call.mro(/)Return a type’s method resolution order. register(subclass)Register a virtual subclass of an ABC. - types : list of subclasses of