mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-21 16:50:02 +02:00
feat: adding confz configuration
This commit is contained in:
parent
3858c7efc2
commit
617450c2bf
12
src/pyDataInterface/config.py
Normal file
12
src/pyDataInterface/config.py
Normal file
@ -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"])
|
Loading…
x
Reference in New Issue
Block a user