g3pylib.g3typing
1from logging import Logger, LoggerAdapter 2from typing import TYPE_CHECKING, Any, Dict, List, NewType, Union 3 4if TYPE_CHECKING: 5 LoggerLike = Union[Logger, LoggerAdapter[Any]] 6else: 7 LoggerLike = Union[Logger, LoggerAdapter] 8MessageId = NewType("MessageId", int) 9"""An id corresponding to a request-response pair of messages on the websocket.""" 10URI = NewType("URI", str) 11"""URI for an for API endpoint.""" 12JSONObject = Union[int, str, bool, Dict[str, "JSONObject"], List["JSONObject"], None] 13"""An attribute with the structure of a JSON object.""" 14JSONDict = Dict[str, JSONObject] 15"""An attribute with the structure of a JSON dict.""" 16SignalId = NewType("SignalId", str) 17"""An id corresponding to a Glasses3-signal.""" 18SignalBody = NewType("SignalBody", List[JSONObject]) 19"""The body of a received signal websocket message.""" 20SubscriptionId = NewType("SubscriptionId", int) 21"""An id corresponding to a subscription to a Glasses3-signal."""
MessageId = g3pylib.g3typing.MessageId
An id corresponding to a request-response pair of messages on the websocket.
URI = g3pylib.g3typing.URI
URI for an for API endpoint.
JSONObject = typing.Union[int, str, bool, typing.Dict[str, ForwardRef('JSONObject')], typing.List[ForwardRef('JSONObject')], NoneType]
An attribute with the structure of a JSON object.
JSONDict = typing.Dict[str, typing.Union[int, str, bool, typing.Dict[str, ForwardRef('JSONObject')], typing.List[ForwardRef('JSONObject')], NoneType]]
An attribute with the structure of a JSON dict.
SignalId = g3pylib.g3typing.SignalId
An id corresponding to a Glasses3-signal.
SignalBody = g3pylib.g3typing.SignalBody
The body of a received signal websocket message.
SubscriptionId = g3pylib.g3typing.SubscriptionId
An id corresponding to a subscription to a Glasses3-signal.