simplex 1.2.7__py3-none-any.whl → 1.2.9__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/deploy/push.py +10 -1
- simplex/simplex.py +1 -2
- {simplex-1.2.7.dist-info → simplex-1.2.9.dist-info}/METADATA +1 -1
- simplex-1.2.9.dist-info/RECORD +11 -0
- simplex-1.2.7.dist-info/RECORD +0 -11
- {simplex-1.2.7.dist-info → simplex-1.2.9.dist-info}/LICENSE +0 -0
- {simplex-1.2.7.dist-info → simplex-1.2.9.dist-info}/WHEEL +0 -0
- {simplex-1.2.7.dist-info → simplex-1.2.9.dist-info}/entry_points.txt +0 -0
- {simplex-1.2.7.dist-info → simplex-1.2.9.dist-info}/top_level.txt +0 -0
simplex/deploy/push.py
CHANGED
|
@@ -7,7 +7,6 @@ from dotenv import load_dotenv
|
|
|
7
7
|
import requests
|
|
8
8
|
from typing import Optional
|
|
9
9
|
from datetime import datetime, timedelta
|
|
10
|
-
load_dotenv() # This loads the .env file
|
|
11
10
|
|
|
12
11
|
S3_URL = "https://u3mvtbirxf.us-east-1.awsapprunner.com"
|
|
13
12
|
JOB_URL = "https://simplex--job-scheduler-app-handler.modal.run"
|
|
@@ -41,6 +40,11 @@ def create_archive(directory: str, config: dict) -> str:
|
|
|
41
40
|
|
|
42
41
|
def push_directory(directory: str):
|
|
43
42
|
"""Main function to handle parsing yaml and creating zip archive"""
|
|
43
|
+
# Load .env file from the target directory
|
|
44
|
+
env_path = Path(directory) / '.env'
|
|
45
|
+
if env_path.exists():
|
|
46
|
+
load_dotenv(env_path)
|
|
47
|
+
|
|
44
48
|
config = read_config(directory)
|
|
45
49
|
archive_path = create_archive(directory, config)
|
|
46
50
|
|
|
@@ -185,6 +189,11 @@ def create_job_immediately(project_name: str, s3_uri: str):
|
|
|
185
189
|
|
|
186
190
|
def run_directory(directory: str):
|
|
187
191
|
"""Run a directory immediately"""
|
|
192
|
+
# Load .env file from the target directory
|
|
193
|
+
env_path = Path(directory) / '.env'
|
|
194
|
+
if env_path.exists():
|
|
195
|
+
load_dotenv(env_path)
|
|
196
|
+
|
|
188
197
|
config = read_config(directory)
|
|
189
198
|
archive_path = create_archive(directory, config)
|
|
190
199
|
|
simplex/simplex.py
CHANGED
|
@@ -2,7 +2,7 @@ import os
|
|
|
2
2
|
import requests
|
|
3
3
|
import atexit
|
|
4
4
|
|
|
5
|
-
BASE_URL = "
|
|
5
|
+
BASE_URL = "https://api.simplex.sh"
|
|
6
6
|
import json
|
|
7
7
|
|
|
8
8
|
class Simplex:
|
|
@@ -199,7 +199,6 @@ class Simplex:
|
|
|
199
199
|
raise ValueError(f"Must call create_session before calling action scroll with pixels={pixels}")
|
|
200
200
|
|
|
201
201
|
data = {'pixels': pixels}
|
|
202
|
-
print(data)
|
|
203
202
|
|
|
204
203
|
if cdp_url:
|
|
205
204
|
data['cdp_url'] = cdp_url
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
simplex/__init__.py,sha256=1mbM4XUk0FNW161WOkM4ayC1s_QSsaBEls6PZ0iBScY,74
|
|
2
|
+
simplex/cli.py,sha256=PkHt3sBKYfu0Smil4aCMoZUD-JbPw8xsBewpFcBYDKM,675
|
|
3
|
+
simplex/simplex.py,sha256=wXys677gzVGlsPPdILNJi03mjNKo6fOfyGntD4Pa3Gg,8624
|
|
4
|
+
simplex/deploy/__init__.py,sha256=_JQ81F_Nu7hSAfMA691gzs6a4-8oZ-buJ9h3Au12BKw,96
|
|
5
|
+
simplex/deploy/push.py,sha256=Xie_ip4hOBvEIS-pVDDDzHKZrqhkutMoe3cWsuoRLV0,6381
|
|
6
|
+
simplex-1.2.9.dist-info/LICENSE,sha256=Xh0SJjYZfNI71pCNMB40aKlBLLuOB0blx5xkTtufFNQ,1075
|
|
7
|
+
simplex-1.2.9.dist-info/METADATA,sha256=sr1n-BsKrTuABQWyLG3kA-K3x61APsMtolDkGW6ohEM,1349
|
|
8
|
+
simplex-1.2.9.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
9
|
+
simplex-1.2.9.dist-info/entry_points.txt,sha256=3veL2w3c5vxb3dm8I_M8Fs-370n1ZnvD8uu1nSsL7z8,45
|
|
10
|
+
simplex-1.2.9.dist-info/top_level.txt,sha256=cbMH1bYpN0A3gP-ecibPRHasHoqB-01T_2BUFS8p0CE,8
|
|
11
|
+
simplex-1.2.9.dist-info/RECORD,,
|
simplex-1.2.7.dist-info/RECORD
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
simplex/__init__.py,sha256=1mbM4XUk0FNW161WOkM4ayC1s_QSsaBEls6PZ0iBScY,74
|
|
2
|
-
simplex/cli.py,sha256=PkHt3sBKYfu0Smil4aCMoZUD-JbPw8xsBewpFcBYDKM,675
|
|
3
|
-
simplex/simplex.py,sha256=diEaDqYsQYULlDwbR8ADhJ0lo9kZsGO6kMwywV0Zskg,8643
|
|
4
|
-
simplex/deploy/__init__.py,sha256=_JQ81F_Nu7hSAfMA691gzs6a4-8oZ-buJ9h3Au12BKw,96
|
|
5
|
-
simplex/deploy/push.py,sha256=hRAbtFZaECKnBljaOLQ5nzJ6hk7tZgc1c7QdgxKQFoY,6123
|
|
6
|
-
simplex-1.2.7.dist-info/LICENSE,sha256=Xh0SJjYZfNI71pCNMB40aKlBLLuOB0blx5xkTtufFNQ,1075
|
|
7
|
-
simplex-1.2.7.dist-info/METADATA,sha256=qxxSDGqesa466iEi4QpvfhnyTHkj0ArEHtKbsxkz3e4,1349
|
|
8
|
-
simplex-1.2.7.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
9
|
-
simplex-1.2.7.dist-info/entry_points.txt,sha256=3veL2w3c5vxb3dm8I_M8Fs-370n1ZnvD8uu1nSsL7z8,45
|
|
10
|
-
simplex-1.2.7.dist-info/top_level.txt,sha256=cbMH1bYpN0A3gP-ecibPRHasHoqB-01T_2BUFS8p0CE,8
|
|
11
|
-
simplex-1.2.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|