Detect HWM Store decorator#
- @etl_entities.hwm_store.hwm_store_detect.detect_hwm_store#
Detect HWM store by config object
- Parameters:
- keystr
The name of the section in the config that stores information about hwm
Warning
DO NOT use dot
.
in config keys
Examples
Config
# if HWM store can be created with no args hwm_store: yaml
or
# named constructor args hwm_store: atlas: url: http://some.atlas.url user: username password: password
Config could be nested:
myetl: env: hwm_store: yaml
run.py
import hydra from omegaconf import DictConfig from etl_entities.hwm_store import detect_hwm_store # key=... is a path to config item, delimited by dot ``.`` @hydra.main(config="../conf") @detect_hwm_store(key="myetl.env.hwm_store") def main(config: DictConfig): pass