blob: fdd2c3b863801a3ba90b4abf26079710ee2c7654 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
from pint import UnitRegistry
from requests import Session
from . import point_forecast
class Windy:
def __init__(self, registry: UnitRegistry, session: Session = None, api: str = "https://api.windy.com/api"):
self.registry = registry
self.session = session or Session()
self.api = api
self._point_forecast = point_forecast.PointForecast("/point-forecast/v2")
def point_forecast(self, *args, **kwargs):
return self._point_forecast(self, *args, **kwargs)
|