fleet-python 0.2.12__py3-none-any.whl → 0.2.15__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.

Files changed (51) hide show
  1. examples/diff_example.py +161 -0
  2. examples/dsl_example.py +50 -1
  3. examples/example.py +1 -1
  4. examples/example_action_log.py +28 -0
  5. examples/example_mcp_anthropic.py +77 -0
  6. examples/example_mcp_openai.py +27 -0
  7. examples/example_sync.py +1 -1
  8. examples/example_task.py +199 -0
  9. examples/example_verifier.py +71 -0
  10. examples/query_builder_example.py +117 -0
  11. fleet/__init__.py +51 -40
  12. fleet/_async/base.py +15 -2
  13. fleet/_async/client.py +141 -23
  14. fleet/_async/env/client.py +5 -5
  15. fleet/_async/instance/__init__.py +2 -3
  16. fleet/_async/instance/base.py +5 -2
  17. fleet/_async/instance/client.py +5 -4
  18. fleet/_async/playwright.py +2 -2
  19. fleet/_async/resources/base.py +1 -1
  20. fleet/_async/resources/browser.py +1 -1
  21. fleet/_async/resources/sqlite.py +656 -2
  22. fleet/_async/tasks.py +44 -0
  23. fleet/_async/verifiers/__init__.py +17 -0
  24. fleet/_async/verifiers/bundler.py +699 -0
  25. fleet/_async/verifiers/verifier.py +301 -0
  26. fleet/base.py +14 -1
  27. fleet/client.py +650 -17
  28. fleet/config.py +2 -1
  29. fleet/instance/__init__.py +1 -2
  30. fleet/instance/base.py +5 -2
  31. fleet/instance/client.py +16 -6
  32. fleet/models.py +171 -4
  33. fleet/resources/browser.py +7 -8
  34. fleet/resources/mcp.py +60 -0
  35. fleet/resources/sqlite.py +654 -0
  36. fleet/tasks.py +44 -0
  37. fleet/types.py +18 -0
  38. fleet/verifiers/__init__.py +11 -5
  39. fleet/verifiers/bundler.py +699 -0
  40. fleet/verifiers/decorator.py +103 -0
  41. fleet/verifiers/verifier.py +301 -0
  42. {fleet_python-0.2.12.dist-info → fleet_python-0.2.15.dist-info}/METADATA +3 -42
  43. fleet_python-0.2.15.dist-info/RECORD +69 -0
  44. scripts/fix_sync_imports.py +30 -12
  45. fleet/_async/config.py +0 -8
  46. fleet/_async/instance/models.py +0 -141
  47. fleet/_async/models.py +0 -109
  48. fleet_python-0.2.12.dist-info/RECORD +0 -55
  49. {fleet_python-0.2.12.dist-info → fleet_python-0.2.15.dist-info}/WHEEL +0 -0
  50. {fleet_python-0.2.12.dist-info → fleet_python-0.2.15.dist-info}/licenses/LICENSE +0 -0
  51. {fleet_python-0.2.12.dist-info → fleet_python-0.2.15.dist-info}/top_level.txt +0 -0
