HWM Store stack manager#

class etl_entities.hwm_store.hwm_store_stack_manager.HWMStoreStackManager#

Class used to store stack of entered HWM Store context managers.

classmethod get_current() BaseHWMStore#

Get HWM Store implementation set by context manager.

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