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