Weather forecast

class python_weather.forecast.Forecast

Represents today’s weather forecast, alongside daily and hourly weather forecasts.

property coordinates: Tuple[float, float]

A tuple of this forecast’s latitude and longitude.

property country: str

The local country’s name.

property daily_forecasts: Iterable[DailyForecast]

Daily weather forecasts in this location.

property datetime: datetime

The local date and time of this weather forecast.

property description: str

The description regarding the forecast. This can be localized in different languages depending on the localization used.

property feels_like: int

What it felt like, in Celcius or Fahrenheit.

property humidity: int

The humidity value in percent.

property kind: Kind

The kind of the forecast.

property local_population: int

The local population count.

property locale: Locale

The localization used to display information in this object.

property location: str

The location’s name.

property precipitation: float

The precipitation in either Millimeters or Inches.

property pressure: float

The pressure in either Pascal or Inches.

property region: str

The local region’s name.

property temperature: int

The temperature in either Celcius or Fahrenheit.

property ultraviolet: UltraViolet

The ultra-violet (UV) index.

property unit: auto

The measuring unit used to display information in this object.

property visibility: int

The visibility distance in either Kilometers or Miles.

property wind_direction: WindDirection

The wind direction.

property wind_speed: int

The wind speeds in either Kilometers per hour or Miles per hour.

class python_weather.enums.Kind

Represents 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 emoji representing this enum.

class python_weather.enums.UltraViolet

Represents ultra-violet (UV) index.

property index: int

The index value.

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

The index value.

class python_weather.enums.WindDirection

Represents 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'
property degrees: int

The wind direction’s value in degrees.

property emoji: str

The emoji representing this enum.