simplex 1.2.13__py3-none-any.whl → 1.2.15__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 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.capture_login_session(website)
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
@@ -35,10 +35,9 @@ class Simplex:
35
35
  livestream_url = response_json['livestream_url']
36
36
 
37
37
  if show_in_console:
38
- print(f"Session created: {self.session_id}")
39
38
  print(f"Livestream URL: {livestream_url}")
40
39
 
41
- return self.session_id, livestream_url
40
+ return livestream_url
42
41
 
43
42
  def goto(self, url: str, cdp_url: str = None):
44
43
  if not cdp_url and not self.session_id:
@@ -230,9 +229,9 @@ class Simplex:
230
229
  )
231
230
  return response.json()
232
231
 
233
- def capture_login_session(self, url: str):
232
+ def create_login_session(self, url: str):
234
233
  response = requests.post(
235
- f"{BASE_URL}/capture_login_session",
234
+ f"{BASE_URL}/create_login_session",
236
235
  headers={
237
236
  'x-api-key': self.api_key
238
237
  },
@@ -269,7 +268,7 @@ class Simplex:
269
268
  raise ValueError(f"Must call create_session before calling action click_and_upload with element_description='{element_description}'")
270
269
 
271
270
  files = {
272
- 'zip_file': open(file_path, 'rb')
271
+ 'file': open(file_path, 'rb')
273
272
  }
274
273
 
275
274
  data = {
@@ -326,4 +325,8 @@ class Simplex:
326
325
  },
327
326
  data=data
328
327
  )
329
- return response.json()
328
+ response_json = response.json()
329
+ if response_json['succeeded']:
330
+ return True, response_json['reasoning']
331
+ else:
332
+ return False, response_json['error']
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: simplex
3
- Version: 1.2.13
3
+ Version: 1.2.15
4
4
  Summary: Official Python SDK for Simplex API
5
5
  Home-page: https://simplex.sh
6
6
  Author: Simplex Labs, Inc.
@@ -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.15.dist-info/LICENSE,sha256=Xh0SJjYZfNI71pCNMB40aKlBLLuOB0blx5xkTtufFNQ,1075
7
+ simplex-1.2.15.dist-info/METADATA,sha256=kVwqK6UsDUpdOadxW5urH0OIQzMqNqud-s6_vCKKjnA,1350
8
+ simplex-1.2.15.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
9
+ simplex-1.2.15.dist-info/entry_points.txt,sha256=3veL2w3c5vxb3dm8I_M8Fs-370n1ZnvD8uu1nSsL7z8,45
10
+ simplex-1.2.15.dist-info/top_level.txt,sha256=cbMH1bYpN0A3gP-ecibPRHasHoqB-01T_2BUFS8p0CE,8
11
+ simplex-1.2.15.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- simplex/__init__.py,sha256=1mbM4XUk0FNW161WOkM4ayC1s_QSsaBEls6PZ0iBScY,74
2
- simplex/cli.py,sha256=yirCLDIF7u0d6LIDY2WWZ5IJJrlxdNsGv9B3H8nh34U,2643
3
- simplex/simplex.py,sha256=ecl9A3Kn3FYPRrsPcbBwGz4FKv_ZwjXUrP9a7hH4Muk,9945
4
- simplex/deploy/__init__.py,sha256=_JQ81F_Nu7hSAfMA691gzs6a4-8oZ-buJ9h3Au12BKw,96
5
- simplex/deploy/push.py,sha256=hRAbtFZaECKnBljaOLQ5nzJ6hk7tZgc1c7QdgxKQFoY,6123
6
- simplex-1.2.13.dist-info/LICENSE,sha256=Xh0SJjYZfNI71pCNMB40aKlBLLuOB0blx5xkTtufFNQ,1075
7
- simplex-1.2.13.dist-info/METADATA,sha256=5hcmcXT_hn4qTRaNUuE4AvHvUN7LiluRcJmHyToULgQ,1350
8
- simplex-1.2.13.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
9
- simplex-1.2.13.dist-info/entry_points.txt,sha256=3veL2w3c5vxb3dm8I_M8Fs-370n1ZnvD8uu1nSsL7z8,45
10
- simplex-1.2.13.dist-info/top_level.txt,sha256=cbMH1bYpN0A3gP-ecibPRHasHoqB-01T_2BUFS8p0CE,8
11
- simplex-1.2.13.dist-info/RECORD,,