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