From 64d7fc3f52ae2ba6c0333d5e4f07fcaf76da6813 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Thu, 29 Jan 2026 11:10:52 +0000 Subject: [PATCH] Add core devterm module files --- devterm/config.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 devterm/config.py diff --git a/devterm/config.py b/devterm/config.py new file mode 100644 index 0000000..6a1c355 --- /dev/null +++ b/devterm/config.py @@ -0,0 +1,13 @@ +import os +from functools import lru_cache + + +@lru_cache() +def get_settings(): + return Settings() + + +class Settings: + host: str = os.getenv("DEVTERM_HOST", "127.0.0.1") + port: int = int(os.getenv("DEVTERM_PORT", "8000")) + debug: bool = False