zenml-nightly 0.62.0.dev20240717__py3-none-any.whl → 0.62.0.dev20240719__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.
- zenml/VERSION +1 -1
- zenml/models/v2/core/component.py +29 -0
- zenml/zen_stores/schemas/component_schemas.py +14 -0
- {zenml_nightly-0.62.0.dev20240717.dist-info → zenml_nightly-0.62.0.dev20240719.dist-info}/METADATA +1 -1
- {zenml_nightly-0.62.0.dev20240717.dist-info → zenml_nightly-0.62.0.dev20240719.dist-info}/RECORD +8 -8
- {zenml_nightly-0.62.0.dev20240717.dist-info → zenml_nightly-0.62.0.dev20240719.dist-info}/LICENSE +0 -0
- {zenml_nightly-0.62.0.dev20240717.dist-info → zenml_nightly-0.62.0.dev20240719.dist-info}/WHEEL +0 -0
- {zenml_nightly-0.62.0.dev20240717.dist-info → zenml_nightly-0.62.0.dev20240719.dist-info}/entry_points.txt +0 -0
zenml/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.62.0.
|
1
|
+
0.62.0.dev20240719
|
@@ -191,6 +191,17 @@ class ComponentResponseBody(WorkspaceScopedResponseBody):
|
|
191
191
|
title="The flavor of the stack component.",
|
192
192
|
max_length=STR_FIELD_MAX_LENGTH,
|
193
193
|
)
|
194
|
+
integration: Optional[str] = Field(
|
195
|
+
default=None,
|
196
|
+
title="The name of the integration that the component's flavor "
|
197
|
+
"belongs to.",
|
198
|
+
max_length=STR_FIELD_MAX_LENGTH,
|
199
|
+
)
|
200
|
+
logo_url: Optional[str] = Field(
|
201
|
+
default=None,
|
202
|
+
title="Optionally, a url pointing to a png,"
|
203
|
+
"svg or jpg can be attached.",
|
204
|
+
)
|
194
205
|
|
195
206
|
|
196
207
|
class ComponentResponseMetadata(WorkspaceScopedResponseMetadata):
|
@@ -285,6 +296,24 @@ class ComponentResponse(
|
|
285
296
|
"""
|
286
297
|
return self.get_body().flavor
|
287
298
|
|
299
|
+
@property
|
300
|
+
def integration(self) -> Optional[str]:
|
301
|
+
"""The `integration` property.
|
302
|
+
|
303
|
+
Returns:
|
304
|
+
the value of the property.
|
305
|
+
"""
|
306
|
+
return self.get_body().integration
|
307
|
+
|
308
|
+
@property
|
309
|
+
def logo_url(self) -> Optional[str]:
|
310
|
+
"""The `logo_url` property.
|
311
|
+
|
312
|
+
Returns:
|
313
|
+
the value of the property.
|
314
|
+
"""
|
315
|
+
return self.get_body().logo_url
|
316
|
+
|
288
317
|
@property
|
289
318
|
def configuration(self) -> Dict[str, Any]:
|
290
319
|
"""The `configuration` property.
|
@@ -38,6 +38,7 @@ from zenml.zen_stores.schemas.user_schemas import UserSchema
|
|
38
38
|
from zenml.zen_stores.schemas.workspace_schemas import WorkspaceSchema
|
39
39
|
|
40
40
|
if TYPE_CHECKING:
|
41
|
+
from zenml.zen_stores.schemas.flavor_schemas import FlavorSchema
|
41
42
|
from zenml.zen_stores.schemas.logs_schemas import LogsSchema
|
42
43
|
from zenml.zen_stores.schemas.run_metadata_schemas import RunMetadataSchema
|
43
44
|
from zenml.zen_stores.schemas.schedule_schema import ScheduleSchema
|
@@ -85,6 +86,13 @@ class StackComponentSchema(NamedSchema, table=True):
|
|
85
86
|
run_metadata: List["RunMetadataSchema"] = Relationship(
|
86
87
|
back_populates="stack_component",
|
87
88
|
)
|
89
|
+
flavor_schema: Optional["FlavorSchema"] = Relationship(
|
90
|
+
sa_relationship_kwargs={
|
91
|
+
"primaryjoin": "and_(foreign(StackComponentSchema.flavor) == FlavorSchema.name, foreign(StackComponentSchema.type) == FlavorSchema.type)",
|
92
|
+
"lazy": "joined",
|
93
|
+
"uselist": False,
|
94
|
+
},
|
95
|
+
)
|
88
96
|
|
89
97
|
run_or_step_logs: List["LogsSchema"] = Relationship(
|
90
98
|
back_populates="artifact_store",
|
@@ -161,6 +169,12 @@ class StackComponentSchema(NamedSchema, table=True):
|
|
161
169
|
user=self.user.to_model() if self.user else None,
|
162
170
|
created=self.created,
|
163
171
|
updated=self.updated,
|
172
|
+
logo_url=self.flavor_schema.logo_url
|
173
|
+
if self.flavor_schema
|
174
|
+
else None,
|
175
|
+
integration=self.flavor_schema.integration
|
176
|
+
if self.flavor_schema
|
177
|
+
else None,
|
164
178
|
)
|
165
179
|
metadata = None
|
166
180
|
if include_metadata:
|
{zenml_nightly-0.62.0.dev20240717.dist-info → zenml_nightly-0.62.0.dev20240719.dist-info}/RECORD
RENAMED
@@ -6,7 +6,7 @@ RELEASE_NOTES.md,sha256=rF05H0U7U4lCYWomDqKhWdaWtOfCFSOf10LNBoFnl3Y,349994
|
|
6
6
|
ROADMAP.md,sha256=hiLSmr16BH8Dfx7SaQM4JcXCGCVl6mFZPFAwJeDTrJU,407
|
7
7
|
SECURITY.md,sha256=9DepA8y03yvCZLHEfcXLTDH4lUyKHquAdukBsccNN7c,682
|
8
8
|
zenml/README.md,sha256=827dekbOWAs1BpW7VF1a4d7EbwPbjwccX-2zdXBENZo,1777
|
9
|
-
zenml/VERSION,sha256=
|
9
|
+
zenml/VERSION,sha256=Gbq4CdB9Z7CjJ5RLBoMark6aI20BmsoTqXQU17hRTPw,19
|
10
10
|
zenml/__init__.py,sha256=6zRqB0FeBWX5E4Np9k9jzJgKaEHKvLFbtmOZQYrGpD8,2453
|
11
11
|
zenml/_hub/__init__.py,sha256=6qDzpQAAZa__Aiiz0mC1qM-9dw9_jk_v_aXeJknxbDE,644
|
12
12
|
zenml/_hub/client.py,sha256=Um2df1JO7-BmNm65efHSPpV5e0GITuoQJmod_wkdvbw,9136
|
@@ -586,7 +586,7 @@ zenml/models/v2/core/artifact_version.py,sha256=kmMmYWnN6DO6jPWb-Ct89d0p9Vj4c32_
|
|
586
586
|
zenml/models/v2/core/artifact_visualization.py,sha256=milAHTpfuYd8Dx_oB4hcPYJL-TMoiU0FwUI0UhB3F-E,3115
|
587
587
|
zenml/models/v2/core/code_reference.py,sha256=9xy3Gzychq16lLUs01va3gGfwdu-AMrFgys_ua89uFY,3557
|
588
588
|
zenml/models/v2/core/code_repository.py,sha256=S_p-cC99g0IxwWc8ux1enveM6pXhkyKMF8sQiUnR7qc,5925
|
589
|
-
zenml/models/v2/core/component.py,sha256=
|
589
|
+
zenml/models/v2/core/component.py,sha256=7isCreRBVolPxMp1VrkoNsyOA4LdSY5zMaXXVHbY_xo,13392
|
590
590
|
zenml/models/v2/core/device.py,sha256=Vlz4-6VwglKL3F-k7DObH-2LeHc8oRqKbYxSImHvDJk,13929
|
591
591
|
zenml/models/v2/core/event_source.py,sha256=kOexFvxj3iqsQGiGHPe549v9cSTo2GfsPCK05eDiNCw,6899
|
592
592
|
zenml/models/v2/core/event_source_flavor.py,sha256=TgrGkypnJUutMvvHE7Y9MbUiEeNXZxitc3eYlIbbsas,2077
|
@@ -1301,7 +1301,7 @@ zenml/zen_stores/schemas/artifact_schemas.py,sha256=TEOD23Mt8y5BsOdDbLnsUR-KrxgA
|
|
1301
1301
|
zenml/zen_stores/schemas/artifact_visualization_schemas.py,sha256=zv_Mg--WMTtAPEy5PXIkZlxq-oLrXZNLHXb_YgZbm0g,3667
|
1302
1302
|
zenml/zen_stores/schemas/base_schemas.py,sha256=T3d2IioA2XcCoeaHfEb_mp51ai1djegAi9BIHRE18s0,2015
|
1303
1303
|
zenml/zen_stores/schemas/code_repository_schemas.py,sha256=_v-HozD6UbyQgnQ_u4jo2vFsbWzUnQCMARTz4XEyhq0,7405
|
1304
|
-
zenml/zen_stores/schemas/component_schemas.py,sha256=
|
1304
|
+
zenml/zen_stores/schemas/component_schemas.py,sha256=KD5KdjG6s6LPSqVgtuX9IXUvrb2NyLrO46V9uSifb34,6966
|
1305
1305
|
zenml/zen_stores/schemas/device_schemas.py,sha256=8OOnfVYG9GFmYC8_vysHrL2TGQ4iu4-7r_BivITWsxw,8934
|
1306
1306
|
zenml/zen_stores/schemas/event_source_schemas.py,sha256=3CLt-TfJFQF-xJ6j5UnBFhNXMQTM-pLdIBazghyGmQw,6386
|
1307
1307
|
zenml/zen_stores/schemas/flavor_schemas.py,sha256=rQl5_qSXlvTXwyzq4QPtKCMBeT4hRJmPPNsh9FGx38U,5053
|
@@ -1336,8 +1336,8 @@ zenml/zen_stores/secrets_stores/service_connector_secrets_store.py,sha256=kPYX-Z
|
|
1336
1336
|
zenml/zen_stores/secrets_stores/sql_secrets_store.py,sha256=Bq1djrUP9saoD7vECjS7-TlA_7sjJGgw1talri4spjU,8656
|
1337
1337
|
zenml/zen_stores/sql_zen_store.py,sha256=K4FAR764dyEKFwDZTCHgnfseTx_tBtvHNSdnTWywGx8,378688
|
1338
1338
|
zenml/zen_stores/zen_store_interface.py,sha256=ZcgPtlAMdO5die42Hwd6l8glxHYsxFjzuCBewIu5Hrs,91984
|
1339
|
-
zenml_nightly-0.62.0.
|
1340
|
-
zenml_nightly-0.62.0.
|
1341
|
-
zenml_nightly-0.62.0.
|
1342
|
-
zenml_nightly-0.62.0.
|
1343
|
-
zenml_nightly-0.62.0.
|
1339
|
+
zenml_nightly-0.62.0.dev20240719.dist-info/LICENSE,sha256=wbnfEnXnafPbqwANHkV6LUsPKOtdpsd-SNw37rogLtc,11359
|
1340
|
+
zenml_nightly-0.62.0.dev20240719.dist-info/METADATA,sha256=8RdicRE2A9zcjwf1hGBMeEd2gzQ_JSZvWLz-CvAMpuI,21026
|
1341
|
+
zenml_nightly-0.62.0.dev20240719.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
1342
|
+
zenml_nightly-0.62.0.dev20240719.dist-info/entry_points.txt,sha256=QK3ETQE0YswAM2mWypNMOv8TLtr7EjnqAFq1br_jEFE,43
|
1343
|
+
zenml_nightly-0.62.0.dev20240719.dist-info/RECORD,,
|
{zenml_nightly-0.62.0.dev20240717.dist-info → zenml_nightly-0.62.0.dev20240719.dist-info}/LICENSE
RENAMED
File without changes
|
{zenml_nightly-0.62.0.dev20240717.dist-info → zenml_nightly-0.62.0.dev20240719.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|