simplex 1.2.12__tar.gz → 1.2.13__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.12
3
+ Version: 1.2.13
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.12",
5
+ version="1.2.13",
6
6
  packages=find_packages(),
7
7
  package_data={
8
8
  "simplex": ["browser_agent/dom/*.js"], # Include JS files in the dom directory
@@ -1,4 +1,3 @@
1
- import os
2
1
  import requests
3
2
  import atexit
4
3
 
@@ -23,7 +22,7 @@ class Simplex:
23
22
  self.session_id = None
24
23
  return response.json()
25
24
 
26
- def create_session(self):
25
+ def create_session(self, show_in_console: bool = True):
27
26
  response = requests.post(
28
27
  f"{BASE_URL}/create-session",
29
28
  headers={
@@ -35,6 +34,10 @@ class Simplex:
35
34
  self.session_id = response_json['session_id']
36
35
  livestream_url = response_json['livestream_url']
37
36
 
37
+ if show_in_console:
38
+ print(f"Session created: {self.session_id}")
39
+ print(f"Livestream URL: {livestream_url}")
40
+
38
41
  return self.session_id, livestream_url
39
42
 
40
43
  def goto(self, url: str, cdp_url: str = None):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: simplex
3
- Version: 1.2.12
3
+ Version: 1.2.13
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