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

@@ -6,7 +6,8 @@ examples/example_client.py,sha256=70HKEhz_Gb79YcvKQauCPdS08AAwjo9unt2dh1jN_Oo,10
6
6
  examples/example_mcp_anthropic.py,sha256=iyO0OCem5SWEtJQGan6pBuGfN3LZXeeIN9DdMHw9f9M,2542
7
7
  examples/example_mcp_openai.py,sha256=5BQzMWrNdtBrBCNcUYgU6qB9Aabc10UTMKvaFb4NerI,492
8
8
  examples/example_sync.py,sha256=l8l-QOGTMnijiSK0mt5aofzXqbv-kKU3WCow4QS-7yg,976
9
- examples/example_task.py,sha256=vXIUQHXRPM3lVEJOT7o0oVFZU8no3u_2BoSK1VRnHKA,6811
9
+ examples/example_task.py,sha256=W6Cuhtb06FWv2N972KjdVBdbNzkHwLBEZBTAeoHrweQ,7014
10
+ examples/example_tasks.py,sha256=tZMtT7wNzv6jb4VYoEKeR0eX-dJhwajTtoBN-os6-I4,776
10
11
  examples/example_verifier.py,sha256=PfGphI6gnfhSM_SRb4KyhHYddJmapk2hhRrSIaxAtr4,2025
11
12
  examples/gemini_example.py,sha256=8mDXGGCaodyK6uXgpWhxi-DQ5OA-GFW12Gfwh0b3EDY,16177
12
13
  examples/json_tasks_example.py,sha256=3ub2LLiC6hXpVEH1175QxCmfCD3Blfo3yoG85uV5CS8,5334
@@ -17,18 +18,18 @@ examples/query_builder_example.py,sha256=Q3lUBETHpu1aS2FXAO79ADYqCxOjMMMZNgCcFVa
17
18
  examples/quickstart.py,sha256=1VT39IRRhemsJgxi0O0gprdpcw7HB4pYO97GAYagIcg,3788
18
19
  fleet/__init__.py,sha256=2WHAk_ZRIxDs1uxrWf-sSeokiK4f_nDVHJJ1_VUFSPA,2306
19
20
  fleet/base.py,sha256=0yYuMN0lBkrfTTZBt5NQp5112xWgziuWEk4GuHJB1wE,9189
20
- fleet/client.py,sha256=K7tLdwvLx-ExGtNoIDqsuROb-egaM-OxGijI19vnUqY,12069
21
+ fleet/client.py,sha256=Nb4m6AX7uG6k0hdNqyBzAcEdYu1kJLicUnzvTAE_u8Y,20242
21
22
  fleet/config.py,sha256=rqR-y2TbZS-VYACaqrg-PUe0y0UDbR1ZNU1KGJZBwNQ,272
22
23
  fleet/exceptions.py,sha256=fUmPwWhnT8SR97lYsRq0kLHQHKtSh2eJS0VQ2caSzEI,5055
23
- fleet/models.py,sha256=trtM-3A2wW4pOg6EvbKxiukU2clSNFrj4Uax7l2uiIM,11665
24
- fleet/tasks.py,sha256=OScp0tHIbCmOpmCFzHATBmA7WiJMlehP3rvEfeMAoPk,1648
24
+ fleet/models.py,sha256=6SqoWdTIygF3jriZW53a-jQ1JZoPatuWZ4JQ1qIY5MY,12453
25
+ fleet/tasks.py,sha256=1tOE_13PtaxBTrFit4NgLGN8vqtvU4lroSODxERAAi0,3238
25
26
  fleet/types.py,sha256=eXeI8BFmiU5hln0PVvJbUZs7BSjl6wSqAtN9zaJT6yY,652
26
27
  fleet/_async/__init__.py,sha256=AJWCnuo7XKja4yBb8fK2wX7ntciLXQrpzdRHwjTRP6M,62
27
28
  fleet/_async/base.py,sha256=s0rYOtXsMJeitOvpa-Oh8ciLV226p_TIPp3fplzWvV4,9209
