mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-09-17 16:46:29 +00:00
* core: do not commit refused name changes * feat(python): add error base and missing commands * feat(python): let callers drive startup themselves * style(python): satisfy the linter, skip generated types * feat(python): expose the message of a command error * core: update query plans * core: fix the batch limit parse error on GHC 8.10 * feat(python): reject profile images no client can render
74 lines
1.4 KiB
Python
74 lines
1.4 KiB
Python
"""SimpleX Chat — Python client library for chat bots."""
|
|
|
|
from . import util as util # re-export the util namespace
|
|
from ._version import __version__
|
|
from .api import (
|
|
ChatApi,
|
|
ChatCommandError,
|
|
ConnReqType,
|
|
ContactAlreadyExistsError,
|
|
Db,
|
|
PostgresDb,
|
|
SqliteDb,
|
|
)
|
|
from .bot import (
|
|
Bot,
|
|
BotCommand,
|
|
BotProfile,
|
|
ChatMessage,
|
|
Client,
|
|
CommandHandler,
|
|
EventHandler,
|
|
FileMessage,
|
|
ImageMessage,
|
|
LinkMessage,
|
|
Message,
|
|
MessageHandler,
|
|
Middleware,
|
|
ParsedCommand,
|
|
Profile,
|
|
ReportMessage,
|
|
TextMessage,
|
|
UnknownMessage,
|
|
VideoMessage,
|
|
VoiceMessage,
|
|
)
|
|
from .core import ChatAPIError, ChatError, ChatInitError, CryptoArgs, MigrationConfirmation
|
|
|
|
__all__ = [
|
|
"Bot",
|
|
"BotCommand",
|
|
"BotProfile",
|
|
"ChatAPIError",
|
|
"ChatApi",
|
|
"ChatCommandError",
|
|
"ChatError",
|
|
"ChatInitError",
|
|
"ChatMessage",
|
|
"Client",
|
|
"CommandHandler",
|
|
"ConnReqType",
|
|
"ContactAlreadyExistsError",
|
|
"CryptoArgs",
|
|
"Db",
|
|
"EventHandler",
|
|
"FileMessage",
|
|
"ImageMessage",
|
|
"LinkMessage",
|
|
"Message",
|
|
"MessageHandler",
|
|
"Middleware",
|
|
"MigrationConfirmation",
|
|
"ParsedCommand",
|
|
"PostgresDb",
|
|
"Profile",
|
|
"ReportMessage",
|
|
"SqliteDb",
|
|
"TextMessage",
|
|
"UnknownMessage",
|
|
"VideoMessage",
|
|
"VoiceMessage",
|
|
"__version__",
|
|
"util",
|
|
]
|