Download app/forecasting/__init__.py from JW55/SurfSense: direct link, hf CLI and curl.
- Browser
- Download file 1.17 kB
-
https://huggingface.co/spaces/JW55/SurfSense/resolve/main/app/forecasting/__init__.py
- Command line
-
hf download hf://spaces/JW55/SurfSense/app/forecasting/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/JW55/SurfSense/resolve/main/app/forecasting/__init__.py
1.17 kB
| """ | |
| Forecasting layer for SurfSense. | |
| This module handles: | |
| - External forecast API integration (Stormglass, Open-Meteo) | |
| - Unified forecast data schema | |
| - Forecast service orchestration | |
| """ | |
| from app.forecasting.models import ( | |
| Coordinates, | |
| DataSource, | |
| ForecastPoint, | |
| ForecastResponse, | |
| SpotMetadata, | |
| SwellData, | |
| SwellDirection, | |
| TideData, | |
| TideState, | |
| WaveData, | |
| WeatherData, | |
| WindData, | |
| WindDirection, | |
| ) | |
| from app.forecasting.stormglass_client import ( | |
| StormglassClient, | |
| StormglassAPIError, | |
| fetch_stormglass_forecast, | |
| ) | |
| from app.forecasting.openmeteo_client import ( | |
| OpenMeteoClient, | |
| fetch_openmeteo_forecast, | |
| ) | |
| __all__ = [ | |
| # Core forecast models | |
| "ForecastPoint", | |
| "ForecastResponse", | |
| # Component models | |
| "WaveData", | |
| "SwellData", | |
| "WindData", | |
| "TideData", | |
| "WeatherData", | |
| # Metadata | |
| "SpotMetadata", | |
| "Coordinates", | |
| "DataSource", | |
| # Enums | |
| "WindDirection", | |
| "SwellDirection", | |
| "TideState", | |
| # API Clients | |
| "StormglassClient", | |
| "StormglassAPIError", | |
| "fetch_stormglass_forecast", | |
| "OpenMeteoClient", | |
| "fetch_openmeteo_forecast", | |
| ] | |