simplex 1.2.14__py3-none-any.whl → 1.2.16__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.
Potentially problematic release.
This version of simplex might be problematic. Click here for more details.
- simplex/cli.py +1 -1
- simplex/simplex.py +9 -5
- {simplex-1.2.14.dist-info → simplex-1.2.16.dist-info}/METADATA +1 -1
- simplex-1.2.16.dist-info/RECORD +11 -0
- simplex-1.2.14.dist-info/RECORD +0 -11
- {simplex-1.2.14.dist-info → simplex-1.2.16.dist-info}/LICENSE +0 -0
- {simplex-1.2.14.dist-info → simplex-1.2.16.dist-info}/WHEEL +0 -0
- {simplex-1.2.14.dist-info → simplex-1.2.16.dist-info}/entry_points.txt +0 -0
- {simplex-1.2.14.dist-info → simplex-1.2.16.dist-info}/top_level.txt +0 -0
simplex/cli.py
CHANGED
|
@@ -62,7 +62,7 @@ def login(website):
|
|
|
62
62
|
website = 'https://' + website
|
|
63
63
|
|
|
64
64
|
animated_print(f"[SIMPLEX] Creating login session for {website}")
|
|
65
|
-
result = simplex.
|
|
65
|
+
result = simplex.create_login_session(website)
|
|
66
66
|
|
|
67
67
|
if result.get('succeeded'):
|
|
68
68
|
# Open the login URL in a new browser tab
|
simplex/simplex.py
CHANGED
|
@@ -37,7 +37,7 @@ class Simplex:
|
|
|
37
37
|
if show_in_console:
|
|
38
38
|
print(f"Livestream URL: {livestream_url}")
|
|
39
39
|
|
|
40
|
-
return
|
|
40
|
+
return livestream_url
|
|
41
41
|
|
|
42
42
|
def goto(self, url: str, cdp_url: str = None):
|
|
43
43
|
if not cdp_url and not self.session_id:
|
|
@@ -229,9 +229,9 @@ class Simplex:
|
|
|
229
229
|
)
|
|
230
230
|
return response.json()
|
|
231
231
|
|
|
232
|
-
def
|
|
232
|
+
def create_login_session(self, url: str):
|
|
233
233
|
response = requests.post(
|
|
234
|
-
f"{BASE_URL}/
|
|
234
|
+
f"{BASE_URL}/create_login_session",
|
|
235
235
|
headers={
|
|
236
236
|
'x-api-key': self.api_key
|
|
237
237
|
},
|
|
@@ -268,7 +268,7 @@ class Simplex:
|
|
|
268
268
|
raise ValueError(f"Must call create_session before calling action click_and_upload with element_description='{element_description}'")
|
|
269
269
|
|
|
270
270
|
files = {
|
|
271
|
-
'
|
|
271
|
+
'file': open(file_path, 'rb')
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
data = {
|
|
@@ -325,4 +325,8 @@ class Simplex:
|
|
|
325
325
|
},
|
|
326
326
|
data=data
|
|
327
327
|
)
|
|
328
|
-
|
|
328
|
+
response_json = response.json()
|
|
329
|
+
if response_json['succeeded']:
|
|
330
|
+
return True, response_json['reasoning']
|
|
331
|
+
else:
|
|
332
|
+
return False, response_json['error']
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
simplex/__init__.py,sha256=1mbM4XUk0FNW161WOkM4ayC1s_QSsaBEls6PZ0iBScY,74
|
|
2
|
+
simplex/cli.py,sha256=qzhrD9vMOZUImjWG9rF7NIkEtugEW959esQDdscNKZk,2642
|
|
3
|
+
simplex/simplex.py,sha256=nyuenKd2XZfxwJdMcSkZic3K75Qx_s4O-MEWud2KoWg,10028
|
|
4
|
+
simplex/deploy/__init__.py,sha256=_JQ81F_Nu7hSAfMA691gzs6a4-8oZ-buJ9h3Au12BKw,96
|
|
5
|
+
simplex/deploy/push.py,sha256=hRAbtFZaECKnBljaOLQ5nzJ6hk7tZgc1c7QdgxKQFoY,6123
|
|
6
|
+
simplex-1.2.16.dist-info/LICENSE,sha256=Xh0SJjYZfNI71pCNMB40aKlBLLuOB0blx5xkTtufFNQ,1075
|
|
7
|
+
simplex-1.2.16.dist-info/METADATA,sha256=m2hIelSgcu31Od6X5YU0Sc2Z7rHxeYxewMkX-ikNrHs,1350
|
|
8
|
+
simplex-1.2.16.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
9
|
+
simplex-1.2.16.dist-info/entry_points.txt,sha256=3veL2w3c5vxb3dm8I_M8Fs-370n1ZnvD8uu1nSsL7z8,45
|
|
10
|
+
simplex-1.2.16.dist-info/top_level.txt,sha256=cbMH1bYpN0A3gP-ecibPRHasHoqB-01T_2BUFS8p0CE,8
|
|
11
|
+
simplex-1.2.16.dist-info/RECORD,,
|
simplex-1.2.14.dist-info/RECORD
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
simplex/__init__.py,sha256=1mbM4XUk0FNW161WOkM4ayC1s_QSsaBEls6PZ0iBScY,74
|
|
2
|
-
simplex/cli.py,sha256=yirCLDIF7u0d6LIDY2WWZ5IJJrlxdNsGv9B3H8nh34U,2643
|
|
3
|
-
simplex/simplex.py,sha256=gNllsmKqeVE8H4HAfjglO2BVOdDY8_Y6SmqzfBhy214,9888
|
|
4
|
-
simplex/deploy/__init__.py,sha256=_JQ81F_Nu7hSAfMA691gzs6a4-8oZ-buJ9h3Au12BKw,96
|
|
5
|
-
simplex/deploy/push.py,sha256=hRAbtFZaECKnBljaOLQ5nzJ6hk7tZgc1c7QdgxKQFoY,6123
|
|
6
|
-
simplex-1.2.14.dist-info/LICENSE,sha256=Xh0SJjYZfNI71pCNMB40aKlBLLuOB0blx5xkTtufFNQ,1075
|
|
7
|
-
simplex-1.2.14.dist-info/METADATA,sha256=1NaEbrSP6GFe8BnNE2hUV36OWinBSMo0sixg49UcVSQ,1350
|
|
8
|
-
simplex-1.2.14.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
9
|
-
simplex-1.2.14.dist-info/entry_points.txt,sha256=3veL2w3c5vxb3dm8I_M8Fs-370n1ZnvD8uu1nSsL7z8,45
|
|
10
|
-
simplex-1.2.14.dist-info/top_level.txt,sha256=cbMH1bYpN0A3gP-ecibPRHasHoqB-01T_2BUFS8p0CE,8
|
|
11
|
-
simplex-1.2.14.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|