from pydantic_settings import BaseSettings from pathlib import Path import os class Settings(BaseSettings): # Oracle ORACLE_USER: str = "MARIUSM_AUTO" ORACLE_PASSWORD: str = "ROMFASTSOFT" ORACLE_DSN: str = "ROA_CENTRAL" INSTANTCLIENTPATH: str = "" FORCE_THIN_MODE: bool = False TNS_ADMIN: str = "" # SQLite SQLITE_DB_PATH: str = str(Path(__file__).parent.parent / "data" / "import.db") # App APP_PORT: int = 5003 LOG_LEVEL: str = "INFO" JSON_OUTPUT_DIR: str = "" # SMTP (optional) SMTP_HOST: str = "" SMTP_PORT: int = 587 SMTP_USER: str = "" SMTP_PASSWORD: str = "" SMTP_TO: str = "" # Auth (optional) API_USERNAME: str = "" API_PASSWORD: str = "" # ROA Import Settings ID_POL: int = 0 ID_GESTIUNE: int = 0 ID_SECTIE: int = 0 model_config = {"env_file": ".env", "env_file_encoding": "utf-8", "extra": "ignore"} settings = Settings()