__init__.py 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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. Neighbor,
  38. NotificationLevel,
  39. NotificationMessageReference,
  40. NotificationOccurrence,
  41. NotificationOccurrencesPage,
  42. NotificationPolicy,
  43. NotificationPreference,
  44. NotificationRoomUnreadCount,
  45. NotificationSignal,
  46. Page,
  47. PinnedMessage,
  48. PinnedMessagesPage,
  49. PresenceStatus,
  50. ProviderMetadata,
  51. Role,
  52. Room,
  53. RoomBan,
  54. RoomDirectoryScope,
  55. RoomGroup,
  56. RoomKind,
  57. RoomSummary,
  58. RoomThreadingMode,
  59. RoomViewerState,
  60. RoomWithViewerState,
  61. ServerConfig,
  62. ServerLogin,
  63. ServerProfile,
  64. ServerRuntimeConfig,
  65. SidebarLink,
  66. ThreadSummary,
  67. TimeFormat,
  68. TimelineEvent,
  69. TimelinePage,
  70. User,
  71. UserSettings,
  72. VideoProcessing,
  73. VideoProcessingStatus,
  74. VideoVariant,
  75. ViewerUser,
  76. )
  77. __all__ = [
  78. "Bot",
  79. "BotError",
  80. "ChattoClient",
  81. "ChattoError",
  82. "ChattoConnectError",
  83. "ChattoAuthError",
  84. "ChattoRealtimeCloseError",
  85. "ChattoRealtimeError",
  86. "RealtimeConnection",
  87. "RealtimeEvent",
  88. "RealtimeSnapshot",
  89. "stream_events",
  90. "ActiveCall",
  91. "AdminMember",
  92. "AdminRole",
  93. "AdminRoomLayoutGroup",
  94. "Asset",
  95. "AssetUpload",
  96. "AssetUploadStatus",
  97. "AssetUrl",
  98. "BotInfo",
  99. "CustomUserStatus",
  100. "DirectoryMember",
  101. "FollowedThread",
  102. "FollowedThreadsPage",
  103. "ImageFitMode",
  104. "ImageTransformOptions",
  105. "LinkPreview",
  106. "Message",
  107. "MessageAttachment",
  108. "MessageReaction",
  109. "Neighbor",
  110. "NotificationLevel",
  111. "NotificationMessageReference",
  112. "NotificationOccurrence",
  113. "NotificationOccurrencesPage",
  114. "NotificationPolicy",
  115. "NotificationPreference",
  116. "NotificationRoomUnreadCount",
  117. "NotificationSignal",
  118. "Page",
  119. "PinnedMessage",
  120. "PinnedMessagesPage",
  121. "PresenceStatus",
  122. "ProviderMetadata",
  123. "Role",
  124. "Room",
  125. "RoomBan",
  126. "RoomDirectoryScope",
  127. "RoomGroup",
  128. "RoomKind",
  129. "RoomSummary",
  130. "RoomThreadingMode",
  131. "RoomViewerState",
  132. "RoomWithViewerState",
  133. "ServerConfig",
  134. "ServerLogin",
  135. "ServerProfile",
  136. "ServerRuntimeConfig",
  137. "SidebarLink",
  138. "ThreadSummary",
  139. "TimeFormat",
  140. "TimelineEvent",
  141. "TimelinePage",
  142. "User",
  143. "UserSettings",
  144. "VideoProcessing",
  145. "VideoProcessingStatus",
  146. "VideoVariant",
  147. "ViewerUser",
  148. ]