Base HWM Store#
- class etl_entities.hwm_store.base_hwm_store.BaseHWMStore#
- __enter__()#
HWM store context manager.
Enter this context to use this HWM store instance as current one (instead default).
Examples
from etl_entities.hwm_store import HWMStoreStackManager with SomeHWMStore(...) as hwm_store: assert HWMStoreStackManager.get_current() == hwm_store assert HWMStoreStackManager.get_current() == default_hwm_store
- abstract get_hwm(name: str) HWM | None #
Get HWM by name from HWM store.
- Parameters:
- namestr
HWM unique name
- Returns:
HWM
HWM object, if it exists in HWM store, or None
Examples
hwm = hwm_store.get_hwm(hwm_unique_name)
- abstract set_hwm(hwm: HWM) Any #
Save HWM object to HWM Store.
- Parameters:
- hwm
HWM
HWM object
- hwm
- Returns:
- Any
HWM location, like URL of file path. Result type is implementation-specific.
Examples
from etl_entities.hwm import ColumnIntHWM hwm = ColumnIntHWM(name=..., value=...) hwm_location = hwm_store.set_hwm(hwm)