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_type values.

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.
orion.core.utils.nesteddict()[source]

Define type of arbitrary nested defaultdicts Extend defaultdict to arbitrary nested levels.