simplex 1.2.60__tar.gz → 1.2.62__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.60 → simplex-1.2.62}/PKG-INFO +1 -1
- {simplex-1.2.60 → simplex-1.2.62}/setup.py +1 -1
- {simplex-1.2.60 → simplex-1.2.62}/simplex/simplex.py +12 -7
- {simplex-1.2.60 → simplex-1.2.62}/simplex.egg-info/PKG-INFO +1 -1
- {simplex-1.2.60 → simplex-1.2.62}/LICENSE +0 -0
- {simplex-1.2.60 → simplex-1.2.62}/README.md +0 -0
- {simplex-1.2.60 → simplex-1.2.62}/setup.cfg +0 -0
- {simplex-1.2.60 → simplex-1.2.62}/simplex/__init__.py +0 -0
- {simplex-1.2.60 → simplex-1.2.62}/simplex/cli.py +0 -0
- {simplex-1.2.60 → simplex-1.2.62}/simplex/deploy/__init__.py +0 -0
- {simplex-1.2.60 → simplex-1.2.62}/simplex/deploy/push.py +0 -0
- {simplex-1.2.60 → simplex-1.2.62}/simplex.egg-info/SOURCES.txt +0 -0
- {simplex-1.2.60 → simplex-1.2.62}/simplex.egg-info/dependency_links.txt +0 -0
- {simplex-1.2.60 → simplex-1.2.62}/simplex.egg-info/entry_points.txt +0 -0
- {simplex-1.2.60 → simplex-1.2.62}/simplex.egg-info/requires.txt +0 -0
- {simplex-1.2.60 → simplex-1.2.62}/simplex.egg-info/top_level.txt +0 -0
|
@@ -17,7 +17,7 @@ except ImportError:
|
|
|
17
17
|
ImportWarning
|
|
18
18
|
)
|
|
19
19
|
|
|
20
|
-
#
|
|
20
|
+
#BASE_URL = "https://simplex-dev--api-server-fastapi-app.modal.run"
|
|
21
21
|
BASE_URL = "https://api.simplex.sh"
|
|
22
22
|
class Playwright:
|
|
23
23
|
def __init__(self, simplex_instance):
|
|
@@ -81,7 +81,6 @@ class Simplex:
|
|
|
81
81
|
self.pw = None
|
|
82
82
|
|
|
83
83
|
def close_session(self):
|
|
84
|
-
time.sleep(30)
|
|
85
84
|
if PLAYWRIGHT_AVAILABLE and self.pw_browser:
|
|
86
85
|
try:
|
|
87
86
|
self.pw_browser.close()
|
|
@@ -662,12 +661,18 @@ class Simplex:
|
|
|
662
661
|
},
|
|
663
662
|
data=data
|
|
664
663
|
)
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
if
|
|
668
|
-
|
|
664
|
+
# Get filename from Content-Disposition header
|
|
665
|
+
content_disposition = response.headers.get('Content-Disposition')
|
|
666
|
+
if content_disposition:
|
|
667
|
+
filename = content_disposition.split('filename=')[1].strip('"')
|
|
669
668
|
else:
|
|
670
|
-
raise ValueError(
|
|
669
|
+
raise ValueError("No filename found in Content-Disposition header. File was not downloaded.")
|
|
670
|
+
|
|
671
|
+
# Check if response content is empty
|
|
672
|
+
if len(response.content) == 0:
|
|
673
|
+
raise ValueError("Downloaded file is empty (0 bytes)")
|
|
674
|
+
|
|
675
|
+
return filename, response.content
|
|
671
676
|
|
|
672
677
|
def exists(self, element_description: str, cdp_url: str = None):
|
|
673
678
|
if not element_description or not element_description.strip():
|
|
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
|