Add core devterm module files
Some checks failed
CI / test (3.10) (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / test (3.8) (push) Has been cancelled
CI / test (3.9) (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / typecheck (push) Has been cancelled
CI / build-package (push) Has been cancelled

This commit is contained in:
2026-01-29 11:10:52 +00:00
parent 3639173280
commit 64d7fc3f52

13
devterm/config.py Normal file
View File

@@ -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