__init__.py 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. """Async Python client library for the Chatto Connect API."""
  2. from chattolib.client import ChattoClient
  3. from chattolib.exceptions import ChattoAuthError, ChattoConnectError, ChattoError
  4. from chattolib.realtime import (
  5. ChattoRealtimeCloseError,
  6. ChattoRealtimeError,
  7. RealtimeConnection,
  8. RealtimeEvent,
  9. RealtimeSnapshot,
  10. stream_events,
  11. )
  12. try: # the bot framework needs the optional realtime extra
  13. from chattolib.bot import Bot, BotError
  14. except ImportError: # pragma: no cover - realtime extra not installed
  15. Bot = None # type: ignore[assignment,misc]
  16. BotError = None # type: ignore[assignment,misc]
  17. from chattolib.types import (
  18. ActiveCall,
  19. AdminMember,
  20. AdminRole,
  21. AdminRoomLayoutGroup,
  22. Asset,
  23. AssetUpload,
  24. AssetUploadStatus,
  25. AssetUrl,
  26. BotInfo,
  27. CustomUserStatus,
  28. DirectoryMember,
  29. FollowedThread,
  30. FollowedThreadsPage,
  31. ImageFitMode,
  32. ImageTransformOptions,
  33. LinkPreview,
  34. Message,
  35. MessageAttachment,
  36. MessageReaction,
  37. MessageViewerState,
  38. Neighbor,
  39. NeighborhoodServer,
  40. NeighborhoodServersPage,
  41. NotificationLevel,
  42. NotificationMessageReference,
  43. NotificationOccurrence,
  44. NotificationOccurrencesPage,
  45. NotificationPolicy,
  46. NotificationPreference,
  47. NotificationRoomUnreadCount,
  48. NotificationSignal,
  49. Page,
  50. PinnedMessage,
  51. PinnedMessagesPage,
  52. PresencePreference,
  53. PresenceStatus,
  54. ProviderMetadata,
  55. Role,
  56. Room,
  57. RoomDirectoryScope,
  58. RoomGroup,
  59. RoomKind,
  60. RoomSummary,
  61. RoomSuspension,
  62. RoomThreadingMode,
  63. RoomViewerState,
  64. RoomWithViewerState,
  65. ServerConfig,
  66. ServerLogin,
  67. ServerProfile,
  68. ServerRuntimeConfig,
  69. SidebarLink,
  70. ThreadSummary,
  71. TimeFormat,
  72. TimelineEvent,
  73. TimelinePage,
  74. User,
  75. UserSettings,
  76. VideoProcessing,
  77. VideoProcessingStatus,
  78. VideoVariant,
  79. ViewerUser,
  80. )
  81. __all__ = [
  82. "Bot",
  83. "BotError",
  84. "ChattoClient",
  85. "ChattoError",
  86. "ChattoConnectError",
  87. "ChattoAuthError",
  88. "ChattoRealtimeCloseError",
  89. "ChattoRealtimeError",
  90. "RealtimeConnection",
  91. "RealtimeEvent",
  92. "RealtimeSnapshot",
  93. "stream_events",
  94. "ActiveCall",
  95. "AdminMember",
  96. "AdminRole",
  97. "AdminRoomLayoutGroup",
  98. "Asset",
  99. "AssetUpload",
  100. "AssetUploadStatus",
  101. "AssetUrl",
  102. "BotInfo",
  103. "CustomUserStatus",
  104. "DirectoryMember",
  105. "FollowedThread",
  106. "FollowedThreadsPage",
  107. "ImageFitMode",
  108. "ImageTransformOptions",
  109. "LinkPreview",
  110. "Message",
  111. "MessageAttachment",
  112. "MessageReaction",
  113. "MessageViewerState",
  114. "Neighbor",
  115. "NeighborhoodServer",
  116. "NeighborhoodServersPage",
  117. "NotificationLevel",
  118. "NotificationMessageReference",
  119. "NotificationOccurrence",
  120. "NotificationOccurrencesPage",
  121. "NotificationPolicy",
  122. "NotificationPreference",
  123. "NotificationRoomUnreadCount",
  124. "NotificationSignal",
  125. "Page",
  126. "PinnedMessage",
  127. "PinnedMessagesPage",
  128. "PresencePreference",
  129. "PresenceStatus",
  130. "ProviderMetadata",
  131. "Role",
  132. "Room",
  133. "RoomDirectoryScope",
  134. "RoomGroup",
  135. "RoomKind",
  136. "RoomSuspension",
  137. "RoomSummary",
  138. "RoomThreadingMode",
  139. "RoomViewerState",
  140. "RoomWithViewerState",
  141. "ServerConfig",
  142. "ServerLogin",
  143. "ServerProfile",
  144. "ServerRuntimeConfig",
  145. "SidebarLink",
  146. "ThreadSummary",
  147. "TimeFormat",
  148. "TimelineEvent",
  149. "TimelinePage",
  150. "User",
  151. "UserSettings",
  152. "VideoProcessing",
  153. "VideoProcessingStatus",
  154. "VideoVariant",
  155. "ViewerUser",
  156. ]