prefect-client 3.3.8.dev1__py3-none-any.whl → 3.3.8.dev2__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.
- prefect/_build_info.py +3 -3
- prefect/client/schemas/actions.py +16 -2
- {prefect_client-3.3.8.dev1.dist-info → prefect_client-3.3.8.dev2.dist-info}/METADATA +1 -1
- {prefect_client-3.3.8.dev1.dist-info → prefect_client-3.3.8.dev2.dist-info}/RECORD +6 -6
- {prefect_client-3.3.8.dev1.dist-info → prefect_client-3.3.8.dev2.dist-info}/WHEEL +0 -0
- {prefect_client-3.3.8.dev1.dist-info → prefect_client-3.3.8.dev2.dist-info}/licenses/LICENSE +0 -0
prefect/_build_info.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Generated by versioningit
|
2
|
-
__version__ = "3.3.8.
|
3
|
-
__build_date__ = "2025-04-
|
4
|
-
__git_commit__ = "
|
2
|
+
__version__ = "3.3.8.dev2"
|
3
|
+
__build_date__ = "2025-04-30 08:08:18.628483+00:00"
|
4
|
+
__git_commit__ = "07107c3e1fd50fb76288b0107efaac6df4f57d2d"
|
5
5
|
__dirty__ = False
|
@@ -5,7 +5,7 @@ from typing import TYPE_CHECKING, Any, Callable, Optional, TypeVar, Union
|
|
5
5
|
from uuid import UUID, uuid4
|
6
6
|
|
7
7
|
import jsonschema
|
8
|
-
from pydantic import Field, field_validator, model_validator
|
8
|
+
from pydantic import BaseModel, Field, field_validator, model_validator
|
9
9
|
|
10
10
|
import prefect.client.schemas.objects as objects
|
11
11
|
from prefect._internal.schemas.bases import ActionBaseModel
|
@@ -46,7 +46,7 @@ from prefect.types import (
|
|
46
46
|
PositiveInteger,
|
47
47
|
StrictVariableValue,
|
48
48
|
)
|
49
|
-
from prefect.utilities.collections import listrepr
|
49
|
+
from prefect.utilities.collections import listrepr, visit_collection
|
50
50
|
from prefect.utilities.pydantic import get_class_fields_only
|
51
51
|
|
52
52
|
if TYPE_CHECKING:
|
@@ -518,6 +518,20 @@ class DeploymentFlowRunCreate(ActionBaseModel):
|
|
518
518
|
job_variables: Optional[dict[str, Any]] = Field(default=None)
|
519
519
|
labels: KeyValueLabelsField = Field(default_factory=dict)
|
520
520
|
|
521
|
+
@model_validator(mode="before")
|
522
|
+
def convert_parameters_to_plain_data(cls, values: dict[str, Any]) -> dict[str, Any]:
|
523
|
+
if "parameters" in values:
|
524
|
+
|
525
|
+
def convert_value(value: Any) -> Any:
|
526
|
+
if isinstance(value, BaseModel):
|
527
|
+
return value.model_dump(mode="json")
|
528
|
+
return value
|
529
|
+
|
530
|
+
values["parameters"] = visit_collection(
|
531
|
+
values["parameters"], convert_value, return_data=True
|
532
|
+
)
|
533
|
+
return values
|
534
|
+
|
521
535
|
|
522
536
|
class SavedSearchCreate(ActionBaseModel):
|
523
537
|
"""Data used by the Prefect REST API to create a saved search."""
|
@@ -1,7 +1,7 @@
|
|
1
1
|
prefect/.prefectignore,sha256=awSprvKT0vI8a64mEOLrMxhxqcO-b0ERQeYpA2rNKVQ,390
|
2
2
|
prefect/__init__.py,sha256=iCdcC5ZmeewikCdnPEP6YBAjPNV5dvfxpYCTpw30Hkw,3685
|
3
3
|
prefect/__main__.py,sha256=WFjw3kaYJY6pOTA7WDOgqjsz8zUEUZHCcj3P5wyVa-g,66
|
4
|
-
prefect/_build_info.py,sha256=
|
4
|
+
prefect/_build_info.py,sha256=xIf4RLsQNhfIBLCfQE-Vr-7wv5-VXT7GdtCt6aYYJWg,185
|
5
5
|
prefect/_result_records.py,sha256=S6QmsODkehGVSzbMm6ig022PYbI6gNKz671p_8kBYx4,7789
|
6
6
|
prefect/_versioning.py,sha256=nRawjhBY2XpAzS5dHm4ajj8GlSNCr_YOjg2Zbez69j0,14069
|
7
7
|
prefect/_waiters.py,sha256=Ia2ITaXdHzevtyWIgJoOg95lrEXQqNEOquHvw3T33UQ,9026
|
@@ -112,7 +112,7 @@ prefect/client/orchestration/_variables/client.py,sha256=wKBbZBLGgs5feDCil-xxKt3
|
|
112
112
|
prefect/client/orchestration/_work_pools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
113
113
|
prefect/client/orchestration/_work_pools/client.py,sha256=s1DfUQQBgB2sLiVVPhLNTlkueUDE6uFsh4mAzcSA1OE,19881
|
114
114
|
prefect/client/schemas/__init__.py,sha256=InZcDzdeWA2oaV0TlyvoMcyLcbi_aaqU1U9D6Gx-eoU,2747
|
115
|
-
prefect/client/schemas/actions.py,sha256=
|
115
|
+
prefect/client/schemas/actions.py,sha256=s-Ycs5DfiguN_jcc2Yq541TNRgopJjX5r5GujJLWVLg,34939
|
116
116
|
prefect/client/schemas/filters.py,sha256=zaiDkalrIpKjd38V4aP1GHlqD24KTPCZiKtPyX69ZWE,36607
|
117
117
|
prefect/client/schemas/objects.py,sha256=nyaodVdbZIl-p5e7BvF5olPoiHZkymXkn7nFkFnXqXA,59402
|
118
118
|
prefect/client/schemas/responses.py,sha256=Zdcx7jlIaluEa2uYIOE5mK1HsJvWPErRAcaWM20oY_I,17336
|
@@ -319,7 +319,7 @@ prefect/workers/cloud.py,sha256=dPvG1jDGD5HSH7aM2utwtk6RaJ9qg13XjkA0lAIgQmY,287
|
|
319
319
|
prefect/workers/process.py,sha256=Yi5D0U5AQ51wHT86GdwtImXSefe0gJf3LGq4r4z9zwM,11090
|
320
320
|
prefect/workers/server.py,sha256=2pmVeJZiVbEK02SO6BEZaBIvHMsn6G8LzjW8BXyiTtk,1952
|
321
321
|
prefect/workers/utilities.py,sha256=VfPfAlGtTuDj0-Kb8WlMgAuOfgXCdrGAnKMapPSBrwc,2483
|
322
|
-
prefect_client-3.3.8.
|
323
|
-
prefect_client-3.3.8.
|
324
|
-
prefect_client-3.3.8.
|
325
|
-
prefect_client-3.3.8.
|
322
|
+
prefect_client-3.3.8.dev2.dist-info/METADATA,sha256=JE77CAqyGDR4Dj3Uov__9h-8ItXQIfNE4MOMuoqxzlY,7471
|
323
|
+
prefect_client-3.3.8.dev2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
324
|
+
prefect_client-3.3.8.dev2.dist-info/licenses/LICENSE,sha256=MCxsn8osAkzfxKC4CC_dLcUkU8DZLkyihZ8mGs3Ah3Q,11357
|
325
|
+
prefect_client-3.3.8.dev2.dist-info/RECORD,,
|
File without changes
|
{prefect_client-3.3.8.dev1.dist-info → prefect_client-3.3.8.dev2.dist-info}/licenses/LICENSE
RENAMED
File without changes
|