Files
mastobot/app/settings/defaults.py
John Ahlroos ba97013c27
Some checks failed
Build & Release / build-docker-image (push) Failing after 4m15s
Build & Release / deploy-to-production (push) Has been skipped
Initial version of app
2026-02-17 13:46:10 +01:00

14 lines
409 B
Python

from pydantic_settings import BaseSettings, SettingsConfigDict
from functools import lru_cache
class Settings(BaseSettings):
mastodon_server:str
openai_api_key:str
feeds: dict[str, dict[str,object]]
model_config = SettingsConfigDict(env_file=".env", env_nested_delimiter='__', arbitrary_types_allowed=True)
version:str
@lru_cache
def get_settings():
return Settings() # type: ignore