simplex 1.2.8__tar.gz → 1.2.9__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.8
3
+ Version: 1.2.9
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.8",
5
+ version="1.2.9",
6
6
  packages=find_packages(),
7
7
  package_data={
8
8
  "simplex": ["browser_agent/dom/*.js"], # Include JS files in the dom directory
@@ -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
 
@@ -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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: simplex
3
- Version: 1.2.8
3
+ Version: 1.2.9
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