simplex 1.2.35__py3-none-any.whl → 1.2.37__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/simplex.py CHANGED
@@ -82,18 +82,18 @@ class Simplex:
82
82
  else:
83
83
  raise ValueError(f"Failed to close session: {response.json()['error']}")
84
84
 
85
- def create_session(self, show_in_console: Optional[bool] = True, proxies: Optional[bool] = True):
85
+ def create_session(self, show_in_console: Optional[bool] = True, proxies: Optional[bool] = True, session_data: Optional[str] = None):
86
86
  response = requests.post(
87
87
  f"{BASE_URL}/create_session",
88
88
  headers={
89
89
  'x-api-key': self.api_key
90
90
  },
91
- data={'proxies': proxies}
91
+ data={'proxies': proxies, 'session_data': session_data}
92
92
  )
93
93
  # Check for non-200 status code
94
94
  if response.status_code != 200:
95
95
  raise ValueError(f"Create session request failed with status code {response.status_code}: {response.text}")
96
-
96
+
97
97
  response_json = response.json()
98
98
  if 'session_id' not in response_json:
99
99
  raise ValueError(f"It looks like the session wasn't created successfully. Did you set your api_key when creating the Simplex class?")
@@ -103,7 +103,7 @@ class Simplex:
103
103
  if show_in_console:
104
104
  print(f"Livestream URL: {livestream_url}")
105
105
 
106
- return livestream_url
106
+ return self.session_id, livestream_url
107
107
 
108
108
  def goto(self, url: str, cdp_url: str = None):
109
109
  if not cdp_url and not self.session_id:
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: simplex
3
- Version: 1.2.35
3
+ Version: 1.2.37
4
4
  Summary: Official Python SDK for Simplex API
5
5
  Home-page: https://simplex.sh
6
6
  Author: Simplex Labs, Inc.
@@ -17,6 +17,16 @@ Requires-Dist: colorama
17
17
  Requires-Dist: requests
18
18
  Requires-Dist: python-dotenv
19
19
  Requires-Dist: click
20
+ Requires-Dist: playwright
21
+ Dynamic: author
22
+ Dynamic: author-email
23
+ Dynamic: classifier
24
+ Dynamic: description
25
+ Dynamic: description-content-type
26
+ Dynamic: home-page
27
+ Dynamic: requires-dist
28
+ Dynamic: requires-python
29
+ Dynamic: summary
20
30
 
21
31
  # Simplex AI Python SDK
22
32
 
@@ -0,0 +1,11 @@
1
+ simplex/__init__.py,sha256=L_5i__xt_ZDkr6e-Wx9cr84t9sXpioOT7j01NJYJCTE,75
2
+ simplex/cli.py,sha256=DxZMiX-mqhy1cWJhf75YQs49GfZediueFuxyEhBFpLk,2324
3
+ simplex/simplex.py,sha256=8JcmId0SQ32GamEAQTWQlafQpa8oswmXM6E3Plfn-9k,21853
4
+ simplex/deploy/__init__.py,sha256=_JQ81F_Nu7hSAfMA691gzs6a4-8oZ-buJ9h3Au12BKw,96
5
+ simplex/deploy/push.py,sha256=hRAbtFZaECKnBljaOLQ5nzJ6hk7tZgc1c7QdgxKQFoY,6123
6
+ simplex-1.2.37.dist-info/LICENSE,sha256=Xh0SJjYZfNI71pCNMB40aKlBLLuOB0blx5xkTtufFNQ,1075
7
+ simplex-1.2.37.dist-info/METADATA,sha256=DTpFDlzDtuQsYAjR-2I4CmGUlObOq3MD814DTqCAQSs,964
8
+ simplex-1.2.37.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
9
+ simplex-1.2.37.dist-info/entry_points.txt,sha256=3veL2w3c5vxb3dm8I_M8Fs-370n1ZnvD8uu1nSsL7z8,45
10
+ simplex-1.2.37.dist-info/top_level.txt,sha256=cbMH1bYpN0A3gP-ecibPRHasHoqB-01T_2BUFS8p0CE,8
11
+ simplex-1.2.37.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.1.0)
2
+ Generator: setuptools (75.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,11 +0,0 @@
1
- simplex/__init__.py,sha256=L_5i__xt_ZDkr6e-Wx9cr84t9sXpioOT7j01NJYJCTE,75
2
- simplex/cli.py,sha256=DxZMiX-mqhy1cWJhf75YQs49GfZediueFuxyEhBFpLk,2324
3
- simplex/simplex.py,sha256=ijEDiGkQhDMmeRXQVwyNa1m9e1SM-HPbDr3XSy0l_ZY,21782
4
- simplex/deploy/__init__.py,sha256=_JQ81F_Nu7hSAfMA691gzs6a4-8oZ-buJ9h3Au12BKw,96
5
- simplex/deploy/push.py,sha256=hRAbtFZaECKnBljaOLQ5nzJ6hk7tZgc1c7QdgxKQFoY,6123
6
- simplex-1.2.35.dist-info/LICENSE,sha256=Xh0SJjYZfNI71pCNMB40aKlBLLuOB0blx5xkTtufFNQ,1075
7
- simplex-1.2.35.dist-info/METADATA,sha256=LgkI9rOaiV9i6uPFEvHJXq4FJzZJkjBYHEbDeCb6flA,741
8
- simplex-1.2.35.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
9
- simplex-1.2.35.dist-info/entry_points.txt,sha256=3veL2w3c5vxb3dm8I_M8Fs-370n1ZnvD8uu1nSsL7z8,45
10
- simplex-1.2.35.dist-info/top_level.txt,sha256=cbMH1bYpN0A3gP-ecibPRHasHoqB-01T_2BUFS8p0CE,8
11
- simplex-1.2.35.dist-info/RECORD,,