ClientAsync#
- class pyaseba.client.ClientAsync#
Offers an asynchronous alternative to
pyaseba.client.Clientreplacing methods that blocks (and typically takeswait_ms: intas argument) with coroutines.The reset of the interface is identical to
pyaseba.client.Client.- async connect(target: str, wait_ms: int = 1000, max_retries: int = 3, **kwargs: Any) int#
Asynchronous version of
pyaseba.client.Client.connect()
- async get_all_variables(node_id: int, wait_ms: int = 0, include: set[int] = {}, exclude: set[int] = {}) dict[str, list[int]]#
Asynchronous version of
pyaseba.client.Client.get_all_variables()
- async get_changed_variables(node_id: int, wait_ms: int = 0, include: set[int] = {}, exclude: set[int] = {}) list[tuple[int, list[int]]]#
Asynchronous version of
pyaseba.client.Client.get_changed_variables()
- async get_event(node_id: int, name: str, wait_ms: int = 0, include: set[int] = {}, exclude: set[int] = {}) Event | None#
Asynchronous version of
pyaseba.client.Client.get_event()
- async get_message(node_id: int = -1, types: set[int] = {}, wait_ms: int = 0, include: set[int] = {}, exclude: set[int] = {}, pause: bool = False) tuple[Message | None, int]#
Asynchronous version of
pyaseba.client.Client.get_message()
- async get_variable(node_id: int, name: str, wait_ms: int = 0, include: set[int] = {}, exclude: set[int] = {}) list[int]#
Asynchronous version of
pyaseba.client.Client.get_variable()
- async query_description(node_id: int, wait_ms: int = 0, include: set[int] = {}, exclude: set[int] = {}) Description | None#
Asynchronous version of
pyaseba.client.Client.query_description()
- async query_description_fragment(node_id: int, fragment: int, wait_ms: int = 0, include: set[int] = {}, exclude: set[int] = {}) DescriptionFragment | None#
Asynchronous version of
pyaseba.client.Client.query_description_fragment()
- async query_device_info(node_id: int, type: DeviceInfoType, wait_ms: int = 0, include: set[int] = {}, exclude: set[int] = {}) list[int]#
Asynchronous version of
pyaseba.client.Client.query_device_info()
- async query_device_name(node_id: int, wait_ms: int = 0, include: set[int] = {}, exclude: set[int] = {}) str#
Asynchronous version of
pyaseba.client.Client.query_description_fragment()
- async query_device_uuid(node_id: int, wait_ms: int = 0, include: set[int] = {}, exclude: set[int] = {}) list[int]#
Asynchronous version of
pyaseba.client.Client.query_device_uuid()
- async query_thymio_rf_settings(node_id: int, wait_ms: int = 0, include: set[int] = {}, exclude: set[int] = {}) ThymioRFSettings#
Asynchronous version of
pyaseba.client.Client.query_device_uuid()
- async scan(number: int = -1, wait_ms: int = 1000) dict[int, set[int]]#
Asynchronous version of
pyaseba.client.scan()
- async wait_connection(connection: int = 0, wait_ms: int = 0) tuple[int, str]#
Asynchronous version of
pyaseba.client.Client.wait_connection()
- async wait_disconnection(connection: int = 0, wait_ms: int = 0) tuple[int, str]#
Asynchronous version of
pyaseba.client.Client.wait_disconnection()
- async wait_node(node_id: int = -1, wait_ms: int = 0, include: set[int] = {}, exclude: set[int] = {}) tuple[int, int]#
Asynchronous version of
pyaseba.client.Client.wait_node()
- async wait_node_disconnection(node_id: int = -1, wait_ms: int = 0, include: set[int] = {}, exclude: set[int] = {}) tuple[int, int]#
Asynchronous version of
pyaseba.client.Client.wait_node_disconnection()
- async wait_nodes(node_ids: set[int] = {}, number: int = -1, wait_ms: int = 0, include: set[int] = {}, exclude: set[int] = {}) dict[int, set[int]]#
Asynchronous version of
pyaseba.client.Client.wait_nodes()