fleet-python 0.2.10__tar.gz → 0.2.11__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 (59) hide show
  1. {fleet_python-0.2.10 → fleet_python-0.2.11}/PKG-INFO +1 -1
  2. {fleet_python-0.2.10 → fleet_python-0.2.11}/examples/example.py +3 -0
  3. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/_async/client.py +4 -0
  4. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/_async/env/client.py +4 -0
  5. fleet_python-0.2.11/fleet/env/__init__.py +25 -0
  6. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/env/client.py +4 -0
  7. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet_python.egg-info/PKG-INFO +1 -1
  8. {fleet_python-0.2.10 → fleet_python-0.2.11}/pyproject.toml +2 -1
  9. fleet_python-0.2.10/fleet/env/__init__.py +0 -17
  10. {fleet_python-0.2.10 → fleet_python-0.2.11}/LICENSE +0 -0
  11. {fleet_python-0.2.10 → fleet_python-0.2.11}/README.md +0 -0
  12. {fleet_python-0.2.10 → fleet_python-0.2.11}/examples/dsl_example.py +0 -0
  13. {fleet_python-0.2.10 → fleet_python-0.2.11}/examples/example_client.py +0 -0
  14. {fleet_python-0.2.10 → fleet_python-0.2.11}/examples/example_sync.py +0 -0
  15. {fleet_python-0.2.10 → fleet_python-0.2.11}/examples/gemini_example.py +0 -0
  16. {fleet_python-0.2.10 → fleet_python-0.2.11}/examples/json_tasks_example.py +0 -0
  17. {fleet_python-0.2.10 → fleet_python-0.2.11}/examples/nova_act_example.py +0 -0
  18. {fleet_python-0.2.10 → fleet_python-0.2.11}/examples/openai_example.py +0 -0
  19. {fleet_python-0.2.10 → fleet_python-0.2.11}/examples/openai_simple_example.py +0 -0
  20. {fleet_python-0.2.10 → fleet_python-0.2.11}/examples/quickstart.py +0 -0
  21. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/__init__.py +0 -0
  22. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/_async/__init__.py +0 -0
  23. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/_async/base.py +0 -0
  24. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/_async/env/__init__.py +0 -0
  25. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/_async/exceptions.py +0 -0
  26. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/_async/instance/__init__.py +0 -0
  27. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/_async/instance/base.py +0 -0
  28. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/_async/instance/client.py +0 -0
  29. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/_async/instance/models.py +0 -0
  30. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/_async/models.py +0 -0
  31. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/_async/playwright.py +0 -0
  32. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/_async/resources/__init__.py +0 -0
  33. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/_async/resources/base.py +0 -0
  34. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/_async/resources/browser.py +0 -0
  35. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/_async/resources/sqlite.py +0 -0
  36. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/base.py +0 -0
  37. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/client.py +0 -0
  38. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/exceptions.py +0 -0
  39. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/instance/__init__.py +0 -0
  40. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/instance/base.py +0 -0
  41. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/instance/client.py +0 -0
  42. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/instance/models.py +0 -0
  43. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/models.py +0 -0
  44. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/playwright.py +0 -0
  45. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/resources/__init__.py +0 -0
  46. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/resources/base.py +0 -0
  47. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/resources/browser.py +0 -0
  48. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/resources/sqlite.py +0 -0
  49. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/verifiers/__init__.py +0 -0
  50. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/verifiers/code.py +0 -0
  51. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/verifiers/db.py +0 -0
  52. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet/verifiers/sql_differ.py +0 -0
  53. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet_python.egg-info/SOURCES.txt +0 -0
  54. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet_python.egg-info/dependency_links.txt +0 -0
  55. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet_python.egg-info/requires.txt +0 -0
  56. {fleet_python-0.2.10 → fleet_python-0.2.11}/fleet_python.egg-info/top_level.txt +0 -0
  57. {fleet_python-0.2.10 → fleet_python-0.2.11}/scripts/fix_sync_imports.py +0 -0
  58. {fleet_python-0.2.10 → fleet_python-0.2.11}/scripts/unasync.py +0 -0
  59. {fleet_python-0.2.10 → fleet_python-0.2.11}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fleet-python
