fleet-python 0.2.66b3__py3-none-any.whl → 0.2.66b4__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/_async/tasks.py +6 -9
- fleet/tasks.py +6 -9
- {fleet_python-0.2.66b3.dist-info → fleet_python-0.2.66b4.dist-info}/METADATA +1 -1
- {fleet_python-0.2.66b3.dist-info → fleet_python-0.2.66b4.dist-info}/RECORD +7 -7
- {fleet_python-0.2.66b3.dist-info → fleet_python-0.2.66b4.dist-info}/WHEEL +0 -0
- {fleet_python-0.2.66b3.dist-info → fleet_python-0.2.66b4.dist-info}/licenses/LICENSE +0 -0
- {fleet_python-0.2.66b3.dist-info → fleet_python-0.2.66b4.dist-info}/top_level.txt +0 -0
fleet/_async/tasks.py
CHANGED
|
@@ -300,17 +300,14 @@ def verifier_from_string(
|
|
|
300
300
|
# This is now safe because we validated it contains only declarative code
|
|
301
301
|
exec(verifier_func, globals(), local_namespace)
|
|
302
302
|
|
|
303
|
-
#
|
|
304
|
-
|
|
305
|
-
# Imported functions have their actual module file path
|
|
306
|
-
func_obj = None
|
|
307
|
-
for name, obj in local_namespace.items():
|
|
308
|
-
if inspect.isfunction(obj) and obj.__code__.co_filename == "<string>":
|
|
309
|
-
func_obj = obj
|
|
310
|
-
break
|
|
303
|
+
# Get the function by the parsed function name
|
|
304
|
+
func_obj = local_namespace.get(func_name)
|
|
311
305
|
|
|
312
306
|
if func_obj is None:
|
|
313
|
-
raise ValueError("
|
|
307
|
+
raise ValueError(f"Function '{func_name}' not found in verifier code")
|
|
308
|
+
|
|
309
|
+
if not inspect.isfunction(func_obj):
|
|
310
|
+
raise ValueError(f"'{func_name}' is not a function")
|
|
314
311
|
|
|
315
312
|
# Create an AsyncVerifierFunction instance with raw code
|
|
316
313
|
verifier_instance = AsyncVerifierFunction(
|
fleet/tasks.py
CHANGED
|
@@ -299,17 +299,14 @@ def verifier_from_string(
|
|
|
299
299
|
# This is now safe because we validated it contains only declarative code
|
|
300
300
|
exec(verifier_func, exec_globals, local_namespace)
|
|
301
301
|
|
|
302
|
-
#
|
|
303
|
-
|
|
304
|
-
# Imported functions have their actual module file path
|
|
305
|
-
func_obj = None
|
|
306
|
-
for name, obj in local_namespace.items():
|
|
307
|
-
if inspect.isfunction(obj) and obj.__code__.co_filename == "<string>":
|
|
308
|
-
func_obj = obj
|
|
309
|
-
break
|
|
302
|
+
# Get the function by the parsed function name
|
|
303
|
+
func_obj = local_namespace.get(func_name)
|
|
310
304
|
|
|
311
305
|
if func_obj is None:
|
|
312
|
-
raise ValueError("
|
|
306
|
+
raise ValueError(f"Function '{func_name}' not found in verifier code")
|
|
307
|
+
|
|
308
|
+
if not inspect.isfunction(func_obj):
|
|
309
|
+
raise ValueError(f"'{func_name}' is not a function")
|
|
313
310
|
|
|
314
311
|
# Create an SyncVerifierFunction instance with raw code
|
|
315
312
|
verifier_instance = SyncVerifierFunction(
|
|
@@ -28,7 +28,7 @@ fleet/config.py,sha256=uY02ZKxVoXqVDta-0IMWaYJeE1CTXF_fA9NI6QUutmU,319
|
|
|
28
28
|
fleet/exceptions.py,sha256=fUmPwWhnT8SR97lYsRq0kLHQHKtSh2eJS0VQ2caSzEI,5055
|
|
29
29
|
fleet/global_client.py,sha256=frrDAFNM2ywN0JHLtlm9qbE1dQpnQJsavJpb7xSR_bU,1072
|
|
30
30
|
fleet/models.py,sha256=AuSApLRN6aIDTOuJ4mGUyS1K1oLG9Q2AzjIE0Zj61MY,13586
|
|
31
|
-
fleet/tasks.py,sha256=
|
|
31
|
+
fleet/tasks.py,sha256=2EfhYt7W7qOyACyRoPpne0a6KN78_hplBM4oIecI_I4,17253
|
|
32
32
|
fleet/types.py,sha256=L4Y82xICf1tzyCLqhLYUgEoaIIS5h9T05TyFNHSWs3s,652
|
|
33
33
|
fleet/_async/__init__.py,sha256=5oOTmh16UsPWL2gDKKWkj2j5WGNeUhMzbQFWjX21jsc,8310
|
|
34
34
|
fleet/_async/base.py,sha256=oisVTQsx0M_yTmyQJc3oij63uKZ97MHz-xYFsWXxQE8,9202
|
|
@@ -36,7 +36,7 @@ fleet/_async/client.py,sha256=w_g0aOLfyyK_OojjGVe3TgyQQsWxnybJRFMLOtsb0p8,33027
|
|
|
36
36
|
fleet/_async/exceptions.py,sha256=fUmPwWhnT8SR97lYsRq0kLHQHKtSh2eJS0VQ2caSzEI,5055
|
|
37
37
|
fleet/_async/global_client.py,sha256=4WskpLHbsDEgWW7hXMD09W-brkp4euy8w2ZJ88594rQ,1103
|
|
38
38
|
fleet/_async/models.py,sha256=6WMN--LJFV-A5L2jW8Y6q7HQfub7qGxGoVkPQhvS_jw,13358
|
|
39
|
-
fleet/_async/tasks.py,sha256=
|
|
39
|
+
fleet/_async/tasks.py,sha256=74GNmI-sFUaLcUtmApsXJBk-Sb0LoiLnN5Ywj24unv4,17272
|
|
40
40
|
fleet/_async/env/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
41
41
|
fleet/_async/env/client.py,sha256=hUwrKTAkTAbO94_pDaAH8LyvlS9q-7oT7ZRrNo03LNs,1309
|
|
42
42
|
fleet/_async/instance/__init__.py,sha256=PtmJq8J8bh0SOQ2V55QURz5GJfobozwtQoqhaOk3_tI,515
|
|
@@ -70,13 +70,13 @@ fleet/verifiers/parse.py,sha256=qz9AfJrTbjlg-LU-lE8Ciqi7Yt2a8-cs17FdpjTLhMk,8550
|
|
|
70
70
|
fleet/verifiers/parsing.py,sha256=EzlfHLogHPC1i5pfsF3ZCBJ8NY3s1uvz7v59CfcuMtI,3713
|
|
71
71
|
fleet/verifiers/sql_differ.py,sha256=TqTLWyK3uOyLbitT6HYzYEzuSFC39wcyhgk3rcm__k8,6525
|
|
72
72
|
fleet/verifiers/verifier.py,sha256=_lcxXVm8e0xRrK2gNJy9up7pW1zOkPRY5n5lQ85S8jg,14197
|
|
73
|
-
fleet_python-0.2.
|
|
73
|
+
fleet_python-0.2.66b4.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
74
74
|
scripts/fix_sync_imports.py,sha256=X9fWLTpiPGkSHsjyQUDepOJkxOqw1DPj7nd8wFlFqLQ,8368
|
|
75
75
|
scripts/unasync.py,sha256=vWVQxRWX8SRZO5cmzEhpvnG_REhCWXpidIGIpWmEcvI,696
|
|
76
76
|
tests/__init__.py,sha256=Re1SdyxH8NfyL1kjhi7SQkGP1mYeWB-D6UALqdIMd8I,35
|
|
77
77
|
tests/test_verifier_from_string.py,sha256=Lxi3TpFHFb-hG4-UhLKZJkqo84ax9YJY8G6beO-1erM,13581
|
|
78
78
|
tests/test_verifier_security.py,sha256=AvjWTVV-VlWaysNkHcRz1_UZxjYZYlr4ynM6uy2o9eM,12821
|
|
79
|
-
fleet_python-0.2.
|
|
80
|
-
fleet_python-0.2.
|
|
81
|
-
fleet_python-0.2.
|
|
82
|
-
fleet_python-0.2.
|
|
79
|
+
fleet_python-0.2.66b4.dist-info/METADATA,sha256=n80m0SKUQVigmTJTOqzsL984VJD_e5n75aSrIjN298I,3306
|
|
80
|
+
fleet_python-0.2.66b4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
81
|
+
fleet_python-0.2.66b4.dist-info/top_level.txt,sha256=qb1zIbtEktyhRFZdqVytwg54l64qtoZL0wjHB4bUg3c,29
|
|
82
|
+
fleet_python-0.2.66b4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|