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