| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- """Async Python client library for the Chatto Connect API."""
- from chattolib.client import ChattoClient
- from chattolib.exceptions import ChattoAuthError, ChattoConnectError, ChattoError
- from chattolib.realtime import (
- ChattoRealtimeCloseError,
- ChattoRealtimeError,
- RealtimeConnection,
- RealtimeEvent,
- RealtimeSnapshot,
- stream_events,
- )
- try: # the bot framework needs the optional realtime extra
- from chattolib.bot import Bot, BotError
- except ImportError: # pragma: no cover - realtime extra not installed
- Bot = None # type: ignore[assignment,misc]
- BotError = None # type: ignore[assignment,misc]
- from chattolib.types import (
- ActiveCall,
- AdminMember,
- AdminRole,
- AdminRoomLayoutGroup,
- Asset,
- AssetUpload,
- AssetUploadStatus,
- AssetUrl,
- BotInfo,
- CustomUserStatus,
- DirectoryMember,
- FollowedThread,
- FollowedThreadsPage,
- ImageFitMode,
- ImageTransformOptions,
- LinkPreview,
- Message,
- MessageAttachment,
- MessageReaction,
- Neighbor,
- NotificationLevel,
- NotificationMessageReference,
- NotificationOccurrence,
- NotificationOccurrencesPage,
- NotificationPolicy,
- NotificationPreference,
- NotificationRoomUnreadCount,
- NotificationSignal,
- Page,
- PinnedMessage,
- PinnedMessagesPage,
- PresenceStatus,
- ProviderMetadata,
- Role,
- Room,
- RoomBan,
- RoomDirectoryScope,
- RoomGroup,
- RoomKind,
- RoomSummary,
- RoomThreadingMode,
- RoomViewerState,
- RoomWithViewerState,
- ServerConfig,
- ServerLogin,
- ServerProfile,
- ServerRuntimeConfig,
- SidebarLink,
- ThreadSummary,
- TimeFormat,
- TimelineEvent,
- TimelinePage,
- User,
- UserSettings,
- VideoProcessing,
- VideoProcessingStatus,
- VideoVariant,
- ViewerUser,
- )
- __all__ = [
- "Bot",
- "BotError",
- "ChattoClient",
- "ChattoError",
- "ChattoConnectError",
- "ChattoAuthError",
- "ChattoRealtimeCloseError",
- "ChattoRealtimeError",
- "RealtimeConnection",
- "RealtimeEvent",
- "RealtimeSnapshot",
- "stream_events",
- "ActiveCall",
- "AdminMember",
- "AdminRole",
- "AdminRoomLayoutGroup",
- "Asset",
- "AssetUpload",
- "AssetUploadStatus",
- "AssetUrl",
- "BotInfo",
- "CustomUserStatus",
- "DirectoryMember",
- "FollowedThread",
- "FollowedThreadsPage",
- "ImageFitMode",
- "ImageTransformOptions",
- "LinkPreview",
- "Message",
- "MessageAttachment",
- "MessageReaction",
- "Neighbor",
- "NotificationLevel",
- "NotificationMessageReference",
- "NotificationOccurrence",
- "NotificationOccurrencesPage",
- "NotificationPolicy",
- "NotificationPreference",
- "NotificationRoomUnreadCount",
- "NotificationSignal",
- "Page",
- "PinnedMessage",
- "PinnedMessagesPage",
- "PresenceStatus",
- "ProviderMetadata",
- "Role",
- "Room",
- "RoomBan",
- "RoomDirectoryScope",
- "RoomGroup",
- "RoomKind",
- "RoomSummary",
- "RoomThreadingMode",
- "RoomViewerState",
- "RoomWithViewerState",
- "ServerConfig",
- "ServerLogin",
- "ServerProfile",
- "ServerRuntimeConfig",
- "SidebarLink",
- "ThreadSummary",
- "TimeFormat",
- "TimelineEvent",
- "TimelinePage",
- "User",
- "UserSettings",
- "VideoProcessing",
- "VideoProcessingStatus",
- "VideoVariant",
- "ViewerUser",
- ]
|