28
- fleet/_async/client.py,sha256=2LlMFO5cnLIwvunSixKRk3kJ-F55WufmoyutwgDYf64,12414
29
+ fleet/_async/client.py,sha256=O2LB8FyJ4rGzAuE8nAeycYZAACQGPPENMKS7YDhTOmA,20388
29
30
  fleet/_async/exceptions.py,sha256=fUmPwWhnT8SR97lYsRq0kLHQHKtSh2eJS0VQ2caSzEI,5055
30
- fleet/_async/models.py,sha256=trtM-3A2wW4pOg6EvbKxiukU2clSNFrj4Uax7l2uiIM,11665
31
- fleet/_async/tasks.py,sha256=7ddJWkgulGW7dTPVQUUcl2L0HgsajmMQY6AUblHpG8A,1649
31
+ fleet/_async/models.py,sha256=6SqoWdTIygF3jriZW53a-jQ1JZoPatuWZ4JQ1qIY5MY,12453
32
+ fleet/_async/tasks.py,sha256=CJDt3dhg_88bHUYVqp2WcVenh6Y41wvp_iMaRiJeFDs,4069
32
33
  fleet/_async/env/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
34
  fleet/_async/env/client.py,sha256=MR2Ju7AudGWmztTVUPPut-ys3yqD7D00D_jsxZaRybA,858
34
35
  fleet/_async/instance/__init__.py,sha256=PtmJq8J8bh0SOQ2V55QURz5GJfobozwtQoqhaOk3_tI,515
@@ -38,32 +39,32 @@ fleet/_async/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
38
39
  fleet/_async/resources/base.py,sha256=ZFx2I9L7px-Z8LvbPUZJtbtajpqUn1yS1NFbZZutP9Q,668
39
40
  fleet/_async/resources/browser.py,sha256=oldoSiymJ1lJkADhpUG81ViOBDNyppX1jSoEwe9-W94,1369
40
41
  fleet/_async/resources/sqlite.py,sha256=DvDLRI5dJ7_v4WkHw-Zday1M_FQUdzAqUCy9FtfOY8w,26636
41
- fleet/_async/verifiers/__init__.py,sha256=Z2Ic77mw6-mhF5CmVrucmDnAGSTAtiejR_eZjTjPPA0,447
42
+ fleet/_async/verifiers/__init__.py,sha256=7dtLOFgirYQmEIiDMcx02-ZqR7yqrfjOiqBBuXBz914,466
42
43
  fleet/_async/verifiers/bundler.py,sha256=A4yR3wBOcVZYFAv87CD58QlJn6L4QXeilrasnVm8n74,26185
43
- fleet/_async/verifiers/verifier.py,sha256=-BNKVKVpg_x4VoPNafEEIGZrP0u7Nh-7OKN6juCiqqs,12322
44
+ fleet/_async/verifiers/verifier.py,sha256=vS2Nv-tLgDa_1xhMHdkw0297uNMzzSlRPsXe4zIJsqw,14528
44
45
  fleet/env/__init__.py,sha256=Wt6mO2dQnOdzdjOCvtiIP49wpSrmS7OaZ_OeHNrzqsY,595
45
46
  fleet/env/client.py,sha256=2FzA7qfR-B7tVdCNa4uQk10g8zXV-9MNjAqx2D5vQ7c,710
46
47
  fleet/instance/__init__.py,sha256=-Anms7Vw_FO8VBIvwnAnq4rQjwl_XNfAS-i7bypHMow,478
47
48
  fleet/instance/base.py,sha256=OYqzBwZFfTX9wlBGSG5gljqj98NbiJeKIfFJ3uj5I4s,1587
48
- fleet/instance/client.py,sha256=4x-3IZZNwlK02OJLKp7mhSymRgXk8NToRCDU3ZuDnJ0,5891
49
+ fleet/instance/client.py,sha256=0gNXWRKNSXUqVTf6E5VUFO2gEZrBTF87QnvpLr5xaD8,5895
49
50
  fleet/instance/models.py,sha256=ZTiue0YOuhuwX8jYfJAoCzGfqjLqqXRLqK1LVFhq6rQ,4183
50
51
  fleet/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
51
52
  fleet/resources/base.py,sha256=203gD54NP1IvjuSqFo-f7FvrkhtjChggtzrxJK7xf2E,667
