__init__.py 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. """hth-sdk — Python client for the hth Linux userspace hood API.
  2. Public surface is async (`grpc.aio`) plus an in-process MockClient.
  3. This package does not open serial ports and does not implement models.
  4. """
  5. from __future__ import annotations
  6. from hth_sdk.batch import ActionBatchBuilder
  7. from hth_sdk.client import HthClient, connect, connect_control, connect_observe
  8. from hth_sdk.constants import (
  9. API_VERSION,
  10. DEFAULT_CONTROL_SOCKET,
  11. DEFAULT_OBSERVE_SOCKET,
  12. )
  13. from hth_sdk.exceptions import (
  14. ActionRejected,
  15. ApiVersionMismatch,
  16. ConfirmationNotProven,
  17. DataGap,
  18. DeviceEpochChanged,
  19. HthError,
  20. LeaseError,
  21. LeaseExpired,
  22. LeaseMismatch,
  23. StubsNotGenerated,
  24. TransportError,
  25. )
  26. from hth_sdk.lease import ControlLease
  27. from hth_sdk.mock import MockClient
  28. from hth_sdk.types import (
  29. ActionBatch,
  30. ActionResult,
  31. Capabilities,
  32. DeviceInfo,
  33. Measurement,
  34. Snapshot,
  35. TelemetryEvent,
  36. )
  37. __all__ = [
  38. "API_VERSION",
  39. "DEFAULT_CONTROL_SOCKET",
  40. "DEFAULT_OBSERVE_SOCKET",
  41. "ActionBatch",
  42. "ActionBatchBuilder",
  43. "ActionRejected",
  44. "ActionResult",
  45. "ApiVersionMismatch",
  46. "Capabilities",
  47. "ConfirmationNotProven",
  48. "ControlLease",
  49. "DataGap",
  50. "DeviceEpochChanged",
  51. "DeviceInfo",
  52. "HthClient",
  53. "HthError",
  54. "LeaseError",
  55. "LeaseExpired",
  56. "LeaseMismatch",
  57. "Measurement",
  58. "MockClient",
  59. "Snapshot",
  60. "StubsNotGenerated",
  61. "TelemetryEvent",
  62. "TransportError",
  63. "connect",
  64. "connect_control",
  65. "connect_observe",
  66. ]
  67. __version__ = "0.1.0"