fleet-python 0.2.22__py3-none-any.whl → 0.2.23__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.
- fleet/__init__.py +2 -2
- fleet/_async/models.py +1 -1
- fleet/_async/tasks.py +1 -1
- fleet/models.py +1 -1
- fleet/tasks.py +1 -1
- {fleet_python-0.2.22.dist-info → fleet_python-0.2.23.dist-info}/METADATA +1 -1
- {fleet_python-0.2.22.dist-info → fleet_python-0.2.23.dist-info}/RECORD +11 -11
- scripts/fix_sync_imports.py +6 -0
- {fleet_python-0.2.22.dist-info → fleet_python-0.2.23.dist-info}/WHEEL +0 -0
- {fleet_python-0.2.22.dist-info → fleet_python-0.2.23.dist-info}/licenses/LICENSE +0 -0
- {fleet_python-0.2.22.dist-info → fleet_python-0.2.23.dist-info}/top_level.txt +0 -0
fleet/__init__.py
CHANGED
|
@@ -22,7 +22,7 @@ from .exceptions import (
|
|
|
22
22
|
FleetInstanceLimitError,
|
|
23
23
|
FleetConfigurationError,
|
|
24
24
|
)
|
|
25
|
-
from .client import Fleet,
|
|
25
|
+
from .client import Fleet, SyncEnv
|
|
26
26
|
from ._async.client import AsyncFleet, AsyncEnv
|
|
27
27
|
from .models import InstanceResponse
|
|
28
28
|
from .instance.models import Resource, ResetResponse
|
|
@@ -58,7 +58,7 @@ __version__ = "0.1.0"
|
|
|
58
58
|
__all__ = [
|
|
59
59
|
# Core classes
|
|
60
60
|
"Fleet",
|
|
61
|
-
"
|
|
61
|
+
"SyncEnv",
|
|
62
62
|
"AsyncFleet",
|
|
63
63
|
"AsyncEnv",
|
|
64
64
|
# Models
|
fleet/_async/models.py
CHANGED
|
@@ -317,5 +317,5 @@ class InstanceResponse(BaseModel):
|
|
|
317
317
|
team_id: str = Field(..., title='Team Id')
|
|
318
318
|
region: str = Field(..., title='Region')
|
|
319
319
|
env_variables: Optional[Dict[str, Any]] = Field(None, title='Env Variables')
|
|
320
|
-
urls: InstanceURLs
|
|
320
|
+
urls: Optional[InstanceURLs] = Field(None, title='Urls')
|
|
321
321
|
health: Optional[bool] = Field(None, title='Health')
|
fleet/_async/tasks.py
CHANGED
|
@@ -10,7 +10,7 @@ from uuid import UUID
|
|
|
10
10
|
from pydantic import BaseModel, Field, validator
|
|
11
11
|
|
|
12
12
|
# Import the shared VerifierFunction type that works for both async and sync
|
|
13
|
-
from
|
|
13
|
+
from fleet.types import VerifierFunction
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
class Task(BaseModel):
|
fleet/models.py
CHANGED
|
@@ -317,5 +317,5 @@ class InstanceResponse(BaseModel):
|
|
|
317
317
|
team_id: str = Field(..., title='Team Id')
|
|
318
318
|
region: str = Field(..., title='Region')
|
|
319
319
|
env_variables: Optional[Dict[str, Any]] = Field(None, title='Env Variables')
|
|
320
|
-
urls: InstanceURLs
|
|
320
|
+
urls: Optional[InstanceURLs] = Field(None, title='Urls')
|
|
321
321
|
health: Optional[bool] = Field(None, title='Health')
|
fleet/tasks.py
CHANGED
|
@@ -10,7 +10,7 @@ from uuid import UUID
|
|
|
10
10
|
from pydantic import BaseModel, Field, validator
|
|
11
11
|
|
|
12
12
|
# Import the shared VerifierFunction type that works for both async and sync
|
|
13
|
-
from
|
|
13
|
+
from fleet.types import VerifierFunction
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
class Task(BaseModel):
|
|
@@ -15,20 +15,20 @@ examples/openai_example.py,sha256=I2vk_SJN9BkSRQCYRJfbtGJ-HJ2xzQj-lOjwqmLos5M,82
|
|
|
15
15
|
examples/openai_simple_example.py,sha256=I42ytIwv0INgDO39pp1MOQSqsJz2YYH8GeNNBaUtq3A,1748
|
|
16
16
|
examples/query_builder_example.py,sha256=Q3lUBETHpu1aS2FXAO79ADYqCxOjMMMZNgCcFVapiII,3918
|
|
17
17
|
examples/quickstart.py,sha256=1VT39IRRhemsJgxi0O0gprdpcw7HB4pYO97GAYagIcg,3788
|
|
18
|
-
fleet/__init__.py,sha256=
|
|
18
|
+
fleet/__init__.py,sha256=5js0jYu1wddNyfy4sJIcoVGMZNZeHHSAPJJzfFXN-Po,2276
|
|
19
19
|
fleet/base.py,sha256=0yYuMN0lBkrfTTZBt5NQp5112xWgziuWEk4GuHJB1wE,9189
|
|
20
20
|
fleet/client.py,sha256=SDrq3gfmbAa-F-wmewHN7PyoUc2SWKy2DdaYmJHx1dk,11591
|
|
21
21
|
fleet/config.py,sha256=zd19st83NJdW9DdOq7Irpc0x-iUnMad0JOtAr_nD5DM,273
|
|
22
22
|
fleet/exceptions.py,sha256=fUmPwWhnT8SR97lYsRq0kLHQHKtSh2eJS0VQ2caSzEI,5055
|
|
23
|
-
fleet/models.py,sha256=
|
|
24
|
-
fleet/tasks.py,sha256=
|
|
23
|
+
fleet/models.py,sha256=aPjcwbGfyEoDaS5Iip3cAyy3j5NDqhP0wyrvtVvF3M8,11410
|
|
24
|
+
fleet/tasks.py,sha256=OScp0tHIbCmOpmCFzHATBmA7WiJMlehP3rvEfeMAoPk,1648
|
|
25
25
|
fleet/types.py,sha256=eXeI8BFmiU5hln0PVvJbUZs7BSjl6wSqAtN9zaJT6yY,652
|
|
26
26
|
fleet/_async/__init__.py,sha256=AJWCnuo7XKja4yBb8fK2wX7ntciLXQrpzdRHwjTRP6M,62
|
|
27
27
|
fleet/_async/base.py,sha256=s0rYOtXsMJeitOvpa-Oh8ciLV226p_TIPp3fplzWvV4,9209
|
|
28
28
|
fleet/_async/client.py,sha256=jByARVSmtsOS9Qlukwij_exPzIQW5TBMtIGKnLqlF00,11924
|
|
29
29
|
fleet/_async/exceptions.py,sha256=fUmPwWhnT8SR97lYsRq0kLHQHKtSh2eJS0VQ2caSzEI,5055
|
|
30
|
-
fleet/_async/models.py,sha256=
|
|
31
|
-
fleet/_async/tasks.py,sha256=
|
|
30
|
+
fleet/_async/models.py,sha256=aPjcwbGfyEoDaS5Iip3cAyy3j5NDqhP0wyrvtVvF3M8,11410
|
|
31
|
+
fleet/_async/tasks.py,sha256=7ddJWkgulGW7dTPVQUUcl2L0HgsajmMQY6AUblHpG8A,1649
|
|
32
32
|
fleet/_async/env/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
33
33
|
fleet/_async/env/client.py,sha256=PQGKcvnVTr3o2KNsgQM7ZBqaCjimv-wEn-XiYGm44Ko,753
|
|
34
34
|
fleet/_async/instance/__init__.py,sha256=PtmJq8J8bh0SOQ2V55QURz5GJfobozwtQoqhaOk3_tI,515
|
|
@@ -60,10 +60,10 @@ fleet/verifiers/decorator.py,sha256=Q-KHhicnIYFwX7FX_VZguzNfu8ZslqNUeWxcS2CwNVY,
|
|
|
60
60
|
fleet/verifiers/parse.py,sha256=FYbzgX86dLAxoAZ3jXfu6zRPlNxgzjTkhO3yxMC0hZ4,5261
|
|
61
61
|
fleet/verifiers/sql_differ.py,sha256=dmiGCFXVMEMbAX519OjhVqgA8ZvhnvdmC1BVpL7QCF0,6490
|
|
62
62
|
fleet/verifiers/verifier.py,sha256=-iEnLi4BOpqMV8tJgSPcTi_mGWM3vMJiAYTmaJolo2c,12080
|
|
63
|
-
fleet_python-0.2.
|
|
64
|
-
scripts/fix_sync_imports.py,sha256=
|
|
63
|
+
fleet_python-0.2.23.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
64
|
+
scripts/fix_sync_imports.py,sha256=zangqElfqIvIc-E0S46m6R-51pTZ6gbd8oUVkvCGzJo,4768
|
|
65
65
|
scripts/unasync.py,sha256=--Fmaae47o-dZ1HYgX1c3Nvi-rMjcFymTRlJcWWnmpw,725
|
|
66
|
-
fleet_python-0.2.
|
|
67
|
-
fleet_python-0.2.
|
|
68
|
-
fleet_python-0.2.
|
|
69
|
-
fleet_python-0.2.
|
|
66
|
+
fleet_python-0.2.23.dist-info/METADATA,sha256=BnRRdSDuEiBGpMKUnjrB89CfR4SYbqgo7LhDy6yC6DI,3297
|
|
67
|
+
fleet_python-0.2.23.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
68
|
+
fleet_python-0.2.23.dist-info/top_level.txt,sha256=_3DSmTohvSDf3AIP_BYfGzhwO1ECFwuzg83X-wHCx3Y,23
|
|
69
|
+
fleet_python-0.2.23.dist-info/RECORD,,
|
scripts/fix_sync_imports.py
CHANGED
|
@@ -50,6 +50,12 @@ def fix_file(filepath: Path) -> bool:
|
|
|
50
50
|
content = content.replace('from ..models import', 'from .models import')
|
|
51
51
|
content = content.replace('from ..config import', 'from .config import')
|
|
52
52
|
|
|
53
|
+
# Fix __init__.py imports - the class is called SyncEnv, not Environment
|
|
54
|
+
if rel_path.parts[0] == '__init__.py' and len(rel_path.parts) == 1:
|
|
55
|
+
content = content.replace('from .client import Fleet, Environment', 'from .client import Fleet, SyncEnv')
|
|
56
|
+
content = content.replace('"Environment",', '"SyncEnv",')
|
|
57
|
+
content = content.replace("'Environment',", "'SyncEnv',")
|
|
58
|
+
|
|
53
59
|
# Fix playwright imports for sync version
|
|
54
60
|
if 'playwright' in str(filepath):
|
|
55
61
|
# Fix the import statement
|
|
File without changes
|
|
File without changes
|
|
File without changes
|