simplex 1.2.43__tar.gz → 1.2.45__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.43
3
+ Version: 1.2.45
4
4
  Summary: Official Python SDK for Simplex API
5
5
  Home-page: https://simplex.sh
6
6
  Author: Simplex Labs, Inc.
@@ -17,7 +17,7 @@ class PostInstallCommand(install):
17
17
 
18
18
  setup(
19
19
  name="simplex",
20
- version="1.2.43",
20
+ version="1.2.45",
21
21
  packages=find_packages(),
22
22
  package_data={
23
23
  "simplex": ["browser_agent/dom/*.js"], # Include JS files in the dom directory
@@ -64,13 +64,12 @@ class Simplex:
64
64
  self.pw = None
65
65
 
66
66
  def close_session(self):
67
- try:
68
- if self.pw_browser:
69
- try:
70
- self.pw_browser.close()
71
- self.pw_browser = None
72
- except Exception as e:
73
- print(f"Failed to close pw_browser: {e}")
67
+ if self.pw_browser:
68
+ try:
69
+ self.pw_browser.close()
70
+ self.pw_browser = None
71
+ except Exception as e:
72
+ print(f"Failed to close pw_browser: {e}")
74
73
  if self.pw:
75
74
  try:
76
75
  self.pw.stop()
@@ -136,7 +135,8 @@ class Simplex:
136
135
 
137
136
  # Start Playwright without using context manager
138
137
  self.pw = sync_playwright().start()
139
- self.pw_browser = self.pw.chromium.connect_over_cdp(response_json['connect_url'])
138
+ self.connect_url = response_json['connect_url']
139
+ # self.pw_browser = self.pw.chromium.connect_over_cdp(response_json['connect_url'])
140
140
 
141
141
  if show_in_console:
142
142
  print(f"Livestream URL: {livestream_url}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: simplex
3
- Version: 1.2.43
3
+ Version: 1.2.45
4
4
  Summary: Official Python SDK for Simplex API
5
5
  Home-page: https://simplex.sh
6
6
  Author: Simplex Labs, Inc.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes