zapostit-api 0.2.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.
- zapostit/__init__.py +86 -0
- zapostit/client.py +886 -0
- zapostit/codec.py +295 -0
- zapostit/entities.py +80 -0
- zapostit/errors.py +51 -0
- zapostit/homepage.py +174 -0
- zapostit/mappers.py +323 -0
- zapostit/media.py +216 -0
- zapostit/models.py +322 -0
- zapostit/py.typed +1 -0
- zapostit/transport.py +574 -0
- zapostit_api-0.2.0.dist-info/METADATA +205 -0
- zapostit_api-0.2.0.dist-info/RECORD +15 -0
- zapostit_api-0.2.0.dist-info/WHEEL +4 -0
- zapostit_api-0.2.0.dist-info/licenses/LICENSE +21 -0
zapostit/__init__.py
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"""типизированный клиент для zapostit"""
|
|
2
|
+
|
|
3
|
+
from .client import AsyncZapostit, ReactionEntityType, ReactionStatus, Zapostit
|
|
4
|
+
from .codec import UNDEFINED_VALUE, DevalueCodec, UndefinedType
|
|
5
|
+
from .entities import EntityParser
|
|
6
|
+
from .errors import (
|
|
7
|
+
ApiError,
|
|
8
|
+
AuthenticationError,
|
|
9
|
+
CloudflareChallengeError,
|
|
10
|
+
DecodeError,
|
|
11
|
+
NotFoundError,
|
|
12
|
+
RateLimitError,
|
|
13
|
+
ZapostitError,
|
|
14
|
+
)
|
|
15
|
+
from .homepage import HomepageParser
|
|
16
|
+
from .media import MediaUrlResolver
|
|
17
|
+
from .models import (
|
|
18
|
+
Author,
|
|
19
|
+
AuthSession,
|
|
20
|
+
AuthUser,
|
|
21
|
+
Comment,
|
|
22
|
+
CommentAuthor,
|
|
23
|
+
CommentPage,
|
|
24
|
+
CommentThread,
|
|
25
|
+
CreatedComment,
|
|
26
|
+
HomepageInfo,
|
|
27
|
+
HomepageLink,
|
|
28
|
+
HomepageSection,
|
|
29
|
+
MediaAsset,
|
|
30
|
+
MediaVariant,
|
|
31
|
+
Message,
|
|
32
|
+
Page,
|
|
33
|
+
Poll,
|
|
34
|
+
PollAnswer,
|
|
35
|
+
PollAnswerResult,
|
|
36
|
+
PollResults,
|
|
37
|
+
Post,
|
|
38
|
+
TextLink,
|
|
39
|
+
)
|
|
40
|
+
from .transport import AsyncTransport, RetryPolicy, Transport
|
|
41
|
+
|
|
42
|
+
__all__ = [
|
|
43
|
+
"UNDEFINED_VALUE",
|
|
44
|
+
"ApiError",
|
|
45
|
+
"AsyncTransport",
|
|
46
|
+
"AsyncZapostit",
|
|
47
|
+
"AuthSession",
|
|
48
|
+
"AuthUser",
|
|
49
|
+
"AuthenticationError",
|
|
50
|
+
"Author",
|
|
51
|
+
"CloudflareChallengeError",
|
|
52
|
+
"Comment",
|
|
53
|
+
"CommentAuthor",
|
|
54
|
+
"CommentPage",
|
|
55
|
+
"CommentThread",
|
|
56
|
+
"CreatedComment",
|
|
57
|
+
"DecodeError",
|
|
58
|
+
"DevalueCodec",
|
|
59
|
+
"EntityParser",
|
|
60
|
+
"HomepageInfo",
|
|
61
|
+
"HomepageLink",
|
|
62
|
+
"HomepageParser",
|
|
63
|
+
"HomepageSection",
|
|
64
|
+
"MediaAsset",
|
|
65
|
+
"MediaUrlResolver",
|
|
66
|
+
"MediaVariant",
|
|
67
|
+
"Message",
|
|
68
|
+
"NotFoundError",
|
|
69
|
+
"Page",
|
|
70
|
+
"Poll",
|
|
71
|
+
"PollAnswer",
|
|
72
|
+
"PollAnswerResult",
|
|
73
|
+
"PollResults",
|
|
74
|
+
"Post",
|
|
75
|
+
"RateLimitError",
|
|
76
|
+
"ReactionEntityType",
|
|
77
|
+
"ReactionStatus",
|
|
78
|
+
"RetryPolicy",
|
|
79
|
+
"TextLink",
|
|
80
|
+
"Transport",
|
|
81
|
+
"UndefinedType",
|
|
82
|
+
"Zapostit",
|
|
83
|
+
"ZapostitError",
|
|
84
|
+
]
|
|
85
|
+
|
|
86
|
+
__version__ = "0.2.0"
|