Spaces:
Sleeping
Sleeping
Download app/core/config.py from otito254/epl-predictor-api: direct link, hf CLI and curl.
- Browser
- Download file 871 Bytes
-
https://huggingface.co/spaces/otito254/epl-predictor-api/resolve/main/app/core/config.py
- Command line
-
hf download hf://spaces/otito254/epl-predictor-api/app/core/config.py
-
curl -L -o config.py https://huggingface.co/spaces/otito254/epl-predictor-api/resolve/main/app/core/config.py
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", | |
| }, | |
| } |