diff --git a/src/pyDataInterface/config.py b/src/pyDataInterface/config.py new file mode 100644 index 0000000..b3b029f --- /dev/null +++ b/src/pyDataInterface/config.py @@ -0,0 +1,12 @@ +from pathlib import Path +from typing import Literal + +from confz import ConfZ, ConfZEnvSource + +CONFIG_DIR = Path(__file__).parent.parent.parent.resolve() / "config" + + +class OperationMode(ConfZ): # type: ignore + environment: Literal["development"] | Literal["production"] = "production" + + CONFIG_SOURCES = ConfZEnvSource(allow=["ENVIRONMENT"])