pyowm.stationsapi30.parsers package

Submodules

pyowm.stationsapi30.parsers.aggregated_measurement_parser module

Module containing a concrete implementation for JSONParser abstract class, returning an AggregatedMeasurement instance

class pyowm.stationsapi30.parsers.aggregated_measurement_parser.AggregatedMeasurementParser[source]

Bases: pyowm.abstractions.jsonparser.JSONParser

Concrete JSONParser implementation building a pyowm.stationsapi30.measurement.AggregatedMeasurement instance out of raw JSON data

parse_JSON(JSON_string)[source]

Parses a pyowm.stationsapi30.measurement.AggregatedMeasurement instance out of raw JSON data.

Parameters:JSON_string (str) – a raw JSON string
Returns:a pyowm.stationsapi30.measurement.AggregatedMeasurement instance or None if no data is available
Raises:ParseResponseError if it is impossible to find or parse the data needed to build the result
parse_dict(data_dict)[source]

Parses a dictionary representing the attributes of a pyowm.stationsapi30.smeasurement.AggregatedMeasurement entity :param data_dict: dict :return: pyowm.stationsapi30.measurement.AggregatedMeasurement

pyowm.stationsapi30.parsers.station_parser module

Module containing a concrete implementation for JSONParser abstract class, returning a Station instance

class pyowm.stationsapi30.parsers.station_parser.StationParser[source]

Bases: pyowm.abstractions.jsonparser.JSONParser

Concrete JSONParser implementation building a pyowm.stationsapi30.station.Station instance out of raw JSON data

parse_JSON(JSON_string)[source]

Parses a pyowm.stationsapi30.station.Station instance out of raw JSON data.

Parameters:JSON_string (str) – a raw JSON string
Returns:a pyowm.stationsapi30.station.Station instance or None if no data is available
Raises:ParseResponseError if it is impossible to find or parse the data needed to build the result
parse_dict(data_dict)[source]

Parses a dictionary representing the attributes of a pyowm.stationsapi30.station.Station entity :param data_dict: dict :return: pyowm.stationsapi30.station.Station

Module contents