weather_pb2_grpc
frequenz.api.weather.weather_pb2_grpc ¤
Client and server classes corresponding to protobuf-defined services.
Classes¤
frequenz.api.weather.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/weather_pb2_grpc.py
frequenz.api.weather.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/weather_pb2_grpc.py
Attributes¤
GetHistoricalWeatherForecast
instance-attribute
¤
GetHistoricalWeatherForecast: UnaryUnaryMultiCallable[
GetHistoricalWeatherForecastRequest,
GetHistoricalWeatherForecastResponse,
]
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.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/weather_pb2_grpc.py
Functions¤
GetHistoricalWeatherForecast ¤
GetHistoricalWeatherForecast(
request: GetHistoricalWeatherForecastRequest,
context: _ServicerContext,
) -> Union[
GetHistoricalWeatherForecastResponse,
Awaitable[GetHistoricalWeatherForecastResponse],
]
Returns historical weather forecast features for a geo location for a specified time range.
Source code in frequenz/api/weather/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/weather_pb2_grpc.py
frequenz.api.weather.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/weather_pb2_grpc.py
Attributes¤
GetHistoricalWeatherForecast
instance-attribute
¤
GetHistoricalWeatherForecast: UnaryUnaryMultiCallable[
GetHistoricalWeatherForecastRequest,
GetHistoricalWeatherForecastResponse,
] = unary_unary(
"/frequenz.api.weatherforecast.v1.WeatherForecastService/GetHistoricalWeatherForecast",
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.weatherforecast.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. |