Пример #1
0
from databroker.v1 import from_config
from databroker.v0 import Broker
from .. import load_config

name = 'xfp'
v0_catalog = Broker.from_config(load_config(f'{name}/{name}.yml'))
v1_catalog = from_config(load_config(f'{name}/{name}.yml'))
catalog = from_config(load_config(f'{name}/{name}.yml')).v2
Пример #2
0
from databroker.v1 import from_config
from databroker.v0 import Broker
from .. import load_config_central

name = 'qas'
v0_central = Broker.from_config(load_config_central(f'{name}/{name}.yml', name))
v1_central = from_config(load_config_central(f'{name}/{name}.yml', name))
central = from_config(load_config_central(f'{name}/{name}.yml', name)).v2
Пример #3
0
def build_db_from_config():
    config = get_db_config()
    db = Broker.from_config(config)
    return db