def Instance(configuration, **kwargs): slug = configuration.pop('slug') loaded_modules = load_modules(types, **configuration) return instances.get(slug)(**kwargs, **loaded_modules)
def Executor(configuration, **kwargs): slug = configuration.pop('slug') loaded_modules = load_modules(modules, **configuration) return executors.get(slug)(**kwargs, **loaded_modules)
def Algorithm(configuration, **kwargs): slug = configuration.pop('slug') loaded_modules = load_modules(modules, **configuration) return algorithms.get(slug)(**kwargs, **loaded_modules)
from .any import * from ..impl import limits as modules from util import load_modules limits = {Any.slug: lambda kwargs: Any(**load_modules(modules, **kwargs))}
def Method(configuration, **kwargs): slug = configuration.pop('slug') loaded_modules = load_modules(modules, **configuration) return methods.get(slug)(**kwargs, **loaded_modules)
def Output(configuration, **kwargs): slug = configuration.pop('slug') loaded_modules = load_modules(**configuration) return outputs.get(slug)(**kwargs, **loaded_modules)
def Function(configuration, **kwargs): slug = configuration.pop('slug') loaded_modules = load_modules(modules, **configuration) return functions.get(slug)(**kwargs, **loaded_modules)