52
53
  fleet/resources/browser.py,sha256=hRNM0YMsVQUAraZGNi_B-KXxLpuddy4ntoEDFSw7czU,1295
53
54
  fleet/resources/mcp.py,sha256=lDMyY4pMC3Khwp2Wycc6Ds6KeLAUOgHkDnmztuAnXm8,1872
54
55
  fleet/resources/sqlite.py,sha256=FeAykW7T0Pol7ckDLCtcjJDHDTI7y9ilWp7fnw4tuM8,26266
55
- fleet/verifiers/__init__.py,sha256=9sRqYEjPN-EGMhytkw0Q68vay7azmpY9TvkBJQ3_8Os,489
56
+ fleet/verifiers/__init__.py,sha256=qfjAuF_QKu7rPD8yNtBcGMaAUiyCoECDma3MHgSTUuQ,459
56
57
  fleet/verifiers/bundler.py,sha256=A4yR3wBOcVZYFAv87CD58QlJn6L4QXeilrasnVm8n74,26185
57
58
  fleet/verifiers/code.py,sha256=EOi6ES8Zdzlm9iybRFaJmz9t2W4Ulo2wrCdbEBqxzbc,47
58
59
  fleet/verifiers/db.py,sha256=tssmvJjDHuBIy8qlL_P5-UdmEFUw2DZcqLsWZ8ot3Xw,27766
59
60
  fleet/verifiers/decorator.py,sha256=Q-KHhicnIYFwX7FX_VZguzNfu8ZslqNUeWxcS2CwNVY,3386
60
- fleet/verifiers/parse.py,sha256=FYbzgX86dLAxoAZ3jXfu6zRPlNxgzjTkhO3yxMC0hZ4,5261
61
+ fleet/verifiers/parse.py,sha256=W4cBnto-XfPNrRwsYs7PFR3QJoI5UfWyB-QWsm1jUEg,7844
61
62
  fleet/verifiers/sql_differ.py,sha256=dmiGCFXVMEMbAX519OjhVqgA8ZvhnvdmC1BVpL7QCF0,6490
62
- fleet/verifiers/verifier.py,sha256=evTFOzCIkfLEhFLtLGE25C4BQuajIgyOQvXTEHseLUA,12264
63
- fleet_python-0.2.26.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
64
- scripts/fix_sync_imports.py,sha256=zangqElfqIvIc-E0S46m6R-51pTZ6gbd8oUVkvCGzJo,4768
63
+ fleet/verifiers/verifier.py,sha256=7yiqko332lX0pgjbyAQ6KbaGm_V8TX864ceH-4fvvW0,14470
64
+ fleet_python-0.2.28.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
65
+ scripts/fix_sync_imports.py,sha256=m2OHz1lCAdDVIRhPvn8grNXpRaPo1b99dRMYI7TiEes,7117
65
66
  scripts/unasync.py,sha256=--Fmaae47o-dZ1HYgX1c3Nvi-rMjcFymTRlJcWWnmpw,725
66
- fleet_python-0.2.26.dist-info/METADATA,sha256=AhWMG5tD6jquYWQPUgObXeGyS6lxi66Gga3F-1zUSIQ,3297
67
- fleet_python-0.2.26.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
68
- fleet_python-0.2.26.dist-info/top_level.txt,sha256=_3DSmTohvSDf3AIP_BYfGzhwO1ECFwuzg83X-wHCx3Y,23
69
- fleet_python-0.2.26.dist-info/RECORD,,
67
+ fleet_python-0.2.28.dist-info/METADATA,sha256=zShPvypnbRfyrVpHn6a27TuP9dFy3uvaWB5DFmgXN4o,3347
68
+ fleet_python-0.2.28.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
69
+ fleet_python-0.2.28.dist-info/top_level.txt,sha256=_3DSmTohvSDf3AIP_BYfGzhwO1ECFwuzg83X-wHCx3Y,23
70
+ fleet_python-0.2.28.dist-info/RECORD,,
@@ -9,18 +9,38 @@ def fix_file(filepath: Path) -> bool:
9
9
  content = filepath.read_text()
10
10
  original = content
11
11
 
