fleet-python 0.2.10__py3-none-any.whl → 0.2.11__py3-none-any.whl
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.
- examples/example.py +3 -0
- fleet/_async/client.py +4 -0
- fleet/_async/env/client.py +4 -0
- fleet/env/__init__.py +12 -4
- fleet/env/client.py +4 -0
- {fleet_python-0.2.10.dist-info → fleet_python-0.2.11.dist-info}/METADATA +1 -1
- {fleet_python-0.2.10.dist-info → fleet_python-0.2.11.dist-info}/RECORD +10 -10
- {fleet_python-0.2.10.dist-info → fleet_python-0.2.11.dist-info}/WHEEL +0 -0
- {fleet_python-0.2.10.dist-info → fleet_python-0.2.11.dist-info}/licenses/LICENSE +0 -0
- {fleet_python-0.2.10.dist-info → fleet_python-0.2.11.dist-info}/top_level.txt +0 -0
examples/example.py
CHANGED
fleet/_async/client.py
CHANGED
|
@@ -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())
|
fleet/_async/env/client.py
CHANGED
|
@@ -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]:
|
fleet/env/__init__.py
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
"""Fleet env module - convenience functions for environment management."""
|
|
2
2
|
|
|
3
|
-
from .client import make, list_envs, get, list_instances
|
|
3
|
+
from .client import make, list_envs, list_regions, get, list_instances
|
|
4
4
|
|
|
5
5
|
# Import async versions from _async
|
|
6
|
-
from .._async.env.client import
|
|
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
|
+
)
|
|
7
13
|
|
|
8
14
|
__all__ = [
|
|
9
15
|
"make",
|
|
10
|
-
"list_envs",
|
|
16
|
+
"list_envs",
|
|
17
|
+
"list_regions",
|
|
11
18
|
"list_instances",
|
|
12
19
|
"get",
|
|
13
20
|
"make_async",
|
|
14
21
|
"list_envs_async",
|
|
22
|
+
"list_regions_async",
|
|
15
23
|
"list_instances_async",
|
|
16
24
|
"get_async",
|
|
17
|
-
]
|
|
25
|
+
]
|
fleet/env/client.py
CHANGED
|
@@ -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,5 +1,5 @@
|
|
|
1
1
|
examples/dsl_example.py,sha256=3Eu5924a8x61nuSGXqGz8XjPLNKKH8Ye7lSYHSvixtk,5361
|
|
2
|
-
examples/example.py,sha256=
|
|
2
|
+
examples/example.py,sha256=62rjLU3LdGEW9QJZjMP44Gtdjalv-6oRnClDFk67Oec,1089
|
|
3
3
|
examples/example_client.py,sha256=70HKEhz_Gb79YcvKQauCPdS08AAwjo9unt2dh1jN_Oo,1030
|
|
4
4
|
examples/example_sync.py,sha256=_XaM3E0osxdt7AJQrJdtgE_I4-ChWuANQ5HIxCisbJk,983
|
|
5
5
|
examples/gemini_example.py,sha256=8mDXGGCaodyK6uXgpWhxi-DQ5OA-GFW12Gfwh0b3EDY,16177
|
|
@@ -16,12 +16,12 @@ fleet/models.py,sha256=Jf6Zmk689TPXhTSnVENK_VCw0VsujWzEWsN3T29MQ0k,3713
|
|
|
16
16
|
fleet/playwright.py,sha256=BmRvez5DUa0ttAQB084hPAyt9_8WxdzCGBGF-GZbTuQ,8593
|
|
17
17
|
fleet/_async/__init__.py,sha256=AJWCnuo7XKja4yBb8fK2wX7ntciLXQrpzdRHwjTRP6M,62
|
|
18
18
|
fleet/_async/base.py,sha256=j6Pqo0disJU3Nl2dLOacL9_7pYBslm5puIzFgDU54zg,4894
|
|
19
|
-
fleet/_async/client.py,sha256=
|
|
19
|
+
fleet/_async/client.py,sha256=Cs85F1J2j7t1dG-ldqTTQN_Sk0Ai7a5b7JiR0notmGY,5318
|
|
20
20
|
fleet/_async/exceptions.py,sha256=UHKUYK5OSeyLj9bmIPXwdtBkDMpAzfD3uxnH4yuE6k8,2659
|
|
21
21
|
fleet/_async/models.py,sha256=Jf6Zmk689TPXhTSnVENK_VCw0VsujWzEWsN3T29MQ0k,3713
|
|
22
22
|
fleet/_async/playwright.py,sha256=2r4ywuv2ZqT0Qu3-k8A7V4YijeAOHnN8HiqJreLEYGI,8924
|
|
23
23
|
fleet/_async/env/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
|
-
fleet/_async/env/client.py,sha256=
|
|
24
|
+
fleet/_async/env/client.py,sha256=lBLcuEeQ9B2JMp6xUPb7ANgBYl9XTJMoVaOzGW7s9Pk,784
|
|
25
25
|
fleet/_async/instance/__init__.py,sha256=jIt-7EEJ0WM_ipheT_s0lniCbLei6yUdN0qQv1bMJ3E,524
|
|
26
26
|
fleet/_async/instance/base.py,sha256=QgcCTHdcqhi5VQi6_a1uuR-uO2_2Z19-RwVPp1k266A,947
|
|
27
27
|
fleet/_async/instance/client.py,sha256=XTQWCQ6QfTpmw4x8ctlWvvnkcO8fCYnYkzbPAgs2_U4,5654
|
|
@@ -30,8 +30,8 @@ fleet/_async/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
|
|
|
30
30
|
fleet/_async/resources/base.py,sha256=203gD54NP1IvjuSqFo-f7FvrkhtjChggtzrxJK7xf2E,667
|
|
31
31
|
fleet/_async/resources/browser.py,sha256=x11y4aKHogIEv83FByHtExerjV-cDWI3U62349Guq_Q,1368
|
|
32
32
|
fleet/_async/resources/sqlite.py,sha256=sRiII_qJ8X6-FSemlBsXThz4ZPjkNy9wDT8g5UAz2XM,1501
|
|
33
|
-
fleet/env/__init__.py,sha256=
|
|
34
|
-
fleet/env/client.py,sha256=
|
|
33
|
+
fleet/env/__init__.py,sha256=yYk657kVDnMWYbuPS_2o0kpVC99AYD85o5WG1jCaWSY,531
|
|
34
|
+
fleet/env/client.py,sha256=HwJ-xCg3oZMJ48nP9_EaHk4Rao-na9myPX9X5JxYMbo,644
|
|
35
35
|
fleet/instance/__init__.py,sha256=Hr8xPPoqzKOViXZXWmaL6dQ7NOBn-GooTGzoIvGmiE4,514
|
|
36
36
|
fleet/instance/base.py,sha256=U-qW1EQVBo6yvMpP1JeKiPRhCjZ3y3aTsYFhLPNOTtQ,929
|
|
37
37
|
fleet/instance/client.py,sha256=6Qm81vjVD-7p6ZMx9gbJwLP2R1vkqRe6Drs89w4Tf7I,5468
|
|
@@ -44,10 +44,10 @@ fleet/verifiers/__init__.py,sha256=mRMN8x0gDWFJ1MRLqdBtQw0gn_q8kDV3lMLyoiEf1yY,2
|
|
|
44
44
|
fleet/verifiers/code.py,sha256=NJ4OLZnpqLkI1lXY7-5m2GuZklLxMzHUCnRMVyN2_OI,25
|
|
45
45
|
fleet/verifiers/db.py,sha256=tssmvJjDHuBIy8qlL_P5-UdmEFUw2DZcqLsWZ8ot3Xw,27766
|
|
46
46
|
fleet/verifiers/sql_differ.py,sha256=dmiGCFXVMEMbAX519OjhVqgA8ZvhnvdmC1BVpL7QCF0,6490
|
|
47
|
-
fleet_python-0.2.
|
|
47
|
+
fleet_python-0.2.11.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
48
48
|
scripts/fix_sync_imports.py,sha256=b7tRvShgOFqyildqs1qI-Io0gaHappykBI-PSWWqUwE,2941
|
|
49
49
|
scripts/unasync.py,sha256=--Fmaae47o-dZ1HYgX1c3Nvi-rMjcFymTRlJcWWnmpw,725
|
|
50
|
-
fleet_python-0.2.
|
|
51
|
-
fleet_python-0.2.
|
|
52
|
-
fleet_python-0.2.
|
|
53
|
-
fleet_python-0.2.
|
|
50
|
+
fleet_python-0.2.11.dist-info/METADATA,sha256=YqTOlXvN7U-hE27MAL6j2sZuF9vC45kra-C6Mtgrp44,4322
|
|
51
|
+
fleet_python-0.2.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
52
|
+
fleet_python-0.2.11.dist-info/top_level.txt,sha256=_3DSmTohvSDf3AIP_BYfGzhwO1ECFwuzg83X-wHCx3Y,23
|
|
53
|
+
fleet_python-0.2.11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|