示例#1
0
def load() -> typing.Dict[str, typing.Any]:
    config = tanker.config.load_from_env(prefix='STORE_', schema=SCHEMA)
    config.setdefault('DEBUG', config['ENVIRONMENT'] in {'local', 'test'})

    return config
示例#2
0
def load() -> typing.Dict[str, typing.Union[object, str]]:
    config = tanker.config.load_from_env(prefix="CRAWLER_", schema=SCHEMA)
    config.setdefault("DEBUG", config["ENVIRONMENT"] in {"local", "test"})
    return config