| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- """hth-sdk — Python client for the hth Linux userspace hood API.
- Public surface is async (`grpc.aio`) plus an in-process MockClient.
- This package does not open serial ports and does not implement models.
- """
- from __future__ import annotations
- from hth_sdk.batch import ActionBatchBuilder
- from hth_sdk.client import HthClient, connect, connect_control, connect_observe
- from hth_sdk.constants import (
- API_VERSION,
- DEFAULT_CONTROL_SOCKET,
- DEFAULT_OBSERVE_SOCKET,
- )
- from hth_sdk.exceptions import (
- ActionRejected,
- ApiVersionMismatch,
- ConfirmationNotProven,
- DataGap,
- DeviceEpochChanged,
- HthError,
- InvalidResumePoint,
- LeaseError,
- LeaseExpired,
- LeaseMismatch,
- StubsNotGenerated,
- TransportError,
- )
- from hth_sdk.lease import ControlLease
- from hth_sdk.mock import MockClient
- from hth_sdk.types import (
- ActionBatch,
- ActionRecord,
- ActionResult,
- ActionResultEvent,
- Capabilities,
- DeliveryGap,
- DeviceInfo,
- Event,
- FaultEvent,
- FieldAudit,
- HeartbeatEvent,
- Measurement,
- SafetyModeEvent,
- Snapshot,
- SnapshotEvent,
- TelemetryEvent,
- )
- __all__ = [
- "API_VERSION",
- "DEFAULT_CONTROL_SOCKET",
- "DEFAULT_OBSERVE_SOCKET",
- "ActionBatch",
- "ActionBatchBuilder",
- "ActionRejected",
- "ActionResult",
- "ApiVersionMismatch",
- "Capabilities",
- "ConfirmationNotProven",
- "ControlLease",
- "DataGap",
- "DeviceEpochChanged",
- "DeviceInfo",
- "HthClient",
- "HthError",
- "SnapshotEvent",
- "SafetyModeEvent",
- "InvalidResumePoint",
- "HeartbeatEvent",
- "FieldAudit",
- "FaultEvent",
- "Event",
- "DeliveryGap",
- "ActionResultEvent",
- "ActionRecord",
- "LeaseError",
- "LeaseExpired",
- "LeaseMismatch",
- "Measurement",
- "MockClient",
- "Snapshot",
- "StubsNotGenerated",
- "TelemetryEvent",
- "TransportError",
- "connect",
- "connect_control",
- "connect_observe",
- ]
- __version__ = "0.1.0"
|