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 availableRaises: ParseResponseError if it is impossible to find or parse the data needed to build the result
-
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 availableRaises: ParseResponseError if it is impossible to find or parse the data needed to build the result
-