__init__.py 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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. ThreadRootAuthorFilter,
  71. ThreadSummary,
  72. TimeFormat,
  73. TimelineEvent,
  74. TimelinePage,
  75. User,
  76. UserSettings,
  77. VideoProcessing,
  78. VideoProcessingStatus,
  79. VideoVariant,
  80. ViewerUser,
  81. )
  82. __all__ = [
  83. "Bot",
  84. "BotError",
  85. "ChattoClient",
  86. "ChattoError",
  87. "ChattoConnectError",
  88. "ChattoAuthError",
  89. "ChattoRealtimeCloseError",
  90. "ChattoRealtimeError",
  91. "RealtimeConnection",
  92. "RealtimeEvent",
  93. "RealtimeSnapshot",
  94. "stream_events",
  95. "ActiveCall",
  96. "AdminMember",
  97. "AdminRole",
  98. "AdminRoomLayoutGroup",
  99. "Asset",
  100. "AssetUpload",
  101. "AssetUploadStatus",
  102. "AssetUrl",
  103. "BotInfo",
  104. "CustomUserStatus",
  105. "DirectoryMember",
  106. "FollowedThread",
  107. "FollowedThreadsPage",
  108. "ImageFitMode",
  109. "ImageTransformOptions",
  110. "LinkPreview",
  111. "Message",
  112. "MessageAttachment",
  113. "MessageReaction",
  114. "MessageViewerState",
  115. "Neighbor",
  116. "NeighborhoodServer",
  117. "NeighborhoodServersPage",
  118. "NotificationLevel",
  119. "NotificationMessageReference",
  120. "NotificationOccurrence",
  121. "NotificationOccurrencesPage",
  122. "NotificationPolicy",
  123. "NotificationPreference",
  124. "NotificationRoomUnreadCount",
  125. "NotificationSignal",
  126. "Page",
  127. "PinnedMessage",
  128. "PinnedMessagesPage",
  129. "PresencePreference",
  130. "PresenceStatus",
  131. "ProviderMetadata",
  132. "Role",
  133. "Room",
  134. "RoomDirectoryScope",
  135. "RoomGroup",
  136. "RoomKind",
  137. "RoomSuspension",
  138. "RoomSummary",
  139. "RoomThreadingMode",
  140. "RoomViewerState",
  141. "RoomWithViewerState",
  142. "ServerConfig",
  143. "ServerLogin",
  144. "ServerProfile",
  145. "ServerRuntimeConfig",
  146. "SidebarLink",
  147. "ThreadRootAuthorFilter",
  148. "ThreadSummary",
  149. "TimeFormat",
  150. "TimelineEvent",
  151. "TimelinePage",
  152. "User",
  153. "UserSettings",
  154. "VideoProcessing",
  155. "VideoProcessingStatus",
  156. "VideoVariant",
  157. "ViewerUser",
  158. ]