feat: split to weather and gismeteo modules

This commit is contained in:
2024-07-26 11:02:01 +03:00
parent c9e52c43a9
commit 848b6bd9ba
28 changed files with 157 additions and 108 deletions

15
weather/api.py Normal file
View File

@@ -0,0 +1,15 @@
import datetime
from .model import WeatherResponse
class WeatherApi:
async def get_day(self, location_id: str, date: datetime.date) -> WeatherResponse:
raise NotImplementedError
DEFAULT_API: WeatherApi = None
def get_api() -> WeatherApi:
return DEFAULT_API