simplex 1.2.38__tar.gz → 1.2.41__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.
- {simplex-1.2.38 → simplex-1.2.41}/PKG-INFO +2 -11
- {simplex-1.2.38 → simplex-1.2.41}/setup.py +1 -1
- {simplex-1.2.38 → simplex-1.2.41}/simplex/simplex.py +13 -11
- {simplex-1.2.38 → simplex-1.2.41}/simplex.egg-info/PKG-INFO +2 -11
- {simplex-1.2.38 → simplex-1.2.41}/LICENSE +0 -0
- {simplex-1.2.38 → simplex-1.2.41}/README.md +0 -0
- {simplex-1.2.38 → simplex-1.2.41}/pyproject.toml +0 -0
- {simplex-1.2.38 → simplex-1.2.41}/setup.cfg +0 -0
- {simplex-1.2.38 → simplex-1.2.41}/simplex/__init__.py +0 -0
- {simplex-1.2.38 → simplex-1.2.41}/simplex/cli.py +0 -0
- {simplex-1.2.38 → simplex-1.2.41}/simplex/deploy/__init__.py +0 -0
- {simplex-1.2.38 → simplex-1.2.41}/simplex/deploy/push.py +0 -0
- {simplex-1.2.38 → simplex-1.2.41}/simplex.egg-info/SOURCES.txt +0 -0
- {simplex-1.2.38 → simplex-1.2.41}/simplex.egg-info/dependency_links.txt +0 -0
- {simplex-1.2.38 → simplex-1.2.41}/simplex.egg-info/entry_points.txt +0 -0
- {simplex-1.2.38 → simplex-1.2.41}/simplex.egg-info/requires.txt +0 -0
- {simplex-1.2.38 → simplex-1.2.41}/simplex.egg-info/top_level.txt +0 -0
- {simplex-1.2.38 → simplex-1.2.41}/tests/test.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
2
|
Name: simplex
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.41
|
|
4
4
|
Summary: Official Python SDK for Simplex API
|
|
5
5
|
Home-page: https://simplex.sh
|
|
6
6
|
Author: Simplex Labs, Inc.
|
|
@@ -18,15 +18,6 @@ Requires-Dist: requests
|
|
|
18
18
|
Requires-Dist: python-dotenv
|
|
19
19
|
Requires-Dist: click
|
|
20
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
|
|
30
21
|
|
|
31
22
|
# Simplex AI Python SDK
|
|
32
23
|
|
|
@@ -80,19 +80,21 @@ class Simplex:
|
|
|
80
80
|
else:
|
|
81
81
|
raise ValueError(f"Failed to close session: {response.json()['error']}")
|
|
82
82
|
|
|
83
|
-
def create_session(self, show_in_console: Optional[bool] = True, proxies: Optional[bool] = True, session_data: Optional[str] = None):
|
|
83
|
+
def create_session(self, show_in_console: Optional[bool] = True, proxies: Optional[bool] = True, session_data: Optional[dict | str] = None):
|
|
84
84
|
if session_data:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
except json.JSONDecodeError:
|
|
89
|
-
# If parsing fails, treat as file path
|
|
85
|
+
if isinstance(session_data, dict):
|
|
86
|
+
session_data_dict = session_data
|
|
87
|
+
else:
|
|
90
88
|
try:
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
except
|
|
94
|
-
|
|
95
|
-
|
|
89
|
+
# Try to parse as JSON string first
|
|
90
|
+
session_data_dict = json.loads(session_data)
|
|
91
|
+
except json.JSONDecodeError:
|
|
92
|
+
# If parsing fails, treat as file path
|
|
93
|
+
try:
|
|
94
|
+
with open(session_data, 'r') as f:
|
|
95
|
+
session_data_dict = json.load(f)
|
|
96
|
+
except Exception as e:
|
|
97
|
+
raise ValueError(f"Failed to load session data. Input must be valid JSON string, dictionary, or path to JSON file. Error: {str(e)}")
|
|
96
98
|
response = requests.post(
|
|
97
99
|
f"{BASE_URL}/create_session",
|
|
98
100
|
headers={
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
2
|
Name: simplex
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.41
|
|
4
4
|
Summary: Official Python SDK for Simplex API
|
|
5
5
|
Home-page: https://simplex.sh
|
|
6
6
|
Author: Simplex Labs, Inc.
|
|
@@ -18,15 +18,6 @@ Requires-Dist: requests
|
|
|
18
18
|
Requires-Dist: python-dotenv
|
|
19
19
|
Requires-Dist: click
|
|
20
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
|
|
30
21
|
|
|
31
22
|
# Simplex AI Python SDK
|
|
32
23
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|