12
- # Remove asyncio import if it exists
13
- content = re.sub(r'^import asyncio.*\n', '', content, flags=re.MULTILINE)
14
- content = re.sub(r'^import asyncio as async_time.*\n', '', content, flags=re.MULTILINE)
15
- # Also remove indented asyncio imports (like in functions)
16
- content = re.sub(r'^\s+import asyncio.*\n', '', content, flags=re.MULTILINE)
12
+ # Handle asyncio imports - replace with inspect in verifier files, remove elsewhere
13
+ if 'verifier' in str(filepath).lower() and 'iscoroutinefunction' in content:
14
+ # In verifier files, replace asyncio with inspect
15
+ content = re.sub(r'^import asyncio\b', 'import inspect', content, flags=re.MULTILINE)
16
+ content = content.replace('asyncio.iscoroutinefunction', 'inspect.iscoroutinefunction')
17
+ else:
18
+ # In other files, remove asyncio imports
19
+ content = re.sub(r'^import asyncio.*\n', '', content, flags=re.MULTILINE)
20
+ content = re.sub(r'^import asyncio as async_time.*\n', '', content, flags=re.MULTILINE)
21
+ # Also remove indented asyncio imports (like in functions)
22
+ content = re.sub(r'^\s+import asyncio.*\n', '', content, flags=re.MULTILINE)
17
23
 
18
24
  # Fix any remaining asyncio.sleep or async_time.sleep calls
19
25
  content = content.replace('asyncio.sleep(', 'time.sleep(')
20
26
  content = content.replace('async_time.sleep(', 'time.sleep(')
21
27
 
22
- # Fix absolute imports to relative imports for verifiers
23
- content = content.replace('from fleet.verifiers import', 'from ..verifiers import')
28
+ # Fix absolute imports to relative imports for verifiers based on file location
29
+ rel_path = filepath.relative_to(Path(__file__).parent.parent / "fleet")
30
+ depth = len(rel_path.parts) - 1 # -1 because the file itself doesn't count
31
+
32
+ # Fix verifier imports specifically - only in non-verifiers directories
33
+ if 'verifiers' not in str(rel_path):
34
+ content = content.replace('from ..verifiers', 'from .verifiers')
35
+
36
+ # Fix specific cases for verifiers/__init__.py
37
+ if rel_path == Path('verifiers/__init__.py'):
38
+ # These should be relative imports within the verifiers package
39
+ content = content.replace('from ...verifiers.db import', 'from .db import')
40
+ content = content.replace('from ...verifiers.code import', 'from .code import')
41
+ # Also handle the case where unasync transformed fleet.verifiers to ..verifiers
42
+ content = content.replace('from ..verifiers.db import', 'from .db import')
43
+ content = content.replace('from ..verifiers.code import', 'from .code import')
24
44
 
25
45
  # Fix any remaining AsyncFleetPlaywrightWrapper references in docstrings
26
46
  content = content.replace('AsyncFleetPlaywrightWrapper', 'FleetPlaywrightWrapper')
@@ -56,6 +76,23 @@ def fix_file(filepath: Path) -> bool:
56
76
  content = content.replace('"Environment",', '"SyncEnv",')
57
77
  content = content.replace("'Environment',", "'SyncEnv',")
58
78
 
79
+ # Add async-to-sync conversion to client.py _create_verifier_from_data method
80
+ if rel_path.parts[0] == 'client.py' and len(rel_path.parts) == 1:
81
+ # Find the _create_verifier_from_data method and add async-to-sync conversion
82
+ if '_create_verifier_from_data' in content and 'from .verifiers.verifier import SyncVerifierFunction' in content:
83
+ # Look for the line where we have the verifier_code and add conversion before any other processing
84
+ insertion_point = 'from .verifiers.verifier import SyncVerifierFunction'
85
+ if insertion_point in content:
86
+ replacement = insertion_point + '''
87
+
88
+ # Convert async verifier code to sync
89
+ if 'async def' in verifier_code:
90
+ verifier_code = verifier_code.replace('async def', 'def')
91
+ if 'await ' in verifier_code:
92
+ verifier_code = verifier_code.replace('await ', '')'''
93
+
94
+ content = content.replace(insertion_point, replacement)
95
+
59
96
  # Fix playwright imports for sync version
60
97
  if 'playwright' in str(filepath):
61
98
  # Fix the import statement