fleet-python 0.2.55__tar.gz → 0.2.56__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 (83) hide show
  1. {fleet_python-0.2.55 → fleet_python-0.2.56}/PKG-INFO +1 -1
  2. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/_async/tasks.py +36 -0
  3. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/tasks.py +34 -0
  4. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet_python.egg-info/PKG-INFO +1 -1
  5. {fleet_python-0.2.55 → fleet_python-0.2.56}/pyproject.toml +1 -1
  6. {fleet_python-0.2.55 → fleet_python-0.2.56}/LICENSE +0 -0
  7. {fleet_python-0.2.55 → fleet_python-0.2.56}/README.md +0 -0
  8. {fleet_python-0.2.55 → fleet_python-0.2.56}/examples/diff_example.py +0 -0
  9. {fleet_python-0.2.55 → fleet_python-0.2.56}/examples/dsl_example.py +0 -0
  10. {fleet_python-0.2.55 → fleet_python-0.2.56}/examples/example.py +0 -0
  11. {fleet_python-0.2.55 → fleet_python-0.2.56}/examples/exampleResume.py +0 -0
  12. {fleet_python-0.2.55 → fleet_python-0.2.56}/examples/example_account.py +0 -0
  13. {fleet_python-0.2.55 → fleet_python-0.2.56}/examples/example_action_log.py +0 -0
  14. {fleet_python-0.2.55 → fleet_python-0.2.56}/examples/example_client.py +0 -0
  15. {fleet_python-0.2.55 → fleet_python-0.2.56}/examples/example_mcp_anthropic.py +0 -0
  16. {fleet_python-0.2.55 → fleet_python-0.2.56}/examples/example_mcp_openai.py +0 -0
  17. {fleet_python-0.2.55 → fleet_python-0.2.56}/examples/example_sync.py +0 -0
  18. {fleet_python-0.2.55 → fleet_python-0.2.56}/examples/example_task.py +0 -0
  19. {fleet_python-0.2.55 → fleet_python-0.2.56}/examples/example_tasks.py +0 -0
  20. {fleet_python-0.2.55 → fleet_python-0.2.56}/examples/example_verifier.py +0 -0
  21. {fleet_python-0.2.55 → fleet_python-0.2.56}/examples/export_tasks.py +0 -0
  22. {fleet_python-0.2.55 → fleet_python-0.2.56}/examples/gemini_example.py +0 -0
  23. {fleet_python-0.2.55 → fleet_python-0.2.56}/examples/import_tasks.py +0 -0
  24. {fleet_python-0.2.55 → fleet_python-0.2.56}/examples/json_tasks_example.py +0 -0
  25. {fleet_python-0.2.55 → fleet_python-0.2.56}/examples/nova_act_example.py +0 -0
  26. {fleet_python-0.2.55 → fleet_python-0.2.56}/examples/openai_example.py +0 -0
  27. {fleet_python-0.2.55 → fleet_python-0.2.56}/examples/openai_simple_example.py +0 -0
  28. {fleet_python-0.2.55 → fleet_python-0.2.56}/examples/query_builder_example.py +0 -0
  29. {fleet_python-0.2.55 → fleet_python-0.2.56}/examples/quickstart.py +0 -0
  30. {fleet_python-0.2.55 → fleet_python-0.2.56}/examples/test_cdp_logging.py +0 -0
  31. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/__init__.py +0 -0
  32. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/_async/__init__.py +0 -0
  33. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/_async/base.py +0 -0
  34. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/_async/client.py +0 -0
  35. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/_async/env/__init__.py +0 -0
  36. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/_async/env/client.py +0 -0
  37. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/_async/exceptions.py +0 -0
  38. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/_async/global_client.py +0 -0
  39. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/_async/instance/__init__.py +0 -0
  40. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/_async/instance/base.py +0 -0
  41. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/_async/instance/client.py +0 -0
  42. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/_async/models.py +0 -0
  43. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/_async/resources/__init__.py +0 -0
  44. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/_async/resources/base.py +0 -0
  45. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/_async/resources/browser.py +0 -0
  46. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/_async/resources/mcp.py +0 -0
  47. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/_async/resources/sqlite.py +0 -0
  48. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/_async/verifiers/__init__.py +0 -0
  49. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/_async/verifiers/bundler.py +0 -0
  50. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/_async/verifiers/verifier.py +0 -0
  51. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/base.py +0 -0
  52. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/client.py +0 -0
  53. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/config.py +0 -0
  54. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/env/__init__.py +0 -0
  55. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/env/client.py +0 -0
  56. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/exceptions.py +0 -0
  57. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/global_client.py +0 -0
  58. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/instance/__init__.py +0 -0
  59. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/instance/base.py +0 -0
  60. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/instance/client.py +0 -0
  61. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/instance/models.py +0 -0
  62. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/models.py +0 -0
  63. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/resources/__init__.py +0 -0
  64. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/resources/base.py +0 -0
  65. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/resources/browser.py +0 -0
  66. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/resources/mcp.py +0 -0
  67. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/resources/sqlite.py +0 -0
  68. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/types.py +0 -0
  69. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/verifiers/__init__.py +0 -0
  70. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/verifiers/bundler.py +0 -0
  71. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/verifiers/code.py +0 -0
  72. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/verifiers/db.py +0 -0
  73. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/verifiers/decorator.py +0 -0
  74. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/verifiers/parse.py +0 -0
  75. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/verifiers/sql_differ.py +0 -0
  76. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet/verifiers/verifier.py +0 -0
  77. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet_python.egg-info/SOURCES.txt +0 -0
  78. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet_python.egg-info/dependency_links.txt +0 -0
  79. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet_python.egg-info/requires.txt +0 -0
  80. {fleet_python-0.2.55 → fleet_python-0.2.56}/fleet_python.egg-info/top_level.txt +0 -0
  81. {fleet_python-0.2.55 → fleet_python-0.2.56}/scripts/fix_sync_imports.py +0 -0
  82. {fleet_python-0.2.55 → fleet_python-0.2.56}/scripts/unasync.py +0 -0
  83. {fleet_python-0.2.55 → fleet_python-0.2.56}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fleet-python
