pythia.event_stream.base#
Event stream interface and common definitions.
- class pythia.event_stream.base.Backend(uri: str)[source]#
Bases:
ABC
Even stream backend.
- This class has three pruposes:
Interface for custom backends
Skeleton for their internal workings.
Factory to choose implementation.
Initialize a backend from its uri.
- Parameters:
uri – connection string.
- __init__(uri: str) None [source]#
Initialize a backend from its uri.
- Parameters:
uri – connection string.
- _abc_impl = <_abc_data object>#
- pythia.event_stream.base.parse_uri(uri: EventStreamUri) Tuple[dict[str, Any], Dict[Any, list]] [source]#
Get information from the uri.
- Parameters:
uri – uri to parse.
- Returns:
scheme, netloc, path, params, query, fragment - as contained in the uri, and (b) query parameters form the uri.
- Return type:
A tuple containing (a) dictionary containing the following keys