postdom 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.
- postdom/__init__.py +138 -0
- postdom/_client.py +1060 -0
- postdom/_contract.py +188 -0
- postdom/_errors.py +151 -0
- postdom/_models.py +257 -0
- postdom/py.typed +1 -0
- postdom-0.1.0.dist-info/METADATA +113 -0
- postdom-0.1.0.dist-info/RECORD +9 -0
- postdom-0.1.0.dist-info/WHEEL +4 -0
postdom/__init__.py
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"""Postdom Python SDK."""
|
|
2
|
+
|
|
3
|
+
from ._client import AsyncPostdom, Postdom
|
|
4
|
+
from ._contract import (
|
|
5
|
+
DEFAULT_BASE_URL,
|
|
6
|
+
MEDIA_UPLOAD_STATUSES,
|
|
7
|
+
METRIC_AVAILABILITY_STATES,
|
|
8
|
+
OPERATIONS,
|
|
9
|
+
PERFORMANCE_METRICS,
|
|
10
|
+
PERFORMANCE_WINDOWS,
|
|
11
|
+
PLATFORM_LIMITS,
|
|
12
|
+
POLICY_VISIBILITY_OPTIONS,
|
|
13
|
+
POST_STATUSES,
|
|
14
|
+
POSTDOM_PLATFORMS,
|
|
15
|
+
PUBLISH_STATUSES,
|
|
16
|
+
SDK_VERSION,
|
|
17
|
+
SETTLED_POST_STATUSES,
|
|
18
|
+
TARGET_SETTINGS_KEYS,
|
|
19
|
+
TERMINAL_POST_STATUSES,
|
|
20
|
+
MediaUploadStatus,
|
|
21
|
+
MetricAvailability,
|
|
22
|
+
PerformanceMetric,
|
|
23
|
+
PerformanceWindow,
|
|
24
|
+
Platform,
|
|
25
|
+
PostStatus,
|
|
26
|
+
PublishStatus,
|
|
27
|
+
)
|
|
28
|
+
from ._errors import (
|
|
29
|
+
PostdomAPIError,
|
|
30
|
+
PostdomAuthenticationError,
|
|
31
|
+
PostdomBillingError,
|
|
32
|
+
PostdomConflictError,
|
|
33
|
+
PostdomConnectionError,
|
|
34
|
+
PostdomError,
|
|
35
|
+
PostdomHumanRouteError,
|
|
36
|
+
PostdomLockedError,
|
|
37
|
+
PostdomNotFoundError,
|
|
38
|
+
PostdomPermissionError,
|
|
39
|
+
PostdomRateLimitError,
|
|
40
|
+
PostdomScopeError,
|
|
41
|
+
PostdomServerError,
|
|
42
|
+
PostdomTimeoutError,
|
|
43
|
+
PostdomValidationError,
|
|
44
|
+
api_error_from_response,
|
|
45
|
+
parse_retry_after_seconds,
|
|
46
|
+
)
|
|
47
|
+
from ._models import (
|
|
48
|
+
AccountPerformanceResponse,
|
|
49
|
+
AccountPolicy,
|
|
50
|
+
BestPostsResponse,
|
|
51
|
+
BillingStatus,
|
|
52
|
+
ConnectAccountResponse,
|
|
53
|
+
LearningDigest,
|
|
54
|
+
MediaStatusResponse,
|
|
55
|
+
MediaUploadContract,
|
|
56
|
+
MetricAvailabilityDetail,
|
|
57
|
+
Plan,
|
|
58
|
+
Post,
|
|
59
|
+
PostdomAccount,
|
|
60
|
+
PostdomOptions,
|
|
61
|
+
PostEligibility,
|
|
62
|
+
PostPerformanceResponse,
|
|
63
|
+
PostPublish,
|
|
64
|
+
PostTarget,
|
|
65
|
+
PublishSubmission,
|
|
66
|
+
UploadMediaResult,
|
|
67
|
+
WorkspaceBrief,
|
|
68
|
+
WorkspaceStatus,
|
|
69
|
+
WorkspaceStatusAccount,
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
__version__ = SDK_VERSION
|
|
73
|
+
|
|
74
|
+
__all__ = [
|
|
75
|
+
"DEFAULT_BASE_URL",
|
|
76
|
+
"METRIC_AVAILABILITY_STATES",
|
|
77
|
+
"MEDIA_UPLOAD_STATUSES",
|
|
78
|
+
"OPERATIONS",
|
|
79
|
+
"PERFORMANCE_METRICS",
|
|
80
|
+
"PERFORMANCE_WINDOWS",
|
|
81
|
+
"PLATFORM_LIMITS",
|
|
82
|
+
"POLICY_VISIBILITY_OPTIONS",
|
|
83
|
+
"POST_STATUSES",
|
|
84
|
+
"POSTDOM_PLATFORMS",
|
|
85
|
+
"PUBLISH_STATUSES",
|
|
86
|
+
"SDK_VERSION",
|
|
87
|
+
"SETTLED_POST_STATUSES",
|
|
88
|
+
"TARGET_SETTINGS_KEYS",
|
|
89
|
+
"TERMINAL_POST_STATUSES",
|
|
90
|
+
"AccountPerformanceResponse",
|
|
91
|
+
"AccountPolicy",
|
|
92
|
+
"AsyncPostdom",
|
|
93
|
+
"BestPostsResponse",
|
|
94
|
+
"BillingStatus",
|
|
95
|
+
"ConnectAccountResponse",
|
|
96
|
+
"LearningDigest",
|
|
97
|
+
"MediaUploadStatus",
|
|
98
|
+
"MediaStatusResponse",
|
|
99
|
+
"MediaUploadContract",
|
|
100
|
+
"MetricAvailability",
|
|
101
|
+
"MetricAvailabilityDetail",
|
|
102
|
+
"PerformanceMetric",
|
|
103
|
+
"PerformanceWindow",
|
|
104
|
+
"Plan",
|
|
105
|
+
"Platform",
|
|
106
|
+
"Post",
|
|
107
|
+
"PostEligibility",
|
|
108
|
+
"PostPerformanceResponse",
|
|
109
|
+
"PostPublish",
|
|
110
|
+
"PostStatus",
|
|
111
|
+
"PostTarget",
|
|
112
|
+
"Postdom",
|
|
113
|
+
"PostdomAPIError",
|
|
114
|
+
"PostdomAccount",
|
|
115
|
+
"PostdomAuthenticationError",
|
|
116
|
+
"PostdomBillingError",
|
|
117
|
+
"PostdomConflictError",
|
|
118
|
+
"PostdomConnectionError",
|
|
119
|
+
"PostdomError",
|
|
120
|
+
"PostdomHumanRouteError",
|
|
121
|
+
"PostdomLockedError",
|
|
122
|
+
"PostdomNotFoundError",
|
|
123
|
+
"PostdomOptions",
|
|
124
|
+
"PostdomPermissionError",
|
|
125
|
+
"PostdomRateLimitError",
|
|
126
|
+
"PostdomScopeError",
|
|
127
|
+
"PostdomServerError",
|
|
128
|
+
"PostdomTimeoutError",
|
|
129
|
+
"PostdomValidationError",
|
|
130
|
+
"PublishSubmission",
|
|
131
|
+
"PublishStatus",
|
|
132
|
+
"UploadMediaResult",
|
|
133
|
+
"WorkspaceBrief",
|
|
134
|
+
"WorkspaceStatus",
|
|
135
|
+
"WorkspaceStatusAccount",
|
|
136
|
+
"api_error_from_response",
|
|
137
|
+
"parse_retry_after_seconds",
|
|
138
|
+
]
|