3
- Version: 0.2.10
3
+ Version: 0.2.11
4
4
  Summary: Python SDK for Fleet environments
5
5
  Author-email: Fleet AI <nic@fleet.so>
6
6
  License: Apache-2.0
@@ -9,6 +9,9 @@ load_dotenv()
9
9
 
10
10
 
11
11
  async def main():
12
+ regions = await flt.env.list_regions_async()
13
+ print("Regions:", regions)
14
+
12
15
  environments = await flt.env.list_envs_async()
13
16
  print("Environments:", len(environments))
14
17
 
@@ -95,6 +95,10 @@ class AsyncFleet:
95
95
  response = await self.client.request("GET", "/v1/env/")
96
96
  return [EnvironmentModel(**env_data) for env_data in response.json()]
97
97
 
98
+ async def list_regions(self) -> List[str]:
99
+ response = await self.client.request("GET", "/v1/regions")
100
+ return response.json()
101
+
98
102
  async def environment(self, env_key: str) -> EnvironmentModel:
99
103
  response = await self.client.request("GET", f"/v1/env/{env_key}")
100
104
  return EnvironmentModel(**response.json())
@@ -11,6 +11,10 @@ async def list_envs_async() -> List[EnvironmentModel]:
11
11
  return await AsyncFleet().list_envs()
12
12
 
13
13
 
14
+ async def list_regions_async() -> List[str]:
15
+ return await AsyncFleet().list_regions()
16
+
17
+
14
18
  async def list_instances_async(
15
19
  status: Optional[str] = None, region: Optional[str] = None
16
20
  ) -> List[AsyncEnvironment]:
@@ -0,0 +1,25 @@
1
+ """Fleet env module - convenience functions for environment management."""
2
+
3
+ from .client import make, list_envs, list_regions, get, list_instances
4
+
5
+ # Import async versions from _async
6
+ from .._async.env.client import (
7
+ make_async,
8
+ list_envs_async,
9
+ list_regions_async,
10
+ get_async,
11
+ list_instances_async,
12
+ )
13
+
14
+ __all__ = [
15
+ "make",
16
+ "list_envs",
17
+ "list_regions",
18
+ "list_instances",
19
+ "get",
20
+ "make_async",
21
+ "list_envs_async",
22
+ "list_regions_async",
23
+ "list_instances_async",
24
+ "get_async",
25
+ ]
@@ -11,6 +11,10 @@ def list_envs() -> List[EnvironmentModel]:
11
11
  return Fleet().list_envs()
12
12
 
13
13
 
14
+ def list_regions() -> List[str]:
15
+ return Fleet().list_regions()
16
+
17
+
14
18
  def list_instances(
15
19
  status: Optional[str] = None, region: Optional[str] = None
16
20
  ) -> List[Environment]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fleet-python
3
- Version: 0.2.10
3
+ Version: 0.2.11
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.10"
7
+ version = "0.2.11"
8
8
  description = "Python SDK for Fleet environments"
9
9
  authors = [
10
10
  {name = "Fleet AI", email = "nic@fleet.so"},
@@ -92,6 +92,7 @@ testpaths = ["tests"]
92
92
  "AsyncFleetPlaywrightWrapper" = "FleetPlaywrightWrapper"
93
93
  "make_async" = "make"
94
94
  "list_envs_async" = "list_envs"
95
+ "list_regions_async" = "list_regions"
95
96
  "list_instances_async" = "list_instances"
96
97
  "get_async" = "get"
97
98
  "async def" = "def"
@@ -1,17 +0,0 @@
1
- """Fleet env module - convenience functions for environment management."""
2
-
3
- from .client import make, list_envs, get, list_instances
4
-
5
- # Import async versions from _async
6
- from .._async.env.client import make_async, list_envs_async, get_async, list_instances_async
7
-
8
- __all__ = [
9
- "make",
10
- "list_envs",
11
- "list_instances",
12
- "get",
13
- "make_async",
14
- "list_envs_async",
15
- "list_instances_async",
16
- "get_async",
17
- ]
File without changes
File without changes
File without changes