dyff-schema 0.31.1__tar.gz → 0.32.0__tar.gz
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 dyff-schema might be problematic. Click here for more details.
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/.gitlab-ci.yml +5 -5
- {dyff_schema-0.31.1/dyff_schema.egg-info → dyff_schema-0.32.0}/PKG-INFO +1 -1
- dyff_schema-0.32.0/dyff/schema/_version.py +2 -0
- dyff_schema-0.32.0/dyff/schema/responses.py +4 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/v0/r1/base.py +8 -8
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/v0/r1/commands.py +19 -1
- dyff_schema-0.32.0/dyff/schema/v0/r1/responses.py +38 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0/dyff_schema.egg-info}/PKG-INFO +1 -1
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff_schema.egg-info/SOURCES.txt +2 -0
- dyff_schema-0.31.1/dyff/schema/_version.py +0 -2
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/.gitignore +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/.idea/dyff-schema.iml +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/.licenserc.yaml +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/.pre-commit-config.yaml +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/.prettierignore +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/.secrets.baseline +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/CODE_OF_CONDUCT.md +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/LICENSE +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/NOTICE +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/README.md +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/__init__.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/adapters.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/annotations.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/base.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/commands.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/copydoc.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/dataset/__init__.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/dataset/arrow.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/dataset/binary.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/dataset/classification.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/dataset/embedding.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/dataset/text.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/dataset/vision.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/errors.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/ids.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/io/__init__.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/io/vllm.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/platform.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/py.typed +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/quantity.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/requests.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/test.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/v0/__init__.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/v0/r1/__init__.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/v0/r1/adapters.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/v0/r1/dataset/__init__.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/v0/r1/dataset/arrow.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/v0/r1/dataset/binary.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/v0/r1/dataset/classification.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/v0/r1/dataset/embedding.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/v0/r1/dataset/text.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/v0/r1/dataset/vision.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/v0/r1/io/__init__.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/v0/r1/io/vllm.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/v0/r1/platform.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/v0/r1/requests.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/v0/r1/test.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/v0/r1/version.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff/schema/version.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff_schema.egg-info/dependency_links.txt +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff_schema.egg-info/requires.txt +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/dyff_schema.egg-info/top_level.txt +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/makefile +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/pyproject.toml +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/setup.cfg +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/tests/test_adapters.py +0 -0
- {dyff_schema-0.31.1 → dyff_schema-0.32.0}/tests/test_import.py +0 -0
|
@@ -8,19 +8,19 @@ stages:
|
|
|
8
8
|
|
|
9
9
|
include:
|
|
10
10
|
- project: saferatday0/library/gitlab
|
|
11
|
-
ref: 0.
|
|
11
|
+
ref: 0.17.2
|
|
12
12
|
file:
|
|
13
13
|
- gitlab-release.yml
|
|
14
14
|
- project: saferatday0/library/detect-secrets
|
|
15
|
-
ref: 0.
|
|
15
|
+
ref: 0.7.2
|
|
16
16
|
file:
|
|
17
17
|
- detect-secrets.yml
|
|
18
18
|
- project: saferatday0/library/prettier
|
|
19
|
-
ref: 0.
|
|
19
|
+
ref: 0.7.1
|
|
20
20
|
file:
|
|
21
21
|
- prettier.yml
|
|
22
22
|
- project: saferatday0/library/python
|
|
23
|
-
ref: 0.21.
|
|
23
|
+
ref: 0.21.2
|
|
24
24
|
file:
|
|
25
25
|
- python-autoflake.yml
|
|
26
26
|
- python-black.yml
|
|
@@ -33,7 +33,7 @@ include:
|
|
|
33
33
|
- python-twine-upload.yml
|
|
34
34
|
- python-docformatter.yml
|
|
35
35
|
- project: saferatday0/library/skywalking-eyes
|
|
36
|
-
ref: 0.
|
|
36
|
+
ref: 0.8.3
|
|
37
37
|
file:
|
|
38
38
|
- license-eye-header-check.yml
|
|
39
39
|
|
|
@@ -561,8 +561,8 @@ class JsonMergePatchSemantics(DyffSchemaBaseModel):
|
|
|
561
561
|
) -> _ModelAsDict:
|
|
562
562
|
return self.model_dump(
|
|
563
563
|
by_alias=by_alias,
|
|
564
|
-
exclude_unset=
|
|
565
|
-
exclude_none=
|
|
564
|
+
exclude_unset=True,
|
|
565
|
+
exclude_none=False,
|
|
566
566
|
**kwargs,
|
|
567
567
|
)
|
|
568
568
|
|
|
@@ -576,8 +576,8 @@ class JsonMergePatchSemantics(DyffSchemaBaseModel):
|
|
|
576
576
|
) -> str:
|
|
577
577
|
return self.model_dump_json(
|
|
578
578
|
by_alias=by_alias,
|
|
579
|
-
exclude_unset=
|
|
580
|
-
exclude_none=
|
|
579
|
+
exclude_unset=True,
|
|
580
|
+
exclude_none=False,
|
|
581
581
|
**kwargs,
|
|
582
582
|
)
|
|
583
583
|
|
|
@@ -591,8 +591,8 @@ class JsonMergePatchSemantics(DyffSchemaBaseModel):
|
|
|
591
591
|
) -> _ModelAsDict:
|
|
592
592
|
return super().model_dump(
|
|
593
593
|
by_alias=by_alias,
|
|
594
|
-
exclude_unset=
|
|
595
|
-
exclude_none=
|
|
594
|
+
exclude_unset=True,
|
|
595
|
+
exclude_none=False,
|
|
596
596
|
**kwargs,
|
|
597
597
|
)
|
|
598
598
|
|
|
@@ -606,8 +606,8 @@ class JsonMergePatchSemantics(DyffSchemaBaseModel):
|
|
|
606
606
|
) -> str:
|
|
607
607
|
return super().model_dump_json(
|
|
608
608
|
by_alias=by_alias,
|
|
609
|
-
exclude_unset=
|
|
610
|
-
exclude_none=
|
|
609
|
+
exclude_unset=True,
|
|
610
|
+
exclude_none=False,
|
|
611
611
|
**kwargs,
|
|
612
612
|
)
|
|
613
613
|
|
|
@@ -10,7 +10,7 @@ from __future__ import annotations
|
|
|
10
10
|
from typing import Literal, Optional, Union
|
|
11
11
|
|
|
12
12
|
import pydantic
|
|
13
|
-
from pydantic import StringConstraints
|
|
13
|
+
from pydantic import StringConstraints, field_serializer
|
|
14
14
|
from typing_extensions import Annotated
|
|
15
15
|
|
|
16
16
|
from .base import DyffSchemaBaseModel, JsonMergePatchSemantics
|
|
@@ -107,6 +107,12 @@ class EditEntityDocumentationAttributes(DyffSchemaBaseModel):
|
|
|
107
107
|
description="Edits to make to the documentation."
|
|
108
108
|
)
|
|
109
109
|
|
|
110
|
+
@field_serializer("documentation")
|
|
111
|
+
def _serialize_documentation(
|
|
112
|
+
self, documentation: EditEntityDocumentationPatch, _info
|
|
113
|
+
):
|
|
114
|
+
return documentation.model_dump(mode=_info.mode)
|
|
115
|
+
|
|
110
116
|
|
|
111
117
|
class EditEntityDocumentationData(EntityIdentifier):
|
|
112
118
|
"""Payload data for the EditEntityDocumentation command."""
|
|
@@ -149,6 +155,10 @@ class EditEntityLabelsData(EntityIdentifier):
|
|
|
149
155
|
description="The command attributes"
|
|
150
156
|
)
|
|
151
157
|
|
|
158
|
+
@field_serializer("attributes")
|
|
159
|
+
def _serialize_attributes(self, attributes: EditEntityLabelsAttributes, _info):
|
|
160
|
+
return attributes.model_dump(mode=_info.mode)
|
|
161
|
+
|
|
152
162
|
|
|
153
163
|
class EditEntityLabels(Command):
|
|
154
164
|
"""Edit the labels associated with an entity.
|
|
@@ -180,6 +190,10 @@ class EditFamilyMembersData(FamilyMembers, FamilyIdentifier):
|
|
|
180
190
|
description="The command attributes"
|
|
181
191
|
)
|
|
182
192
|
|
|
193
|
+
@field_serializer("attributes")
|
|
194
|
+
def _serialize_attributes(self, attributes: EditFamilyMembersAttributes, _info):
|
|
195
|
+
return attributes.model_dump(mode=_info.mode)
|
|
196
|
+
|
|
183
197
|
|
|
184
198
|
class EditFamilyMembers(Command):
|
|
185
199
|
"""Edit the labels associated with an entity.
|
|
@@ -261,6 +275,10 @@ class UpdateEntityStatusData(EntityIdentifier):
|
|
|
261
275
|
description="The command attributes"
|
|
262
276
|
)
|
|
263
277
|
|
|
278
|
+
@field_serializer("attributes")
|
|
279
|
+
def _serialize_attributes(self, attributes: UpdateEntityStatusAttributes, _info):
|
|
280
|
+
return attributes.model_dump(mode=_info.mode)
|
|
281
|
+
|
|
264
282
|
|
|
265
283
|
class UpdateEntityStatus(Command):
|
|
266
284
|
"""Update the status fields of an entity."""
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: 2024 UL Research Institutes
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
"""API response schemas for dyff platform endpoints.
|
|
4
|
+
|
|
5
|
+
These types represent the structured responses returned by dyff API endpoints. They are
|
|
6
|
+
shared between the API server and client libraries to ensure consistent data structures.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from __future__ import annotations
|
|
10
|
+
|
|
11
|
+
from typing import Dict, List
|
|
12
|
+
|
|
13
|
+
import pydantic
|
|
14
|
+
|
|
15
|
+
from .base import DyffSchemaBaseModel
|
|
16
|
+
from .platform import EntityIdentifier
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class WorkflowLogEntry(DyffSchemaBaseModel):
|
|
20
|
+
"""A single log entry from workflow infrastructure logs."""
|
|
21
|
+
|
|
22
|
+
timestamp: str = pydantic.Field(description="ISO 8601 timestamp")
|
|
23
|
+
message: str = pydantic.Field(description="Log message content")
|
|
24
|
+
labels: Dict[str, str] = pydantic.Field(
|
|
25
|
+
description="Kubernetes labels associated with the log entry"
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class WorkflowLogsResponse(DyffSchemaBaseModel):
|
|
30
|
+
"""Response from workflow logs endpoint."""
|
|
31
|
+
|
|
32
|
+
workflow: EntityIdentifier = pydantic.Field(
|
|
33
|
+
description="Entity that generated these workflow logs"
|
|
34
|
+
)
|
|
35
|
+
logs: List[WorkflowLogEntry] = pydantic.Field(
|
|
36
|
+
description="Log entries from the workflow execution"
|
|
37
|
+
)
|
|
38
|
+
totalLines: int = pydantic.Field(description="Total number of log lines available")
|
|
@@ -24,6 +24,7 @@ dyff/schema/platform.py
|
|
|
24
24
|
dyff/schema/py.typed
|
|
25
25
|
dyff/schema/quantity.py
|
|
26
26
|
dyff/schema/requests.py
|
|
27
|
+
dyff/schema/responses.py
|
|
27
28
|
dyff/schema/test.py
|
|
28
29
|
dyff/schema/version.py
|
|
29
30
|
dyff/schema/dataset/__init__.py
|
|
@@ -42,6 +43,7 @@ dyff/schema/v0/r1/base.py
|
|
|
42
43
|
dyff/schema/v0/r1/commands.py
|
|
43
44
|
dyff/schema/v0/r1/platform.py
|
|
44
45
|
dyff/schema/v0/r1/requests.py
|
|
46
|
+
dyff/schema/v0/r1/responses.py
|
|
45
47
|
dyff/schema/v0/r1/test.py
|
|
46
48
|
dyff/schema/v0/r1/version.py
|
|
47
49
|
dyff/schema/v0/r1/dataset/__init__.py
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|