alex.applications.utils package

Submodules

alex.applications.utils.weather module

class alex.applications.utils.weather.OpenWeatherMapWeather(input_json, condition_transl, date=None, daily=False, celsius=True)[source]

Bases: alex.applications.utils.weather.Weather

class alex.applications.utils.weather.OpenWeatherMapWeatherFinder(cfg)[source]

Bases: alex.applications.utils.weather.WeatherFinder, alex.tools.apirequest.APIRequest

Weather service using OpenWeatherMap (http://openweathermap.org)

get_weather(*args, **kwds)[source]

Get OpenWeatherMap weather information or forecast for the given time.

The time/date should be given as a datetime.datetime object.

load(file_name)[source]
class alex.applications.utils.weather.Weather[source]

Bases: object

class alex.applications.utils.weather.WeatherFinder[source]

Bases: object

Abstract ancestor for transit direction finders.

get_weather(time=None, daily=False, place=None)[source]

Retrieve the weather for the given time, or for now (if time is None).

Should be implemented in derived classes.

class alex.applications.utils.weather.WeatherPoint(in_city=None, in_state=None)[source]

Bases: object

Module contents