Weather forecast

class python_weather.forecast.Forecast

A set of weather forecasts for a certain location.

cloud_cover: int

The cloud cover value in percent.

coordinates: tuple[float, float]

This forecast’s latitude and longitude.

country: str

The local country’s name.

daily_forecasts: list[DailyForecast]

Daily weather forecasts in this location.

datetime: datetime

The local date and time of this weather forecast.

description: str

The description regarding the forecast depending on the localization used.

feels_like: int

What it felt like in either celcius or fahrenheit.

humidity: int

The humidity value in percent.

kind: Kind

The kind of the forecast.

local_population: int

The local population count.

location: str

The location’s name.

precipitation: float

The precipitation in either millimeters or inches.

pressure: float

The pressure in either pascal or inches.

region: str

The local region’s name.

temperature: int

The temperature in either celcius or fahrenheit.

ultraviolet: UltraViolet

The ultra-violet index.

visibility: int

The visibility distance in either kilometers or miles.

wind_direction: WindDirection

The wind direction.

wind_speed: int

The wind speeds in either kilometers/hour or miles/hour.

class python_weather.enums.Kind

A weather forecast kind.

CLOUDY = 119
FOG = 143
HEAVY_RAIN = 302
HEAVY_SHOWERS = 299
HEAVY_SNOW = 230
HEAVY_SNOW_SHOWERS = 335
LIGHT_RAIN = 266
LIGHT_SHOWERS = 176
LIGHT_SLEET = 182
LIGHT_SLEET_SHOWERS = 179
LIGHT_SNOW = 227
LIGHT_SNOW_SHOWERS = 323
PARTLY_CLOUDY = 116
SUNNY = 113
THUNDERY_HEAVY_RAIN = 389
THUNDERY_SHOWERS = 200
THUNDERY_SNOW_SHOWERS = 392
VERY_CLOUDY = 122
property emoji: str

The weather forecast kind’s emoji representation.

class python_weather.enums.UltraViolet

An ultra-violet (UV) index.

EXTREME = None
HIGH = None
LOW = None
MODERATE = None
VERY_HIGH = None
index: int

The index value.

class python_weather.enums.WindDirection

A wind direction.

EAST = 'E'
EAST_NORTHEAST = 'ENE'
EAST_SOUTHEAST = 'ESE'
NORTH = 'N'
NORTHEAST = 'NE'
NORTHWEST = 'NW'
NORTH_NORTHEAST = 'NNE'
NORTH_NORTHWEST = 'NNW'
SOUTH = 'S'
SOUTHEAST = 'SE'
SOUTHWEST = 'SW'
SOUTH_SOUTHEAST = 'SSE'
SOUTH_SOUTHWEST = 'SSW'
WEST = 'W'
WEST_NORTHWEST = 'WNW'
WEST_SOUTHWEST = 'WSW'
degrees: float

The wind direction’s angle in degrees.

property emoji: str

The wind direction’s emoji representation.