automdev 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.
autom/__init__.py ADDED
@@ -0,0 +1,61 @@
1
+ """Official Python SDK for the Autom API."""
2
+
3
+ from ._endpoints import ENDPOINTS
4
+ from ._version import __version__
5
+ from .client import (
6
+ DEFAULT_BASE_URL,
7
+ DEFAULT_CONCURRENCY,
8
+ DEFAULT_RETRY_DELAY,
9
+ DEFAULT_TIMEOUT,
10
+ MAX_RETRIES,
11
+ RETRY_BACKOFF_FACTOR,
12
+ AsyncAutomClient,
13
+ AutomClient,
14
+ )
15
+ from .errors import (
16
+ AutomAPIError,
17
+ AutomConfigurationError,
18
+ AutomError,
19
+ AutomJobTimeoutError,
20
+ AutomResponseDecodingError,
21
+ AutomSerializationError,
22
+ AutomTransportError,
23
+ )
24
+ from .models import (
25
+ APIResponse,
26
+ BatchResult,
27
+ BinaryResponse,
28
+ EndpointDefinition,
29
+ HTTPMethod,
30
+ JsonResponse,
31
+ RawResponse,
32
+ RequestOptions,
33
+ )
34
+
35
+ __all__ = [
36
+ "APIResponse",
37
+ "AsyncAutomClient",
38
+ "BatchResult",
39
+ "BinaryResponse",
40
+ "DEFAULT_BASE_URL",
41
+ "DEFAULT_CONCURRENCY",
42
+ "DEFAULT_RETRY_DELAY",
43
+ "DEFAULT_TIMEOUT",
44
+ "MAX_RETRIES",
45
+ "RETRY_BACKOFF_FACTOR",
46
+ "ENDPOINTS",
47
+ "EndpointDefinition",
48
+ "HTTPMethod",
49
+ "JsonResponse",
50
+ "RawResponse",
51
+ "RequestOptions",
52
+ "AutomAPIError",
53
+ "AutomClient",
54
+ "AutomConfigurationError",
55
+ "AutomError",
56
+ "AutomJobTimeoutError",
57
+ "AutomResponseDecodingError",
58
+ "AutomSerializationError",
59
+ "AutomTransportError",
60
+ "__version__",
61
+ ]
autom/_endpoints.py ADDED
@@ -0,0 +1,200 @@
1
+ """Generated from the Autom OpenAPI document. Do not edit by hand."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from .models import EndpointDefinition
6
+
7
+ ENDPOINTS: dict[str, EndpointDefinition] = {
8
+ "bing_search": EndpointDefinition(
9
+ path="/v1/bing/search",
10
+ methods=(
11
+ "GET",
12
+ "POST",
13
+ ),
14
+ response="json",
15
+ required=("query",),
16
+ ),
17
+ "brave_images": EndpointDefinition(
18
+ path="/v1/brave/images",
19
+ methods=(
20
+ "GET",
21
+ "POST",
22
+ ),
23
+ response="json",
24
+ required=("query",),
25
+ ),
26
+ "brave_search": EndpointDefinition(
27
+ path="/v1/brave/search",
28
+ methods=(
29
+ "GET",
30
+ "POST",
31
+ ),
32
+ response="json",
33
+ required=("query",),
34
+ ),
35
+ "brave_videos": EndpointDefinition(
36
+ path="/v1/brave/videos",
37
+ methods=(
38
+ "GET",
39
+ "POST",
40
+ ),
41
+ response="json",
42
+ required=("query",),
43
+ ),
44
+ "duckduckgo_search": EndpointDefinition(
45
+ path="/v1/duckduckgo/search",
46
+ methods=(
47
+ "GET",
48
+ "POST",
49
+ ),
50
+ response="json",
51
+ required=("query",),
52
+ ),
53
+ "finder_google_countries": EndpointDefinition(
54
+ path="/v1/finder/google-countries",
55
+ methods=("GET",),
56
+ response="json",
57
+ required=("query",),
58
+ ),
59
+ "finder_google_languages": EndpointDefinition(
60
+ path="/v1/finder/google-languages",
61
+ methods=("GET",),
62
+ response="json",
63
+ required=("query",),
64
+ ),
65
+ "finder_google_locations": EndpointDefinition(
66
+ path="/v1/finder/google-locations",
67
+ methods=("GET",),
68
+ response="json",
69
+ required=("query",),
70
+ ),
71
+ "google_images": EndpointDefinition(
72
+ path="/v1/google/images",
73
+ methods=(
74
+ "GET",
75
+ "POST",
76
+ ),
77
+ response="json",
78
+ required=("query",),
79
+ ),
80
+ "google_jobs": EndpointDefinition(
81
+ path="/v1/google/jobs",
82
+ methods=(
83
+ "GET",
84
+ "POST",
85
+ ),
86
+ response="json",
87
+ required=("query",),
88
+ ),
89
+ "google_maps": EndpointDefinition(
90
+ path="/v1/google/maps",
91
+ methods=(
92
+ "GET",
93
+ "POST",
94
+ ),
95
+ response="json",
96
+ required=("query",),
97
+ ),
98
+ "google_news": EndpointDefinition(
99
+ path="/v1/google/news",
100
+ methods=(
101
+ "GET",
102
+ "POST",
103
+ ),
104
+ response="json",
105
+ required=("query",),
106
+ ),
107
+ "google_search": EndpointDefinition(
108
+ path="/v1/google/search",
109
+ methods=(
110
+ "GET",
111
+ "POST",
112
+ ),
113
+ response="json",
114
+ required=("query",),
115
+ ),
116
+ "google_search_ai": EndpointDefinition(
117
+ path="/v1/google/search/ai",
118
+ methods=(
119
+ "GET",
120
+ "POST",
121
+ ),
122
+ response="json",
123
+ required=("query",),
124
+ ),
125
+ "google_search_autocomplete": EndpointDefinition(
126
+ path="/v1/google/search/autocomplete",
127
+ methods=(
128
+ "GET",
129
+ "POST",
130
+ ),
131
+ response="json",
132
+ required=("query",),
133
+ ),
134
+ "google_search_light": EndpointDefinition(
135
+ path="/v1/google/search/light",
136
+ methods=(
137
+ "GET",
138
+ "POST",
139
+ ),
140
+ response="json",
141
+ required=("query",),
142
+ ),
143
+ "google_shopping": EndpointDefinition(
144
+ path="/v1/google/shopping",
145
+ methods=(
146
+ "GET",
147
+ "POST",
148
+ ),
149
+ response="json",
150
+ required=("query",),
151
+ ),
152
+ "google_videos": EndpointDefinition(
153
+ path="/v1/google/videos",
154
+ methods=(
155
+ "GET",
156
+ "POST",
157
+ ),
158
+ response="json",
159
+ required=(
160
+ "query",
161
+ "page",
162
+ ),
163
+ ),
164
+ "jobs": EndpointDefinition(
165
+ path="/v1/jobs/{id}",
166
+ methods=("GET",),
167
+ response="json",
168
+ required=("id",),
169
+ ),
170
+ "search": EndpointDefinition(
171
+ path="/v1/search",
172
+ methods=(
173
+ "GET",
174
+ "POST",
175
+ ),
176
+ response="json",
177
+ required=("query",),
178
+ ),
179
+ "stats": EndpointDefinition(
180
+ path="/v1/stats",
181
+ methods=("GET",),
182
+ response="json",
183
+ required=(),
184
+ ),
185
+ "usage": EndpointDefinition(
186
+ path="/v1/usage",
187
+ methods=("GET",),
188
+ response="json",
189
+ required=(),
190
+ ),
191
+ "yahoo_search": EndpointDefinition(
192
+ path="/v1/yahoo/search",
193
+ methods=(
194
+ "GET",
195
+ "POST",
196
+ ),
197
+ response="json",
198
+ required=("query",),
199
+ ),
200
+ }