mirror of
https://github.com/Dasemu/skipredictor.git
synced 2026-11-26 15:26:15 +00:00
REST API serving forecast data with HS256 JWT auth (14-day tokens).
Public: /health, /auth/register, /auth/login.
Protected: /stations, /forecast, /forecast/history, /forecast/{id}, /status.
Includes APScheduler for periodic forecasts and Telegram bot subprocess.
44 lines
1.1 KiB
Python
44 lines
1.1 KiB
Python
"""SQLite-backed storage helpers for the ski predictor."""
|
|
|
|
from storage.sqlite_store import (
|
|
AD_HOC_RUN_KIND,
|
|
CROWD_ANALYSIS_TABLE,
|
|
CURRENT_FORECASTS_TABLE,
|
|
DEFAULT_DB_PATH,
|
|
EVALUATION_RUNS_TABLE,
|
|
FEATURE_IMPORTANCE_TABLE,
|
|
HISTORICAL_ACTUALS_TABLE,
|
|
HISTORICAL_FEATURED_TABLE,
|
|
HISTORICAL_MERGED_TABLE,
|
|
HISTORICAL_STATION_TABLE,
|
|
HISTORICAL_WEATHER_TABLE,
|
|
LATEST_STATION_STATUS_TABLE,
|
|
LATEST_WEATHER_TABLE,
|
|
PAST_FORECASTS_TABLE,
|
|
PUBLISHED_RUN_KIND,
|
|
RUNTIME_DATASET_TABLE,
|
|
RUNTIME_FEATURED_TABLE,
|
|
SQLiteStore,
|
|
)
|
|
|
|
__all__ = [
|
|
"AD_HOC_RUN_KIND",
|
|
"CROWD_ANALYSIS_TABLE",
|
|
"CURRENT_FORECASTS_TABLE",
|
|
"DEFAULT_DB_PATH",
|
|
"EVALUATION_RUNS_TABLE",
|
|
"FEATURE_IMPORTANCE_TABLE",
|
|
"HISTORICAL_ACTUALS_TABLE",
|
|
"HISTORICAL_FEATURED_TABLE",
|
|
"HISTORICAL_MERGED_TABLE",
|
|
"HISTORICAL_STATION_TABLE",
|
|
"HISTORICAL_WEATHER_TABLE",
|
|
"LATEST_STATION_STATUS_TABLE",
|
|
"LATEST_WEATHER_TABLE",
|
|
"PAST_FORECASTS_TABLE",
|
|
"PUBLISHED_RUN_KIND",
|
|
"RUNTIME_DATASET_TABLE",
|
|
"RUNTIME_FEATURED_TABLE",
|
|
"SQLiteStore",
|
|
]
|