max-library 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- max_library/__init__.py +53 -0
- max_library/client.py +669 -0
- max_library/exceptions.py +54 -0
- max_library/filters/__init__.py +103 -0
- max_library/filters/base.py +93 -0
- max_library/filters/builtin.py +163 -0
- max_library/models/__init__.py +26 -0
- max_library/models/attachment.py +63 -0
- max_library/models/base.py +14 -0
- max_library/models/chat.py +37 -0
- max_library/models/contact.py +75 -0
- max_library/models/event.py +15 -0
- max_library/models/message.py +133 -0
- max_library/models/reaction.py +31 -0
- max_library/models/user.py +43 -0
- max_library/transport/__init__.py +6 -0
- max_library/transport/websocket.py +340 -0
- max_library-0.1.0.dist-info/METADATA +217 -0
- max_library-0.1.0.dist-info/RECORD +22 -0
- max_library-0.1.0.dist-info/WHEEL +5 -0
- max_library-0.1.0.dist-info/licenses/LICENSE +21 -0
- max_library-0.1.0.dist-info/top_level.txt +1 -0
max_library/__init__.py
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"""
|
|
2
|
+
max-client: Modern Async Python SDK for MAX Messenger (OneMe).
|
|
3
|
+
"""
|
|
4
|
+
from max_library.client import MaxClient
|
|
5
|
+
from max_library.exceptions import (
|
|
6
|
+
MaxError,
|
|
7
|
+
MaxAPIError,
|
|
8
|
+
MaxConnectionError,
|
|
9
|
+
MaxTimeoutError,
|
|
10
|
+
AuthError,
|
|
11
|
+
VerifyCodeWrong,
|
|
12
|
+
UserNotFoundError,
|
|
13
|
+
)
|
|
14
|
+
from max_library.filters import filters, Filter
|
|
15
|
+
from max_library.models import (
|
|
16
|
+
Attachment,
|
|
17
|
+
Chat,
|
|
18
|
+
Contact,
|
|
19
|
+
IncomingEvent,
|
|
20
|
+
Message,
|
|
21
|
+
MessageLink,
|
|
22
|
+
Name,
|
|
23
|
+
ReactionCounter,
|
|
24
|
+
Reactions,
|
|
25
|
+
User,
|
|
26
|
+
EMOJIS,
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
__version__ = "0.1.0"
|
|
30
|
+
|
|
31
|
+
__all__ = [
|
|
32
|
+
"MaxClient",
|
|
33
|
+
"filters",
|
|
34
|
+
"Filter",
|
|
35
|
+
"MaxError",
|
|
36
|
+
"MaxAPIError",
|
|
37
|
+
"MaxConnectionError",
|
|
38
|
+
"MaxTimeoutError",
|
|
39
|
+
"AuthError",
|
|
40
|
+
"VerifyCodeWrong",
|
|
41
|
+
"UserNotFoundError",
|
|
42
|
+
"Attachment",
|
|
43
|
+
"Chat",
|
|
44
|
+
"Contact",
|
|
45
|
+
"IncomingEvent",
|
|
46
|
+
"Message",
|
|
47
|
+
"MessageLink",
|
|
48
|
+
"Name",
|
|
49
|
+
"ReactionCounter",
|
|
50
|
+
"Reactions",
|
|
51
|
+
"User",
|
|
52
|
+
"EMOJIS",
|
|
53
|
+
]
|