3
- Version: 0.2.55
3
+ Version: 0.2.56
4
4
  Summary: Python SDK for Fleet environments
5
5
  Author-email: Fleet AI <nic@fleet.so>
6
6
  License: Apache-2.0
@@ -218,6 +218,42 @@ class Task(BaseModel):
218
218
 
219
219
  return await AsyncFleet().make(env_key=self.env_key, region=region)
220
220
 
221
+ async def make(
222
+ self, region: Optional[str] = None, image_type: Optional[str] = None
223
+ ):
224
+ """Create an environment instance with task's configuration.
225
+
226
+ Auto-populates environment creation with:
227
+ - env_key (env_id + version)
228
+ - data_key (data_id + data_version, if present)
229
+ - env_variables (if present)
230
+
231
+ Args:
232
+ region: Optional AWS region for the environment
233
+ image_type: Optional image type for the environment
234
+
235
+ Returns:
236
+ Environment instance configured for this task
237
+
238
+ Example:
239
+ task = fleet.Task(key="my-task", prompt="...", env_id="my-env",
240
+ data_id="my-data", data_version="v1.0")
241
+ env = await task.make(region="us-west-2")
242
+ """
243
+ if not self.env_id:
244
+ raise ValueError("Task has no env_id defined")
245
+
246
+ # Deferred import to avoid circular dependencies
247
+ from fleet.env import make_async
248
+
249
+ return await make_async(
250
+ env_key=self.env_key,
251
+ data_key=self.data_key,
252
+ region=region,
253
+ env_variables=self.env_variables if self.env_variables else None,
254
+ image_type=image_type,
255
+ )
256
+
221
257
 
222
258
  def verifier_from_string(
223
259
  verifier_func: str, verifier_id: str, verifier_key: str, sha256: str = ""
@@ -211,6 +211,40 @@ class Task(BaseModel):
211
211
 
212
212
  return Fleet().make(env_key=self.env_key, region=region)
213
213
 
214
+ def make(self, region: Optional[str] = None, image_type: Optional[str] = None):
215
+ """Create an environment instance with task's configuration.
216
+
217
+ Auto-populates environment creation with:
218
+ - env_key (env_id + version)
219
+ - data_key (data_id + data_version, if present)
220
+ - env_variables (if present)
221
+
222
+ Args:
223
+ region: Optional AWS region for the environment
224
+ image_type: Optional image type for the environment
225
+
226
+ Returns:
227
+ Environment instance configured for this task
228
+
229
+ Example:
230
+ task = fleet.Task(key="my-task", prompt="...", env_id="my-env",
231
+ data_id="my-data", data_version="v1.0")
232
+ env = task.make(region="us-west-2")
233
+ """
234
+ if not self.env_id:
235
+ raise ValueError("Task has no env_id defined")
236
+
237
+ # Deferred import to avoid circular dependencies
238
+ from fleet.env import make
239
+
240
+ return make(
241
+ env_key=self.env_key,
242
+ data_key=self.data_key,
243
+ region=region,
244
+ env_variables=self.env_variables if self.env_variables else None,
245
+ image_type=image_type,
246
+ )
247
+
214
248
 
215
249
  def verifier_from_string(
216
250
  verifier_func: str, verifier_id: str, verifier_key: str, sha256: str = ""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fleet-python
3
- Version: 0.2.55
3
+ Version: 0.2.56
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.55"
7
+ version = "0.2.56"
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