fleet-python 0.2.63__tar.gz → 0.2.65__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 fleet-python might be problematic. Click here for more details.
- {fleet_python-0.2.63/fleet_python.egg-info → fleet_python-0.2.65}/PKG-INFO +1 -1
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/_async/__init__.py +11 -1
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/_async/client.py +2 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/_async/env/client.py +2 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/_async/models.py +3 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/_async/tasks.py +6 -1
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/client.py +2 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/env/client.py +2 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/models.py +3 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/tasks.py +8 -1
- {fleet_python-0.2.63 → fleet_python-0.2.65/fleet_python.egg-info}/PKG-INFO +1 -1
- {fleet_python-0.2.63 → fleet_python-0.2.65}/pyproject.toml +1 -1
- {fleet_python-0.2.63 → fleet_python-0.2.65}/LICENSE +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/README.md +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/examples/diff_example.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/examples/dsl_example.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/examples/example.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/examples/exampleResume.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/examples/example_account.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/examples/example_action_log.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/examples/example_client.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/examples/example_mcp_anthropic.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/examples/example_mcp_openai.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/examples/example_sync.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/examples/example_task.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/examples/example_tasks.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/examples/example_verifier.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/examples/export_tasks.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/examples/gemini_example.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/examples/import_tasks.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/examples/json_tasks_example.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/examples/nova_act_example.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/examples/openai_example.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/examples/openai_simple_example.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/examples/query_builder_example.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/examples/quickstart.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/examples/test_cdp_logging.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/__init__.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/_async/base.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/_async/env/__init__.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/_async/exceptions.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/_async/global_client.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/_async/instance/__init__.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/_async/instance/base.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/_async/instance/client.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/_async/resources/__init__.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/_async/resources/base.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/_async/resources/browser.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/_async/resources/mcp.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/_async/resources/sqlite.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/_async/verifiers/__init__.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/_async/verifiers/bundler.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/_async/verifiers/verifier.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/base.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/config.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/env/__init__.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/exceptions.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/global_client.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/instance/__init__.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/instance/base.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/instance/client.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/instance/models.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/resources/__init__.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/resources/base.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/resources/browser.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/resources/mcp.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/resources/sqlite.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/types.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/verifiers/__init__.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/verifiers/bundler.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/verifiers/code.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/verifiers/db.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/verifiers/decorator.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/verifiers/parse.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/verifiers/sql_differ.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet/verifiers/verifier.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet_python.egg-info/SOURCES.txt +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet_python.egg-info/dependency_links.txt +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet_python.egg-info/requires.txt +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/fleet_python.egg-info/top_level.txt +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/scripts/fix_sync_imports.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/scripts/unasync.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/setup.cfg +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/tests/__init__.py +0 -0
- {fleet_python-0.2.63 → fleet_python-0.2.65}/tests/test_verifier_from_string.py +0 -0
|
@@ -112,8 +112,11 @@ async def environment(env_key: str) -> Environment:
|
|
|
112
112
|
|
|
113
113
|
async def make(
|
|
114
114
|
env_key: str,
|
|
115
|
+
data_key: Optional[str] = None,
|
|
115
116
|
region: Optional[str] = None,
|
|
116
117
|
env_variables: Optional[Dict[str, Any]] = None,
|
|
118
|
+
image_type: Optional[str] = None,
|
|
119
|
+
ttl_seconds: Optional[int] = None,
|
|
117
120
|
) -> AsyncEnv:
|
|
118
121
|
"""Create a new environment instance.
|
|
119
122
|
|
|
@@ -121,7 +124,14 @@ async def make(
|
|
|
121
124
|
env = await fleet.make("fira")
|
|
122
125
|
env_with_vars = await fleet.make("fira", env_variables={"LOGGED_IN_NAME": "Alice"})
|
|
123
126
|
"""
|
|
124
|
-
return await _async_global_client.get_client().make(
|
|
127
|
+
return await _async_global_client.get_client().make(
|
|
128
|
+
env_key,
|
|
129
|
+
data_key=data_key,
|
|
130
|
+
region=region,
|
|
131
|
+
env_variables=env_variables,
|
|
132
|
+
image_type=image_type,
|
|
133
|
+
ttl_seconds=ttl_seconds,
|
|
134
|
+
)
|
|
125
135
|
|
|
126
136
|
|
|
127
137
|
async def make_for_task(task: Task) -> AsyncEnv:
|
|
@@ -211,6 +211,7 @@ class AsyncFleet:
|
|
|
211
211
|
region: Optional[str] = None,
|
|
212
212
|
env_variables: Optional[Dict[str, Any]] = None,
|
|
213
213
|
image_type: Optional[str] = None,
|
|
214
|
+
ttl_seconds: Optional[int] = None,
|
|
214
215
|
) -> AsyncEnv:
|
|
215
216
|
if ":" in env_key:
|
|
216
217
|
env_key_part, env_version = env_key.split(":", 1)
|
|
@@ -245,6 +246,7 @@ class AsyncFleet:
|
|
|
245
246
|
env_variables=env_variables,
|
|
246
247
|
image_type=image_type,
|
|
247
248
|
created_from="sdk",
|
|
249
|
+
ttl_seconds=ttl_seconds,
|
|
248
250
|
)
|
|
249
251
|
|
|
250
252
|
# Only use region-specific base URL if no custom base URL is set
|
|
@@ -9,6 +9,7 @@ async def make_async(
|
|
|
9
9
|
region: Optional[str] = None,
|
|
10
10
|
env_variables: Optional[Dict[str, Any]] = None,
|
|
11
11
|
image_type: Optional[str] = None,
|
|
12
|
+
ttl_seconds: Optional[int] = None,
|
|
12
13
|
) -> AsyncEnv:
|
|
13
14
|
return await AsyncFleet().make(
|
|
14
15
|
env_key,
|
|
@@ -16,6 +17,7 @@ async def make_async(
|
|
|
16
17
|
region=region,
|
|
17
18
|
env_variables=env_variables,
|
|
18
19
|
image_type=image_type,
|
|
20
|
+
ttl_seconds=ttl_seconds,
|
|
19
21
|
)
|
|
20
22
|
|
|
21
23
|
|
|
@@ -66,6 +66,7 @@ class InstanceRequest(BaseModel):
|
|
|
66
66
|
force_pull: Optional[bool] = Field(None, title="Force Pull")
|
|
67
67
|
env_variables: Optional[Dict[str, Any]] = Field(None, title="Env Variables")
|
|
68
68
|
created_from: Optional[str] = Field(None, title="Created From")
|
|
69
|
+
ttl_seconds: Optional[int] = Field(None, title="TTL Seconds")
|
|
69
70
|
|
|
70
71
|
|
|
71
72
|
class InstanceStatus(Enum):
|
|
@@ -348,6 +349,8 @@ class InstanceResponse(BaseModel):
|
|
|
348
349
|
team_id: str = Field(..., title="Team Id")
|
|
349
350
|
region: str = Field(..., title="Region")
|
|
350
351
|
env_variables: Optional[Dict[str, Any]] = Field(None, title="Env Variables")
|
|
352
|
+
data_key: Optional[str] = Field(None, title="Data Key")
|
|
353
|
+
data_version: Optional[str] = Field(None, title="Data Version")
|
|
351
354
|
urls: Optional[InstanceURLs] = Field(None, title="Urls")
|
|
352
355
|
health: Optional[bool] = Field(None, title="Health")
|
|
353
356
|
|
|
@@ -222,7 +222,10 @@ class Task(BaseModel):
|
|
|
222
222
|
return await AsyncFleet().make(env_key=self.env_key, region=region)
|
|
223
223
|
|
|
224
224
|
async def make(
|
|
225
|
-
self,
|
|
225
|
+
self,
|
|
226
|
+
region: Optional[str] = None,
|
|
227
|
+
image_type: Optional[str] = None,
|
|
228
|
+
ttl_seconds: Optional[int] = None,
|
|
226
229
|
):
|
|
227
230
|
"""Create an environment instance with task's configuration.
|
|
228
231
|
|
|
@@ -234,6 +237,7 @@ class Task(BaseModel):
|
|
|
234
237
|
Args:
|
|
235
238
|
region: Optional AWS region for the environment
|
|
236
239
|
image_type: Optional image type for the environment
|
|
240
|
+
ttl_seconds: Optional TTL in seconds for the instance
|
|
237
241
|
|
|
238
242
|
Returns:
|
|
239
243
|
Environment instance configured for this task
|
|
@@ -255,6 +259,7 @@ class Task(BaseModel):
|
|
|
255
259
|
region=region,
|
|
256
260
|
env_variables=self.env_variables if self.env_variables else None,
|
|
257
261
|
image_type=image_type,
|
|
262
|
+
ttl_seconds=ttl_seconds,
|
|
258
263
|
)
|
|
259
264
|
|
|
260
265
|
|
|
@@ -211,6 +211,7 @@ class Fleet:
|
|
|
211
211
|
region: Optional[str] = None,
|
|
212
212
|
env_variables: Optional[Dict[str, Any]] = None,
|
|
213
213
|
image_type: Optional[str] = None,
|
|
214
|
+
ttl_seconds: Optional[int] = None,
|
|
214
215
|
) -> SyncEnv:
|
|
215
216
|
if ":" in env_key:
|
|
216
217
|
env_key_part, env_version = env_key.split(":", 1)
|
|
@@ -245,6 +246,7 @@ class Fleet:
|
|
|
245
246
|
env_variables=env_variables,
|
|
246
247
|
image_type=image_type,
|
|
247
248
|
created_from="sdk",
|
|
249
|
+
ttl_seconds=ttl_seconds,
|
|
248
250
|
)
|
|
249
251
|
|
|
250
252
|
# Only use region-specific base URL if no custom base URL is set
|
|
@@ -9,6 +9,7 @@ def make(
|
|
|
9
9
|
region: Optional[str] = None,
|
|
10
10
|
env_variables: Optional[Dict[str, Any]] = None,
|
|
11
11
|
image_type: Optional[str] = None,
|
|
12
|
+
ttl_seconds: Optional[int] = None,
|
|
12
13
|
) -> SyncEnv:
|
|
13
14
|
return Fleet().make(
|
|
14
15
|
env_key,
|
|
@@ -16,6 +17,7 @@ def make(
|
|
|
16
17
|
region=region,
|
|
17
18
|
env_variables=env_variables,
|
|
18
19
|
image_type=image_type,
|
|
20
|
+
ttl_seconds=ttl_seconds,
|
|
19
21
|
)
|
|
20
22
|
|
|
21
23
|
|
|
@@ -69,6 +69,7 @@ class InstanceRequest(BaseModel):
|
|
|
69
69
|
env_variables: Optional[Dict[str, Any]] = Field(None, title="Env Variables")
|
|
70
70
|
image_type: Optional[str] = Field(None, title="Image Type")
|
|
71
71
|
created_from: Optional[str] = Field(None, title="Created From")
|
|
72
|
+
ttl_seconds: Optional[int] = Field(None, title="TTL Seconds")
|
|
72
73
|
|
|
73
74
|
|
|
74
75
|
class InstanceStatus(Enum):
|
|
@@ -355,6 +356,8 @@ class InstanceResponse(BaseModel):
|
|
|
355
356
|
team_id: str = Field(..., title="Team Id")
|
|
356
357
|
region: str = Field(..., title="Region")
|
|
357
358
|
env_variables: Optional[Dict[str, Any]] = Field(None, title="Env Variables")
|
|
359
|
+
data_key: Optional[str] = Field(None, title="Data Key")
|
|
360
|
+
data_version: Optional[str] = Field(None, title="Data Version")
|
|
358
361
|
urls: Optional[InstanceURLs] = Field(None, title="Urls")
|
|
359
362
|
health: Optional[bool] = Field(None, title="Health")
|
|
360
363
|
|
|
@@ -214,7 +214,12 @@ class Task(BaseModel):
|
|
|
214
214
|
|
|
215
215
|
return Fleet().make(env_key=self.env_key, region=region)
|
|
216
216
|
|
|
217
|
-
def make(
|
|
217
|
+
def make(
|
|
218
|
+
self,
|
|
219
|
+
region: Optional[str] = None,
|
|
220
|
+
image_type: Optional[str] = None,
|
|
221
|
+
ttl_seconds: Optional[int] = None,
|
|
222
|
+
):
|
|
218
223
|
"""Create an environment instance with task's configuration.
|
|
219
224
|
|
|
220
225
|
Auto-populates environment creation with:
|
|
@@ -225,6 +230,7 @@ class Task(BaseModel):
|
|
|
225
230
|
Args:
|
|
226
231
|
region: Optional AWS region for the environment
|
|
227
232
|
image_type: Optional image type for the environment
|
|
233
|
+
ttl_seconds: Optional TTL in seconds for the instance
|
|
228
234
|
|
|
229
235
|
Returns:
|
|
230
236
|
Environment instance configured for this task
|
|
@@ -246,6 +252,7 @@ class Task(BaseModel):
|
|
|
246
252
|
region=region,
|
|
247
253
|
env_variables=self.env_variables if self.env_variables else None,
|
|
248
254
|
image_type=image_type,
|
|
255
|
+
ttl_seconds=ttl_seconds,
|
|
249
256
|
)
|
|
250
257
|
|
|
251
258
|
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|