fleet-python 0.2.63__tar.gz → 0.2.64__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.

Files changed (85) hide show
  1. {fleet_python-0.2.63/fleet_python.egg-info → fleet_python-0.2.64}/PKG-INFO +1 -1
  2. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/_async/__init__.py +11 -1
  3. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/_async/client.py +2 -0
  4. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/_async/env/client.py +2 -0
  5. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/_async/models.py +1 -0
  6. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/_async/tasks.py +6 -1
  7. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/client.py +2 -0
  8. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/env/client.py +2 -0
  9. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/models.py +1 -0
  10. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/tasks.py +8 -1
  11. {fleet_python-0.2.63 → fleet_python-0.2.64/fleet_python.egg-info}/PKG-INFO +1 -1
  12. {fleet_python-0.2.63 → fleet_python-0.2.64}/pyproject.toml +1 -1
  13. {fleet_python-0.2.63 → fleet_python-0.2.64}/LICENSE +0 -0
  14. {fleet_python-0.2.63 → fleet_python-0.2.64}/README.md +0 -0
  15. {fleet_python-0.2.63 → fleet_python-0.2.64}/examples/diff_example.py +0 -0
  16. {fleet_python-0.2.63 → fleet_python-0.2.64}/examples/dsl_example.py +0 -0
  17. {fleet_python-0.2.63 → fleet_python-0.2.64}/examples/example.py +0 -0
  18. {fleet_python-0.2.63 → fleet_python-0.2.64}/examples/exampleResume.py +0 -0
  19. {fleet_python-0.2.63 → fleet_python-0.2.64}/examples/example_account.py +0 -0
  20. {fleet_python-0.2.63 → fleet_python-0.2.64}/examples/example_action_log.py +0 -0
  21. {fleet_python-0.2.63 → fleet_python-0.2.64}/examples/example_client.py +0 -0
  22. {fleet_python-0.2.63 → fleet_python-0.2.64}/examples/example_mcp_anthropic.py +0 -0
  23. {fleet_python-0.2.63 → fleet_python-0.2.64}/examples/example_mcp_openai.py +0 -0
  24. {fleet_python-0.2.63 → fleet_python-0.2.64}/examples/example_sync.py +0 -0
  25. {fleet_python-0.2.63 → fleet_python-0.2.64}/examples/example_task.py +0 -0
  26. {fleet_python-0.2.63 → fleet_python-0.2.64}/examples/example_tasks.py +0 -0
  27. {fleet_python-0.2.63 → fleet_python-0.2.64}/examples/example_verifier.py +0 -0
  28. {fleet_python-0.2.63 → fleet_python-0.2.64}/examples/export_tasks.py +0 -0
  29. {fleet_python-0.2.63 → fleet_python-0.2.64}/examples/gemini_example.py +0 -0
  30. {fleet_python-0.2.63 → fleet_python-0.2.64}/examples/import_tasks.py +0 -0
  31. {fleet_python-0.2.63 → fleet_python-0.2.64}/examples/json_tasks_example.py +0 -0
  32. {fleet_python-0.2.63 → fleet_python-0.2.64}/examples/nova_act_example.py +0 -0
  33. {fleet_python-0.2.63 → fleet_python-0.2.64}/examples/openai_example.py +0 -0
  34. {fleet_python-0.2.63 → fleet_python-0.2.64}/examples/openai_simple_example.py +0 -0
  35. {fleet_python-0.2.63 → fleet_python-0.2.64}/examples/query_builder_example.py +0 -0
  36. {fleet_python-0.2.63 → fleet_python-0.2.64}/examples/quickstart.py +0 -0
  37. {fleet_python-0.2.63 → fleet_python-0.2.64}/examples/test_cdp_logging.py +0 -0
  38. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/__init__.py +0 -0
  39. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/_async/base.py +0 -0
  40. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/_async/env/__init__.py +0 -0
  41. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/_async/exceptions.py +0 -0
  42. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/_async/global_client.py +0 -0
  43. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/_async/instance/__init__.py +0 -0
  44. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/_async/instance/base.py +0 -0
  45. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/_async/instance/client.py +0 -0
  46. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/_async/resources/__init__.py +0 -0
  47. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/_async/resources/base.py +0 -0
  48. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/_async/resources/browser.py +0 -0
  49. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/_async/resources/mcp.py +0 -0
  50. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/_async/resources/sqlite.py +0 -0
  51. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/_async/verifiers/__init__.py +0 -0
  52. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/_async/verifiers/bundler.py +0 -0
  53. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/_async/verifiers/verifier.py +0 -0
  54. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/base.py +0 -0
  55. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/config.py +0 -0
  56. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/env/__init__.py +0 -0
  57. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/exceptions.py +0 -0
  58. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/global_client.py +0 -0
  59. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/instance/__init__.py +0 -0
  60. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/instance/base.py +0 -0
  61. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/instance/client.py +0 -0
  62. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/instance/models.py +0 -0
  63. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/resources/__init__.py +0 -0
  64. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/resources/base.py +0 -0
  65. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/resources/browser.py +0 -0
  66. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/resources/mcp.py +0 -0
  67. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/resources/sqlite.py +0 -0
  68. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/types.py +0 -0
  69. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/verifiers/__init__.py +0 -0
  70. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/verifiers/bundler.py +0 -0
  71. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/verifiers/code.py +0 -0
  72. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/verifiers/db.py +0 -0
  73. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/verifiers/decorator.py +0 -0
  74. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/verifiers/parse.py +0 -0
  75. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/verifiers/sql_differ.py +0 -0
  76. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet/verifiers/verifier.py +0 -0
  77. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet_python.egg-info/SOURCES.txt +0 -0
  78. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet_python.egg-info/dependency_links.txt +0 -0
  79. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet_python.egg-info/requires.txt +0 -0
  80. {fleet_python-0.2.63 → fleet_python-0.2.64}/fleet_python.egg-info/top_level.txt +0 -0
  81. {fleet_python-0.2.63 → fleet_python-0.2.64}/scripts/fix_sync_imports.py +0 -0
  82. {fleet_python-0.2.63 → fleet_python-0.2.64}/scripts/unasync.py +0 -0
  83. {fleet_python-0.2.63 → fleet_python-0.2.64}/setup.cfg +0 -0
  84. {fleet_python-0.2.63 → fleet_python-0.2.64}/tests/__init__.py +0 -0
  85. {fleet_python-0.2.63 → fleet_python-0.2.64}/tests/test_verifier_from_string.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fleet-python
3
- Version: 0.2.63
3
+ Version: 0.2.64
4
4
  Summary: Python SDK for Fleet environments
5
5
  Author-email: Fleet AI <nic@fleet.so>
6
6
  License: Apache-2.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(env_key, region, env_variables)
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):
@@ -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, region: Optional[str] = None, image_type: Optional[str] = None
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):
@@ -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(self, region: Optional[str] = None, image_type: Optional[str] = None):
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fleet-python
3
- Version: 0.2.63
3
+ Version: 0.2.64
4
4
  Summary: Python SDK for Fleet environments
5
5
  Author-email: Fleet AI <nic@fleet.so>
6
6
  License: Apache-2.0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "fleet-python"
7
- version = "0.2.63"
7
+ version = "0.2.64"
8
8
  description = "Python SDK for Fleet environments"
9
9
  authors = [
10
10
  {name = "Fleet AI", email = "nic@fleet.so"},
File without changes
File without changes
File without changes