Beispiel #1
0
def Instance(configuration, **kwargs):
    slug = configuration.pop('slug')
    loaded_modules = load_modules(types, **configuration)
    return instances.get(slug)(**kwargs, **loaded_modules)
Beispiel #2
0
def Executor(configuration, **kwargs):
    slug = configuration.pop('slug')
    loaded_modules = load_modules(modules, **configuration)
    return executors.get(slug)(**kwargs, **loaded_modules)
Beispiel #3
0
def Algorithm(configuration, **kwargs):
    slug = configuration.pop('slug')
    loaded_modules = load_modules(modules, **configuration)
    return algorithms.get(slug)(**kwargs, **loaded_modules)
Beispiel #4
0
from .any import *
from ..impl import limits as modules

from util import load_modules

limits = {Any.slug: lambda kwargs: Any(**load_modules(modules, **kwargs))}
Beispiel #5
0
def Method(configuration, **kwargs):
    slug = configuration.pop('slug')
    loaded_modules = load_modules(modules, **configuration)
    return methods.get(slug)(**kwargs, **loaded_modules)
Beispiel #6
0
def Output(configuration, **kwargs):
    slug = configuration.pop('slug')
    loaded_modules = load_modules(**configuration)
    return outputs.get(slug)(**kwargs, **loaded_modules)
Beispiel #7
0
def Function(configuration, **kwargs):
    slug = configuration.pop('slug')
    loaded_modules = load_modules(modules, **configuration)
    return functions.get(slug)(**kwargs, **loaded_modules)