hegemony-transport-asyncssh 0.57.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hegemony_transport_asyncssh/__init__.py +28 -0
- hegemony_transport_asyncssh/transport.py +1065 -0
- hegemony_transport_asyncssh-0.57.0.dist-info/METADATA +80 -0
- hegemony_transport_asyncssh-0.57.0.dist-info/RECORD +7 -0
- hegemony_transport_asyncssh-0.57.0.dist-info/WHEEL +4 -0
- hegemony_transport_asyncssh-0.57.0.dist-info/entry_points.txt +3 -0
- hegemony_transport_asyncssh-0.57.0.dist-info/licenses/LICENSE-AGPL-3.0-or-later.txt +235 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: 2025-2026 Rexonix s.r.o.
|
|
2
|
+
# SPDX-FileContributor: Jakub Trávník <jakub.travnik@gmail.com>
|
|
3
|
+
#
|
|
4
|
+
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
5
|
+
|
|
6
|
+
"""AsyncSSH device transport for Hegemony.
|
|
7
|
+
|
|
8
|
+
Registers the ``asyncssh`` transport under the ``hegemony.device_transports``
|
|
9
|
+
entry-point group. The host selects it by id, constructs it from a resolved
|
|
10
|
+
``DeviceConnectionSpec``, and injects its cancellation registry.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from __future__ import annotations
|
|
14
|
+
|
|
15
|
+
from hegemony_step_sdk import TransportRegistry
|
|
16
|
+
|
|
17
|
+
from .transport import AsyncSSHTransport, ExecResult
|
|
18
|
+
|
|
19
|
+
ALL_TRANSPORTS: tuple[type, ...] = (AsyncSSHTransport,)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def register(registry: TransportRegistry) -> None:
|
|
23
|
+
"""Entry point: register this wheel's transports with the host registry."""
|
|
24
|
+
for transport_class in ALL_TRANSPORTS:
|
|
25
|
+
registry.register_transport(transport_class)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
__all__ = ["ALL_TRANSPORTS", "AsyncSSHTransport", "ExecResult", "register"]
|