simplex 1.2.29__tar.gz → 1.2.30__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: simplex
3
- Version: 1.2.29
3
+ Version: 1.2.30
4
4
  Summary: Official Python SDK for Simplex API
5
5
  Home-page: https://simplex.sh
6
6
  Author: Simplex Labs, Inc.
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="simplex",
5
- version="1.2.29",
5
+ version="1.2.30",
6
6
  packages=find_packages(),
7
7
  package_data={
8
8
  "simplex": ["browser_agent/dom/*.js"], # Include JS files in the dom directory
@@ -73,7 +73,7 @@ class Simplex:
73
73
  else:
74
74
  raise ValueError(f"Failed to goto url: {response.json()['error']}")
75
75
 
76
- def click(self, element_description: str, cdp_url: str = None, use_vision: bool = False):
76
+ def click(self, element_description: str, cdp_url: str = None):
77
77
  if not cdp_url and not self.session_id:
78
78
  raise ValueError(f"Must call create_session before calling action click with element_description='{element_description}'")
79
79
 
@@ -84,9 +84,6 @@ class Simplex:
84
84
  else:
85
85
  data['session_id'] = self.session_id
86
86
 
87
- if use_vision:
88
- data['use_vision'] = use_vision
89
-
90
87
  response = requests.post(
91
88
  f"{BASE_URL}/click",
92
89
  headers={
@@ -214,7 +211,7 @@ class Simplex:
214
211
  else:
215
212
  raise ValueError(f"Failed to extract bbox: {response.json()['error']}")
216
213
 
217
- def extract_text(self, element_description: str, cdp_url: str = None, use_vision: bool = False):
214
+ def extract_text(self, element_description: str, cdp_url: str = None):
218
215
  if not cdp_url and not self.session_id:
219
216
  raise ValueError(f"Must call create_session before calling action extract_text with element_description='{element_description}'")
220
217
 
@@ -225,9 +222,6 @@ class Simplex:
225
222
  else:
226
223
  data['session_id'] = self.session_id
227
224
 
228
- if use_vision:
229
- data['use_vision'] = use_vision
230
-
231
225
  response = requests.get(
232
226
  f"{BASE_URL}/extract-text",
233
227
  headers={
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: simplex
3
- Version: 1.2.29
3
+ Version: 1.2.30
4
4
  Summary: Official Python SDK for Simplex API
5
5
  Home-page: https://simplex.sh
6
6
  Author: Simplex Labs, Inc.
@@ -9,14 +9,12 @@ def login():
9
9
  simplex = Simplex(api_key=os.getenv("SIMPLEX_API_KEY"))
10
10
  simplex.create_session(proxies=False)
11
11
  simplex.goto("https://github.com/login")
12
- simplex.wait(3500)
12
+ simplex.wait(1000)
13
13
  # simplex.goto("https://browser-tests-alpha.vercel.app/api/upload-test")
14
14
  # simplex.wait(10)
15
15
  # print(simplex.create_login_session("https://auth.leboncoin.fr/login/"))
16
- print(simplex.press_tab())
17
- print(simplex.type("test@test.com"))
18
- print(simplex.delete_text())
19
- # print(simplex.wait(5000))
16
+ print(simplex.extract_text("footer texts"))
17
+ print(simplex.wait(5000))
20
18
 
21
19
  # simplex.goto("https://dropbox.com/")
22
20
  # simplex.click("Upload or drop")
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes