from pathlib import Path from pydantic_settings import BaseSettings class Settings(BaseSettings): database_url: str = "sqlite:///data/mailfilter.db" yaml_config_path: str = "config/filters.yaml" encryption_key: str = "" yaml_sync_on_startup: bool = True log_level: str = "INFO" model_config = {"env_file": ".env", "env_file_encoding": "utf-8"} settings = Settings()