Utilities¶
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_type
values.
Methods
__call__
(of_type, *args, **kwargs)Create an object, instance of cls.__base__
, on first call.- types : list of subclasses of