@@ -1,141 +0,0 @@
1
- # generated by datamodel-codegen:
2
- # filename: openapi (2).json
3
- # timestamp: 2025-07-09T20:11:31+00:00
4
-
5
- from __future__ import annotations
6
-
7
- from enum import Enum
8
- from typing import Any, Dict, List, Optional, Union
9
-
10
- from pydantic import BaseModel, Field
11
-
12
-
13
- class CDPDescribeResponse(BaseModel):
14
- success: bool = Field(..., title="Success")
15
- cdp_page_url: str = Field(..., title="Url")
16
- cdp_browser_url: str = Field(..., title="Browser Url")
17
- cdp_devtools_url: str = Field(..., title="Devtools Url")
18
-
19
-
20
- class ChromeStartRequest(BaseModel):
21
- resolution: Optional[str] = Field("1920x1080", title="Resolution")
22
-
23
-
24
- class ChromeStartResponse(BaseModel):
25
- success: bool = Field(..., title="Success")
26
- message: str = Field(..., title="Message")
27
-
28
-
29
- class ChromeStatusResponse(BaseModel):
30
- running: bool = Field(..., title="Running")
31
- message: str = Field(..., title="Message")
32
-
33
-
34
- class CreateSnapshotsResponse(BaseModel):
35
- success: bool = Field(..., title="Success")
36
- initial_snapshot_path: Optional[str] = Field(None, title="Initial Snapshot Path")
37
- final_snapshot_path: Optional[str] = Field(None, title="Final Snapshot Path")
38
- message: str = Field(..., title="Message")
39
-
40
-
41
- class HealthResponse(BaseModel):
42
- status: str = Field(..., title="Status")
43
- timestamp: str = Field(..., title="Timestamp")
44
- service: str = Field(..., title="Service")
45
-
46
-
47
- class LogActionRequest(BaseModel):
48
- action_type: str = Field(..., title="Action Type")
49
- sql: Optional[str] = Field(None, title="Sql")
50
- args: Optional[str] = Field(None, title="Args")
51
- path: Optional[str] = Field(None, title="Path")
52
- raw_payload: Optional[str] = Field(None, title="Raw Payload")
53
-
54
-
55
- class LogActionResponse(BaseModel):
56
- success: bool = Field(..., title="Success")
57
- message: str = Field(..., title="Message")
58
-
59
-
60
- class QueryRequest(BaseModel):
61
- query: str = Field(..., title="Query")
62
- args: Optional[List] = Field(None, title="Args")
63
- read_only: Optional[bool] = Field(True, title="Read Only")
64
-
65
-
66
- class QueryResponse(BaseModel):
67
- success: bool = Field(..., title="Success")
68
- columns: Optional[List[str]] = Field(None, title="Columns")
69
- rows: Optional[List[List]] = Field(None, title="Rows")
70
- rows_affected: Optional[int] = Field(None, title="Rows Affected")
71
- last_insert_id: Optional[int] = Field(None, title="Last Insert Id")
72
- error: Optional[str] = Field(None, title="Error")
73
- message: str = Field(..., title="Message")
74
-
75
-
76
- class ResetRequest(BaseModel):
77
- timestamp: Optional[int] = Field(None, title="Timestamp")
78
- seed: Optional[int] = Field(None, title="Seed")
79
-
80
-
81
- class ResetResponse(BaseModel):
82
- success: bool = Field(..., title="Success")
83
- message: str = Field(..., title="Message")
84
-
85
-
86
- class ResourceMode(Enum):
87
- ro = "ro"
88
- rw = "rw"
89
-
90
-
91
- class ResourceType(Enum):
92
- db = "sqlite"
93
- cdp = "cdp"
94
-
95
-
96
- class TableSchema(BaseModel):
97
- name: str = Field(..., title="Name")
98
- sql: str = Field(..., title="Sql")
99
- columns: List[Dict[str, Any]] = Field(..., title="Columns")
100
-
101
-
102
- class TimestampResponse(BaseModel):
103
- timestamp: str = Field(..., title="Timestamp")
104
-
105
-
106
- class ValidationError(BaseModel):
107
- loc: List[Union[str, int]] = Field(..., title="Location")
108
- msg: str = Field(..., title="Message")
109
- type: str = Field(..., title="Error Type")
110
-
111
-
112
- class DescribeResponse(BaseModel):
113
- success: bool = Field(..., title="Success")
114
- resource_name: str = Field(..., title="Resource Name")
115
- tables: Optional[List[TableSchema]] = Field(None, title="Tables")
116
- error: Optional[str] = Field(None, title="Error")
117
- message: str = Field(..., title="Message")
118
-
119
-
120
- class HTTPValidationError(BaseModel):
121
- detail: Optional[List[ValidationError]] = Field(None, title="Detail")
122
-
123
-
124
- class Resource(BaseModel):
125
- name: str = Field(..., title="Name")
126
- type: ResourceType
127
- mode: ResourceMode
128
- label: Optional[str] = Field(None, title="Label")
129
-
130
-
131
- class ExecuteFunctionRequest(BaseModel):
132
- function_code: str
133
- function_name: str
134
- text_solution: Optional[str] = None
135
-
136
-
137
- class ExecuteFunctionResponse(BaseModel):
138
- success: bool
139
- result: Optional[Any] = None
140
- error: Optional[str] = None
141
- message: str
fleet/_async/models.py DELETED
@@ -1,109 +0,0 @@
1
- # generated by datamodel-codegen:
2
- # filename: openapi.json
3
- # timestamp: 2025-07-08T18:21:47+00:00
4
-
5
- from __future__ import annotations
6
-
7
- from enum import Enum
8
- from typing import Dict, List, Optional, Union
9
-
10
- from pydantic import BaseModel, Field
11
-
12
-
13
- class Environment(BaseModel):
14
- env_key: str = Field(..., title="Env Key")
15
- name: str = Field(..., title="Name")
16
- description: Optional[str] = Field(..., title="Description")
17
- default_version: Optional[str] = Field(..., title="Default Version")
18
- versions: Dict[str, str] = Field(..., title="Versions")
19
-
20
-
21
- class Instance(BaseModel):
22
- instance_id: str = Field(..., title="Instance Id")
23
- env_key: str = Field(..., title="Env Key")
24
- version: str = Field(..., title="Version")
25
- status: str = Field(..., title="Status")
26
- subdomain: str = Field(..., title="Subdomain")
27
- created_at: str = Field(..., title="Created At")
28
- updated_at: str = Field(..., title="Updated At")
29
- terminated_at: Optional[str] = Field(None, title="Terminated At")
30
- team_id: str = Field(..., title="Team Id")
31
- region: str = Field(..., title="Region")
32
-
33
-
34
- class InstanceRequest(BaseModel):
35
- env_key: str = Field(..., title="Env Key")
36
- version: Optional[str] = Field(None, title="Version")
37
- region: Optional[str] = Field("us-east-2", title="Region")
38
- seed: Optional[int] = Field(None, title="Seed")
39
- timestamp: Optional[int] = Field(None, title="Timestamp")
40
- p_error: Optional[float] = Field(None, title="P Error")
41
- avg_latency: Optional[float] = Field(None, title="Avg Latency")
42
- run_id: Optional[str] = Field(None, title="Run Id")
43
- task_id: Optional[str] = Field(None, title="Task Id")
44
-
45
-
46
- class InstanceStatus(Enum):
47
- pending = "pending"
48
- running = "running"
49
- stopped = "stopped"
50
- error = "error"
51
-
52
-
53
- class ManagerURLs(BaseModel):
54
- api: str = Field(..., title="Api")
55
- docs: str = Field(..., title="Docs")
56
- reset: str = Field(..., title="Reset")
57
- diff: str = Field(..., title="Diff")
58
- snapshot: str = Field(..., title="Snapshot")
59
- execute_verifier_function: str = Field(..., title="Execute Verifier Function")
60
- execute_verifier_function_with_upload: str = Field(
61
- ..., title="Execute Verifier Function With Upload"
62
- )
63
-
64
-
65
- class ValidationError(BaseModel):
66
- loc: List[Union[str, int]] = Field(..., title="Location")
67
- msg: str = Field(..., title="Message")
68
- type: str = Field(..., title="Error Type")
69
-
70
-
71
- class HTTPValidationError(BaseModel):
72
- detail: Optional[List[ValidationError]] = Field(None, title="Detail")
73
-
74
-
75
- class InstanceURLs(BaseModel):
76
- root: str = Field(..., title="Root")
77
- app: str = Field(..., title="App")
78
- api: Optional[str] = Field(None, title="Api")
79
- health: Optional[str] = Field(None, title="Health")
80
- api_docs: Optional[str] = Field(None, title="Api Docs")
81
- manager: ManagerURLs
82
-
83
-
84
- class InstanceResponse(BaseModel):
85
- instance_id: str = Field(..., title="Instance Id")
86
- env_key: str = Field(..., title="Env Key")
87
- version: str = Field(..., title="Version")
88
- status: str = Field(..., title="Status")
89
- subdomain: str = Field(..., title="Subdomain")
90
- created_at: str = Field(..., title="Created At")
91
- updated_at: str = Field(..., title="Updated At")
92
- terminated_at: Optional[str] = Field(None, title="Terminated At")
93
- team_id: str = Field(..., title="Team Id")
94
- region: str = Field(..., title="Region")
95
- urls: InstanceURLs
96
- health: Optional[bool] = Field(None, title="Health")
97
-
98
-
99
- class InstanceRecord(BaseModel):
100
- instance_id: str
101
- env_key: str
102
- version: str
103
- status: str
104
- subdomain: str
105
- created_at: str
106
- updated_at: str
107
- terminated_at: Optional[str] = None
108
- team_id: str
109
- region: str
@@ -1,55 +0,0 @@
1
- examples/dsl_example.py,sha256=3Eu5924a8x61nuSGXqGz8XjPLNKKH8Ye7lSYHSvixtk,5361
2
- examples/example.py,sha256=62rjLU3LdGEW9QJZjMP44Gtdjalv-6oRnClDFk67Oec,1089
3
- examples/example_client.py,sha256=70HKEhz_Gb79YcvKQauCPdS08AAwjo9unt2dh1jN_Oo,1030
4
- examples/example_sync.py,sha256=_XaM3E0osxdt7AJQrJdtgE_I4-ChWuANQ5HIxCisbJk,983
5
- examples/gemini_example.py,sha256=8mDXGGCaodyK6uXgpWhxi-DQ5OA-GFW12Gfwh0b3EDY,16177
6
- examples/json_tasks_example.py,sha256=3ub2LLiC6hXpVEH1175QxCmfCD3Blfo3yoG85uV5CS8,5334
7
- examples/nova_act_example.py,sha256=hZLpObVsiXKQzqGwMZVMf4A2j_z4TYE-YO9pgNmaKPk,836
8
- examples/openai_example.py,sha256=I2vk_SJN9BkSRQCYRJfbtGJ-HJ2xzQj-lOjwqmLos5M,8234
9
- examples/openai_simple_example.py,sha256=I42ytIwv0INgDO39pp1MOQSqsJz2YYH8GeNNBaUtq3A,1748
10
- examples/quickstart.py,sha256=1VT39IRRhemsJgxi0O0gprdpcw7HB4pYO97GAYagIcg,3788
11
- fleet/__init__.py,sha256=-EFlLzHmyJIUGSZ4_XIts6OhXIXGPyu5PgI9JxgDzTg,2165
12
- fleet/base.py,sha256=E4gUv_eQEU4eSzTBy8gLGwl0s4t57OCTnsMYTKP3qI0,8782
13
- fleet/client.py,sha256=5Cf9eGO_PaJaG_Um8WDo2b_Hv8HNZcPtuJ971e25QQU,5509
14
- fleet/config.py,sha256=9JoDqeAOV7JPcivKSUsxm0EghAY8tFUzU8NyCH4SR1E,250
15
- fleet/exceptions.py,sha256=fUmPwWhnT8SR97lYsRq0kLHQHKtSh2eJS0VQ2caSzEI,5055
16
- fleet/models.py,sha256=Jf6Zmk689TPXhTSnVENK_VCw0VsujWzEWsN3T29MQ0k,3713
17
- fleet/playwright.py,sha256=BmRvez5DUa0ttAQB084hPAyt9_8WxdzCGBGF-GZbTuQ,8593
18
- fleet/_async/__init__.py,sha256=AJWCnuo7XKja4yBb8fK2wX7ntciLXQrpzdRHwjTRP6M,62
19
- fleet/_async/base.py,sha256=c84QR8NBXeRjmdXkCFrK0cvpAiE3VeJm2ELysg4hL-o,8800
20
- fleet/_async/client.py,sha256=5AiyAethOoNH19r1tJU63ANlKQ9AiuHLZyZqFtA7YIY,5753
21
- fleet/_async/config.py,sha256=9JoDqeAOV7JPcivKSUsxm0EghAY8tFUzU8NyCH4SR1E,250
22
- fleet/_async/exceptions.py,sha256=fUmPwWhnT8SR97lYsRq0kLHQHKtSh2eJS0VQ2caSzEI,5055
23
- fleet/_async/models.py,sha256=Jf6Zmk689TPXhTSnVENK_VCw0VsujWzEWsN3T29MQ0k,3713
24
- fleet/_async/playwright.py,sha256=2r4ywuv2ZqT0Qu3-k8A7V4YijeAOHnN8HiqJreLEYGI,8924
25
- fleet/_async/env/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
- fleet/_async/env/client.py,sha256=lBLcuEeQ9B2JMp6xUPb7ANgBYl9XTJMoVaOzGW7s9Pk,784
27
- fleet/_async/instance/__init__.py,sha256=jIt-7EEJ0WM_ipheT_s0lniCbLei6yUdN0qQv1bMJ3E,524
28
- fleet/_async/instance/base.py,sha256=wL-Lb33QjwKvBsK1borBg9jLIwCjEOh0il8XqFDfo7w,1531
29
- fleet/_async/instance/client.py,sha256=S2MBIz4cilNm8u3yJWWIo8n5y8QE7we7COE74ykNxjk,5696
30
- fleet/_async/instance/models.py,sha256=ZTiue0YOuhuwX8jYfJAoCzGfqjLqqXRLqK1LVFhq6rQ,4183
31
- fleet/_async/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
- fleet/_async/resources/base.py,sha256=203gD54NP1IvjuSqFo-f7FvrkhtjChggtzrxJK7xf2E,667
33
- fleet/_async/resources/browser.py,sha256=x11y4aKHogIEv83FByHtExerjV-cDWI3U62349Guq_Q,1368
34
- fleet/_async/resources/sqlite.py,sha256=sRiII_qJ8X6-FSemlBsXThz4ZPjkNy9wDT8g5UAz2XM,1501
35
- fleet/env/__init__.py,sha256=yYk657kVDnMWYbuPS_2o0kpVC99AYD85o5WG1jCaWSY,531
36
- fleet/env/client.py,sha256=HwJ-xCg3oZMJ48nP9_EaHk4Rao-na9myPX9X5JxYMbo,644
37
- fleet/instance/__init__.py,sha256=Hr8xPPoqzKOViXZXWmaL6dQ7NOBn-GooTGzoIvGmiE4,514
38
- fleet/instance/base.py,sha256=MMq3IoXFT5dl3lTxA0qzhw12OEe43b3h7qCQdUR1yvk,1498
39
- fleet/instance/client.py,sha256=KBVIojg5-OfRWf0MkHeuSt3C3NyZNhDtHKJmJoLuQs8,5530
40
- fleet/instance/models.py,sha256=ZTiue0YOuhuwX8jYfJAoCzGfqjLqqXRLqK1LVFhq6rQ,4183
41
- fleet/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
- fleet/resources/base.py,sha256=203gD54NP1IvjuSqFo-f7FvrkhtjChggtzrxJK7xf2E,667
43
- fleet/resources/browser.py,sha256=hRNM0YMsVQUAraZGNi_B-KXxLpuddy4ntoEDFSw7czU,1295
44
- fleet/resources/sqlite.py,sha256=sZVWsuq46ger-ta6PSlqcXGJG8iWpNQVj0CPmDNBXv8,1446
45
- fleet/verifiers/__init__.py,sha256=mRMN8x0gDWFJ1MRLqdBtQw0gn_q8kDV3lMLyoiEf1yY,281
46
- fleet/verifiers/code.py,sha256=NJ4OLZnpqLkI1lXY7-5m2GuZklLxMzHUCnRMVyN2_OI,25
47
- fleet/verifiers/db.py,sha256=tssmvJjDHuBIy8qlL_P5-UdmEFUw2DZcqLsWZ8ot3Xw,27766
48
- fleet/verifiers/sql_differ.py,sha256=dmiGCFXVMEMbAX519OjhVqgA8ZvhnvdmC1BVpL7QCF0,6490
49
- fleet_python-0.2.12.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
50
- scripts/fix_sync_imports.py,sha256=nIPK0xIIuH17sOa-SI1QPGGWkz5K1gBxuL1rTN_5PFU,3103
51
- scripts/unasync.py,sha256=--Fmaae47o-dZ1HYgX1c3Nvi-rMjcFymTRlJcWWnmpw,725
52
- fleet_python-0.2.12.dist-info/METADATA,sha256=E-uVjx2PGP2Es79eQ7VSLu_Nc5beqAwefdF7jng7OXE,4358
53
- fleet_python-0.2.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
54
- fleet_python-0.2.12.dist-info/top_level.txt,sha256=_3DSmTohvSDf3AIP_BYfGzhwO1ECFwuzg83X-wHCx3Y,23
55
- fleet_python-0.2.12.dist-info/RECORD,,