Spaces:
Sleeping

epl-predictor-api / app /core /config.py
otito254's picture
adding cache functionality
81163d9
Raw History Blame Contribute Delete
871 Bytes
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
SUPABASE_URL: str
SUPABASE_KEY: str
APP_ENV: str = "development"
APP_HOST: str = "0.0.0.0"
APP_PORT: int = 8000
LOG_LEVEL: str = "INFO"
ODDSPAPI_KEY: str = ""
class Config:
env_file = ".env"
case_sensitive = True
extra = "forbid"
settings = Settings()
# ── League registry ────────────────────────────────────────────────────────────
LEAGUE_CONFIG = {
"epl": {
"name": "English Premier League",
"fdco_code": "E0",
"tournament_id": 17,
"supabase_table": "matches_epl",
"models_dir": "models/saved/epl",
"season_format": "aug_may",
},
}