primer commit

This commit is contained in:
george committed 2026-06-01 16:31:24 -05:00
commit 0855948192
11 files changed
+617

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
import json
from pathlib import Path
from config_model import Config, HanaConfig, OutlookConfig, ClientConfig
########################################################
CONFIG_PATH = Path(__file__).resolve().parent / "config.json"
with open(CONFIG_PATH, 'r', encoding='utf-8') as f:
data = json.load(f)
# Instantiate dataclasses
hana = HanaConfig(**data.get('hana', {}))
outlook = OutlookConfig(**data.get('outlook', {}))
client = ClientConfig(**data.get('client', {}))
CONFIG = Config(
hana=hana,
outlook=outlook,
client=client
)
########################################################