From e770d17b5c4178f00d1ee24d1c8a1c902f8643f9 Mon Sep 17 00:00:00 2001 From: Oliver Hofmann Date: Mon, 27 Apr 2026 08:34:00 +0200 Subject: [PATCH] Init --- app/core/__init__.py | 0 app/core/config.py | 16 ++++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 app/core/__init__.py create mode 100644 app/core/config.py diff --git a/app/core/__init__.py b/app/core/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/app/core/config.py b/app/core/config.py new file mode 100644 index 0000000..96600f5 --- /dev/null +++ b/app/core/config.py @@ -0,0 +1,16 @@ +from functools import lru_cache + +from pydantic_settings import BaseSettings, SettingsConfigDict + + +class Settings(BaseSettings): + model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8") + + APP_ENV: str = "development" + APP_PREFIX: str = "" + DATABASE_URL: str = "sqlite:///./app.db" + + +@lru_cache +def get_settings() -> Settings: + return Settings() \ No newline at end of file