simplex 1.2.31__tar.gz → 1.2.32__tar.gz
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.
Potentially problematic release.
This version of simplex might be problematic. Click here for more details.
- {simplex-1.2.31 → simplex-1.2.32}/PKG-INFO +1 -1
- {simplex-1.2.31 → simplex-1.2.32}/setup.py +1 -1
- {simplex-1.2.31 → simplex-1.2.32}/simplex/simplex.py +37 -1
- {simplex-1.2.31 → simplex-1.2.32}/simplex.egg-info/PKG-INFO +1 -1
- {simplex-1.2.31 → simplex-1.2.32}/LICENSE +0 -0
- {simplex-1.2.31 → simplex-1.2.32}/README.md +0 -0
- {simplex-1.2.31 → simplex-1.2.32}/pyproject.toml +0 -0
- {simplex-1.2.31 → simplex-1.2.32}/setup.cfg +0 -0
- {simplex-1.2.31 → simplex-1.2.32}/simplex/__init__.py +0 -0
- {simplex-1.2.31 → simplex-1.2.32}/simplex/cli.py +0 -0
- {simplex-1.2.31 → simplex-1.2.32}/simplex/deploy/__init__.py +0 -0
- {simplex-1.2.31 → simplex-1.2.32}/simplex/deploy/push.py +0 -0
- {simplex-1.2.31 → simplex-1.2.32}/simplex.egg-info/SOURCES.txt +0 -0
- {simplex-1.2.31 → simplex-1.2.32}/simplex.egg-info/dependency_links.txt +0 -0
- {simplex-1.2.31 → simplex-1.2.32}/simplex.egg-info/entry_points.txt +0 -0
- {simplex-1.2.31 → simplex-1.2.32}/simplex.egg-info/requires.txt +0 -0
- {simplex-1.2.31 → simplex-1.2.32}/simplex.egg-info/top_level.txt +0 -0
- {simplex-1.2.31 → simplex-1.2.32}/tests/test.py +0 -0
|
@@ -22,7 +22,8 @@ class Simplex:
|
|
|
22
22
|
data={'session_id': self.session_id}
|
|
23
23
|
)
|
|
24
24
|
self.session_id = None
|
|
25
|
-
|
|
25
|
+
if 'succeeded' not in response.json():
|
|
26
|
+
raise ValueError(f"It looks like the close_session action failed to return a response. Did you set your api_key when creating the Simplex class?")
|
|
26
27
|
if response.json()["succeeded"]:
|
|
27
28
|
return
|
|
28
29
|
else:
|
|
@@ -36,6 +37,10 @@ class Simplex:
|
|
|
36
37
|
},
|
|
37
38
|
data={'proxies': proxies}
|
|
38
39
|
)
|
|
40
|
+
# Check for non-200 status code
|
|
41
|
+
if response.status_code != 200:
|
|
42
|
+
raise ValueError(f"Create session request failed with status code {response.status_code}: {response.text}")
|
|
43
|
+
|
|
39
44
|
response_json = response.json()
|
|
40
45
|
if 'session_id' not in response_json:
|
|
41
46
|
raise ValueError(f"It looks like the session wasn't created successfully. Did you set your api_key when creating the Simplex class?")
|
|
@@ -68,6 +73,9 @@ class Simplex:
|
|
|
68
73
|
},
|
|
69
74
|
data=data
|
|
70
75
|
)
|
|
76
|
+
if 'succeeded' not in response.json():
|
|
77
|
+
raise ValueError(f"It looks like the goto action failed to return a response. Did you set your api_key when creating the Simplex class?")
|
|
78
|
+
|
|
71
79
|
if response.json()["succeeded"]:
|
|
72
80
|
return
|
|
73
81
|
else:
|
|
@@ -91,6 +99,8 @@ class Simplex:
|
|
|
91
99
|
},
|
|
92
100
|
data=data
|
|
93
101
|
)
|
|
102
|
+
if 'succeeded' not in response.json():
|
|
103
|
+
raise ValueError(f"It looks like the click action failed to return a response. Did you set your api_key when creating the Simplex class?")
|
|
94
104
|
if response.json()["succeeded"]:
|
|
95
105
|
return response.json()["element_clicked"]
|
|
96
106
|
else:
|
|
@@ -137,6 +147,8 @@ class Simplex:
|
|
|
137
147
|
},
|
|
138
148
|
data=data
|
|
139
149
|
)
|
|
150
|
+
if 'succeeded' not in response.json():
|
|
151
|
+
raise ValueError(f"It looks like the press_enter action failed to return a response. Did you set your api_key when creating the Simplex class?")
|
|
140
152
|
if response.json()["succeeded"]:
|
|
141
153
|
return
|
|
142
154
|
else:
|
|
@@ -160,6 +172,8 @@ class Simplex:
|
|
|
160
172
|
},
|
|
161
173
|
data=data
|
|
162
174
|
)
|
|
175
|
+
if 'succeeded' not in response.json():
|
|
176
|
+
raise ValueError(f"It looks like the press_tab action failed to return a response. Did you set your api_key when creating the Simplex class?")
|
|
163
177
|
if response.json()["succeeded"]:
|
|
164
178
|
return
|
|
165
179
|
else:
|
|
@@ -183,6 +197,8 @@ class Simplex:
|
|
|
183
197
|
},
|
|
184
198
|
data=data
|
|
185
199
|
)
|
|
200
|
+
if 'succeeded' not in response.json():
|
|
201
|
+
raise ValueError(f"It looks like the delete_text action failed to return a response. Did you set your api_key when creating the Simplex class?")
|
|
186
202
|
if response.json()["succeeded"]:
|
|
187
203
|
return
|
|
188
204
|
else:
|
|
@@ -206,6 +222,8 @@ class Simplex:
|
|
|
206
222
|
},
|
|
207
223
|
params=data
|
|
208
224
|
)
|
|
225
|
+
if 'succeeded' not in response.json():
|
|
226
|
+
raise ValueError(f"It looks like the extract_bbox action failed to return a response. Did you set your api_key when creating the Simplex class?")
|
|
209
227
|
if response.json()["succeeded"]:
|
|
210
228
|
return response.json()["bbox"]
|
|
211
229
|
else:
|
|
@@ -229,6 +247,8 @@ class Simplex:
|
|
|
229
247
|
},
|
|
230
248
|
params=data
|
|
231
249
|
)
|
|
250
|
+
if 'succeeded' not in response.json():
|
|
251
|
+
raise ValueError(f"It looks like the extract_text action failed to return a response. Did you set your api_key when creating the Simplex class?")
|
|
232
252
|
if response.json()["succeeded"]:
|
|
233
253
|
return response.json()["text"]
|
|
234
254
|
else:
|
|
@@ -252,6 +272,8 @@ class Simplex:
|
|
|
252
272
|
},
|
|
253
273
|
params=data
|
|
254
274
|
)
|
|
275
|
+
if 'succeeded' not in response.json():
|
|
276
|
+
raise ValueError(f"It looks like the extract_image action failed to return a response. Did you set your api_key when creating the Simplex class?")
|
|
255
277
|
if response.json()["succeeded"]:
|
|
256
278
|
return response.json()["image"]
|
|
257
279
|
else:
|
|
@@ -275,6 +297,8 @@ class Simplex:
|
|
|
275
297
|
},
|
|
276
298
|
data=data
|
|
277
299
|
)
|
|
300
|
+
if 'succeeded' not in response.json():
|
|
301
|
+
raise ValueError(f"It looks like the scroll action failed to return a response. Did you set your api_key when creating the Simplex class?")
|
|
278
302
|
if response.json()["succeeded"]:
|
|
279
303
|
return
|
|
280
304
|
else:
|
|
@@ -298,6 +322,8 @@ class Simplex:
|
|
|
298
322
|
},
|
|
299
323
|
data=data
|
|
300
324
|
)
|
|
325
|
+
if 'succeeded' not in response.json():
|
|
326
|
+
raise ValueError(f"It looks like the wait action failed to return a response. Did you set your api_key when creating the Simplex class?")
|
|
301
327
|
if response.json()["succeeded"]:
|
|
302
328
|
return
|
|
303
329
|
else:
|
|
@@ -311,6 +337,8 @@ class Simplex:
|
|
|
311
337
|
},
|
|
312
338
|
data={'url': url, 'proxies': proxies}
|
|
313
339
|
)
|
|
340
|
+
if 'succeeded' not in response.json():
|
|
341
|
+
raise ValueError(f"It looks like the create_login_session action failed to return a response. Did you set your api_key when creating the Simplex class?")
|
|
314
342
|
if response.json()["succeeded"]:
|
|
315
343
|
return response.json()["login_session_url"]
|
|
316
344
|
else:
|
|
@@ -338,6 +366,8 @@ class Simplex:
|
|
|
338
366
|
},
|
|
339
367
|
data=data
|
|
340
368
|
)
|
|
369
|
+
if 'succeeded' not in response.json():
|
|
370
|
+
raise ValueError(f"It looks like the restore_login_session action failed to return a response. Did you set your api_key when creating the Simplex class?")
|
|
341
371
|
if response.json()["succeeded"]:
|
|
342
372
|
return
|
|
343
373
|
else:
|
|
@@ -365,6 +395,8 @@ class Simplex:
|
|
|
365
395
|
files=files,
|
|
366
396
|
data=data
|
|
367
397
|
)
|
|
398
|
+
if 'succeeded' not in response.json():
|
|
399
|
+
raise ValueError(f"It looks like the click_and_upload action failed to return a response. Did you set your api_key when creating the Simplex class?")
|
|
368
400
|
if response.json()["succeeded"]:
|
|
369
401
|
return
|
|
370
402
|
else:
|
|
@@ -387,6 +419,8 @@ class Simplex:
|
|
|
387
419
|
},
|
|
388
420
|
data=data
|
|
389
421
|
)
|
|
422
|
+
if 'succeeded' not in response.json():
|
|
423
|
+
raise ValueError(f"It looks like the click_and_download action failed to return a response. Did you set your api_key when creating the Simplex class?")
|
|
390
424
|
if response.json()["succeeded"]:
|
|
391
425
|
return response.json()["b64"], response.json()["filename"]
|
|
392
426
|
else:
|
|
@@ -410,6 +444,8 @@ class Simplex:
|
|
|
410
444
|
},
|
|
411
445
|
data=data
|
|
412
446
|
)
|
|
447
|
+
if 'succeeded' not in response.json():
|
|
448
|
+
raise ValueError(f"It looks like the exists action failed to return a response. Did you set your api_key when creating the Simplex class?")
|
|
413
449
|
response_json = response.json()
|
|
414
450
|
if response_json['succeeded']:
|
|
415
451
|
return response_json['exists'], response_json['reasoning']
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|