feat: split to weather and gismeteo modules
This commit is contained in:
15
weather/api.py
Normal file
15
weather/api.py
Normal 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
|
||||
Reference in New Issue
Block a user