weather_pb2_grpc
frequenz.api.weather.v1.weather_pb2_grpc ¤
Client and server classes corresponding to protobuf-defined services.
Classes¤
frequenz.api.weather.v1.weather_pb2_grpc.WeatherForecastService ¤
Bases: object
Service provides operations related to retrieving weather forecasts for locations.
The forecasts are updated regularly, and the service will stream the latest available data unless a specific time range is requested.
Note
Weather forecasts are inherently uncertain and actual conditions may vary. Use the data responsibly.
Source code in frequenz/api/weather/v1/weather_pb2_grpc.py
frequenz.api.weather.v1.weather_pb2_grpc.WeatherForecastServiceAsyncStub ¤
Service provides operations related to retrieving weather forecasts for locations.
The forecasts are updated regularly, and the service will stream the latest available data unless a specific time range is requested.
Note
Weather forecasts are inherently uncertain and actual conditions may vary. Use the data responsibly.
Source code in frequenz/api/weather/v1/weather_pb2_grpc.py
Attributes¤
ReceiveHistoricalWeatherForecast
instance-attribute
¤
ReceiveHistoricalWeatherForecast: UnaryStreamMultiCallable[
ReceiveHistoricalWeatherForecastRequest,
ReceiveHistoricalWeatherForecastResponse,
]
Returns historical weather forecast features for a geo location for a specified time range.
ReceiveLiveWeatherForecast
instance-attribute
¤
ReceiveLiveWeatherForecast: UnaryStreamMultiCallable[
ReceiveLiveWeatherForecastRequest,
ReceiveLiveWeatherForecastResponse,
]
Streams live weather forecast features for a geo location as they become available. Initially, the most recent forecast will be streamed.
frequenz.api.weather.v1.weather_pb2_grpc.WeatherForecastServiceServicer ¤
Bases: object
Service provides operations related to retrieving weather forecasts for locations.
The forecasts are updated regularly, and the service will stream the latest available data unless a specific time range is requested.
Note
Weather forecasts are inherently uncertain and actual conditions may vary. Use the data responsibly.
Source code in frequenz/api/weather/v1/weather_pb2_grpc.py
Functions¤
ReceiveHistoricalWeatherForecast ¤
ReceiveHistoricalWeatherForecast(
request: ReceiveHistoricalWeatherForecastRequest,
context: _ServicerContext,
) -> Union[
Iterator[ReceiveHistoricalWeatherForecastResponse],
AsyncIterator[ReceiveHistoricalWeatherForecastResponse],
]
Returns historical weather forecast features for a geo location for a specified time range.
Source code in frequenz/api/weather/v1/weather_pb2_grpc.py
ReceiveLiveWeatherForecast ¤
ReceiveLiveWeatherForecast(
request: ReceiveLiveWeatherForecastRequest,
context: _ServicerContext,
) -> Union[
Iterator[ReceiveLiveWeatherForecastResponse],
AsyncIterator[ReceiveLiveWeatherForecastResponse],
]
Streams live weather forecast features for a geo location as they become available. Initially, the most recent forecast will be streamed.
Source code in frequenz/api/weather/v1/weather_pb2_grpc.py
frequenz.api.weather.v1.weather_pb2_grpc.WeatherForecastServiceStub ¤
Bases: object
Service provides operations related to retrieving weather forecasts for locations.
The forecasts are updated regularly, and the service will stream the latest available data unless a specific time range is requested.
Note
Weather forecasts are inherently uncertain and actual conditions may vary. Use the data responsibly.
Source code in frequenz/api/weather/v1/weather_pb2_grpc.py
Attributes¤
ReceiveHistoricalWeatherForecast
instance-attribute
¤
ReceiveHistoricalWeatherForecast: UnaryStreamMultiCallable[
ReceiveHistoricalWeatherForecastRequest,
ReceiveHistoricalWeatherForecastResponse,
] = unary_stream(
"/frequenz.api.weather.v1.WeatherForecastService/ReceiveHistoricalWeatherForecast",
request_serializer=SerializeToString,
response_deserializer=FromString,
)
Returns historical weather forecast features for a geo location for a specified time range.
ReceiveLiveWeatherForecast
instance-attribute
¤
ReceiveLiveWeatherForecast: UnaryStreamMultiCallable[
ReceiveLiveWeatherForecastRequest,
ReceiveLiveWeatherForecastResponse,
] = unary_stream(
"/frequenz.api.weather.v1.WeatherForecastService/ReceiveLiveWeatherForecast",
request_serializer=SerializeToString,
response_deserializer=FromString,
)
Streams live weather forecast features for a geo location as they become available. Initially, the most recent forecast will be streamed.
Functions¤
__init__ ¤
Constructor.
PARAMETER | DESCRIPTION |
---|---|
channel
|
A grpc.Channel. |