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

22
weather/model.py Normal file
View File

@@ -0,0 +1,22 @@
import datetime
from pydantic import BaseModel
class WeatherValue(BaseModel):
date: datetime.datetime
cloudness: str
temperature: int
wind_speed: int
wind_gust: int
wind_direction: str
precipitation: float
pressure: int
humidity: int
class WeatherResponse(BaseModel):
location: str
date: datetime.date
period: str
values: list[WeatherValue]