simplex 1.2.61__py3-none-any.whl → 1.2.62__py3-none-any.whl
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/simplex.py +12 -6
- {simplex-1.2.61.dist-info → simplex-1.2.62.dist-info}/METADATA +1 -1
- simplex-1.2.62.dist-info/RECORD +11 -0
- simplex-1.2.61.dist-info/RECORD +0 -11
- {simplex-1.2.61.dist-info → simplex-1.2.62.dist-info}/LICENSE +0 -0
- {simplex-1.2.61.dist-info → simplex-1.2.62.dist-info}/WHEEL +0 -0
- {simplex-1.2.61.dist-info → simplex-1.2.62.dist-info}/entry_points.txt +0 -0
- {simplex-1.2.61.dist-info → simplex-1.2.62.dist-info}/top_level.txt +0 -0
simplex/simplex.py
CHANGED
|
@@ -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):
|
|
@@ -661,12 +661,18 @@ class Simplex:
|
|
|
661
661
|
},
|
|
662
662
|
data=data
|
|
663
663
|
)
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
if
|
|
667
|
-
|
|
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('"')
|
|
668
668
|
else:
|
|
669
|
-
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
|
|
670
676
|
|
|
671
677
|
def exists(self, element_description: str, cdp_url: str = None):
|
|
672
678
|
if not element_description or not element_description.strip():
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
simplex/__init__.py,sha256=L_5i__xt_ZDkr6e-Wx9cr84t9sXpioOT7j01NJYJCTE,75
|
|
2
|
+
simplex/cli.py,sha256=0K_pzoVdF7vfTJPUONhFzzTvjZk2M7FZPpEONjZWJC8,2268
|
|
3
|
+
simplex/simplex.py,sha256=p1W7e7NNUDHfWn8dq4ioD-fdimlezQWN8pMph5jzX6A,27762
|
|
4
|
+
simplex/deploy/__init__.py,sha256=_JQ81F_Nu7hSAfMA691gzs6a4-8oZ-buJ9h3Au12BKw,96
|
|
5
|
+
simplex/deploy/push.py,sha256=hRAbtFZaECKnBljaOLQ5nzJ6hk7tZgc1c7QdgxKQFoY,6123
|
|
6
|
+
simplex-1.2.62.dist-info/LICENSE,sha256=Xh0SJjYZfNI71pCNMB40aKlBLLuOB0blx5xkTtufFNQ,1075
|
|
7
|
+
simplex-1.2.62.dist-info/METADATA,sha256=4PT1Je_1IFCUTWcZ8DQ-ezQn0j6nOfZXQ3Unkv3h5U0,1045
|
|
8
|
+
simplex-1.2.62.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
9
|
+
simplex-1.2.62.dist-info/entry_points.txt,sha256=3veL2w3c5vxb3dm8I_M8Fs-370n1ZnvD8uu1nSsL7z8,45
|
|
10
|
+
simplex-1.2.62.dist-info/top_level.txt,sha256=cbMH1bYpN0A3gP-ecibPRHasHoqB-01T_2BUFS8p0CE,8
|
|
11
|
+
simplex-1.2.62.dist-info/RECORD,,
|
simplex-1.2.61.dist-info/RECORD
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
simplex/__init__.py,sha256=L_5i__xt_ZDkr6e-Wx9cr84t9sXpioOT7j01NJYJCTE,75
|
|
2
|
-
simplex/cli.py,sha256=0K_pzoVdF7vfTJPUONhFzzTvjZk2M7FZPpEONjZWJC8,2268
|
|
3
|
-
simplex/simplex.py,sha256=cBmj1jxxNjqwLPb774tSrvWMBcayRkaqiXlhhpkMsjc,27624
|
|
4
|
-
simplex/deploy/__init__.py,sha256=_JQ81F_Nu7hSAfMA691gzs6a4-8oZ-buJ9h3Au12BKw,96
|
|
5
|
-
simplex/deploy/push.py,sha256=hRAbtFZaECKnBljaOLQ5nzJ6hk7tZgc1c7QdgxKQFoY,6123
|
|
6
|
-
simplex-1.2.61.dist-info/LICENSE,sha256=Xh0SJjYZfNI71pCNMB40aKlBLLuOB0blx5xkTtufFNQ,1075
|
|
7
|
-
simplex-1.2.61.dist-info/METADATA,sha256=z_qPNkJ3xM_h6v7ntRuiZIqp2d6vlh6Mw1vetBTzWo4,1045
|
|
8
|
-
simplex-1.2.61.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
9
|
-
simplex-1.2.61.dist-info/entry_points.txt,sha256=3veL2w3c5vxb3dm8I_M8Fs-370n1ZnvD8uu1nSsL7z8,45
|
|
10
|
-
simplex-1.2.61.dist-info/top_level.txt,sha256=cbMH1bYpN0A3gP-ecibPRHasHoqB-01T_2BUFS8p0CE,8
|
|
11
|
-
simplex-1.2.61.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|