dyff-schema 0.36.0__tar.gz → 0.36.2__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.36.0/dyff_schema.egg-info → dyff_schema-0.36.2}/PKG-INFO +1 -1
- dyff_schema-0.36.2/dyff/schema/_version.py +2 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/v0/r1/commands.py +32 -17
- {dyff_schema-0.36.0 → dyff_schema-0.36.2/dyff_schema.egg-info}/PKG-INFO +1 -1
- dyff_schema-0.36.0/dyff/schema/_version.py +0 -2
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/.gitignore +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/.gitlab-ci.yml +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/.idea/dyff-schema.iml +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/.licenserc.yaml +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/.pre-commit-config.yaml +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/.prettierignore +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/.secrets.baseline +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/CODE_OF_CONDUCT.md +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/LICENSE +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/NOTICE +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/README.md +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/__init__.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/adapters.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/annotations.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/base.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/commands.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/copydoc.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/dataset/__init__.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/dataset/arrow.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/dataset/binary.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/dataset/classification.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/dataset/embedding.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/dataset/text.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/dataset/vision.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/errors.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/ids.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/io/__init__.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/io/vllm.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/platform.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/py.typed +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/quantity.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/requests.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/responses.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/test.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/v0/__init__.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/v0/r1/__init__.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/v0/r1/adapters.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/v0/r1/base.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/v0/r1/dataset/__init__.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/v0/r1/dataset/arrow.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/v0/r1/dataset/binary.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/v0/r1/dataset/classification.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/v0/r1/dataset/embedding.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/v0/r1/dataset/text.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/v0/r1/dataset/vision.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/v0/r1/io/__init__.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/v0/r1/io/vllm.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/v0/r1/oci.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/v0/r1/platform.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/v0/r1/requests.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/v0/r1/responses.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/v0/r1/test.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/v0/r1/version.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff/schema/version.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff_schema.egg-info/SOURCES.txt +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff_schema.egg-info/dependency_links.txt +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff_schema.egg-info/requires.txt +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/dyff_schema.egg-info/top_level.txt +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/makefile +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/pyproject.toml +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/setup.cfg +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/tests/test_adapters.py +0 -0
- {dyff_schema-0.36.0 → dyff_schema-0.36.2}/tests/test_import.py +0 -0
|
@@ -101,7 +101,7 @@ class CreateChallengeTask(Command):
|
|
|
101
101
|
# ----------------------------------------------------------------------------
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
class
|
|
104
|
+
class ChallengeContentPagePatch(JsonMergePatchSemantics):
|
|
105
105
|
"""Same properties as ChallengeContentPage.
|
|
106
106
|
|
|
107
107
|
Fields that are not assigned explicitly remain unchanged.
|
|
@@ -129,18 +129,28 @@ class EditChallengeContentPagePatch(JsonMergePatchSemantics):
|
|
|
129
129
|
)
|
|
130
130
|
|
|
131
131
|
|
|
132
|
-
class
|
|
133
|
-
page:
|
|
132
|
+
class ChallengeContentPatch(DyffSchemaBaseModel):
|
|
133
|
+
page: ChallengeContentPagePatch = pydantic.Field(
|
|
134
|
+
default_factory=ChallengeContentPagePatch,
|
|
135
|
+
description="Edits to make to the page portion of the content.",
|
|
136
|
+
)
|
|
134
137
|
|
|
135
138
|
@field_serializer("page")
|
|
136
|
-
def _serialize_page(self, page:
|
|
139
|
+
def _serialize_page(self, page: ChallengeContentPagePatch, _info):
|
|
137
140
|
return page.model_dump(mode=_info.mode)
|
|
138
141
|
|
|
139
142
|
|
|
143
|
+
class EditChallengeContentPatch(DyffSchemaBaseModel):
|
|
144
|
+
content: Optional[ChallengeContentPatch] = pydantic.Field(
|
|
145
|
+
default=None,
|
|
146
|
+
description="Edits to make to the content of the challenge-related resource.",
|
|
147
|
+
)
|
|
148
|
+
|
|
149
|
+
|
|
140
150
|
class EditChallengeContentAttributes(DyffSchemaBaseModel):
|
|
141
151
|
"""Attributes for the EditChallengePageContent command."""
|
|
142
152
|
|
|
143
|
-
|
|
153
|
+
content: Optional[EditChallengeContentPatch] = pydantic.Field(
|
|
144
154
|
default=None,
|
|
145
155
|
description="Edits to make to the content of the main challenge page.",
|
|
146
156
|
)
|
|
@@ -173,7 +183,7 @@ class EditChallengeContent(Command):
|
|
|
173
183
|
# ----------------------------------------------------------------------------
|
|
174
184
|
|
|
175
185
|
|
|
176
|
-
class
|
|
186
|
+
class ChallengeTaskRulesExecutionEnvironmentPatch(JsonMergePatchSemantics):
|
|
177
187
|
"""Same properties as ChallengeTaskExecutionEnvironmentChocies, but assigning None
|
|
178
188
|
to a field is interpreted as a command to delete that field.
|
|
179
189
|
|
|
@@ -188,7 +198,7 @@ class EditChallengeTaskRulesExecutionEnvironmentChoices(JsonMergePatchSemantics)
|
|
|
188
198
|
)
|
|
189
199
|
|
|
190
200
|
|
|
191
|
-
class
|
|
201
|
+
class ChallengeTaskRulesSchedulePatch(JsonMergePatchSemantics):
|
|
192
202
|
"""Same properties as ChallengeTaskSchedule, but assigning None to a field is
|
|
193
203
|
interpreted as a command to delete that field.
|
|
194
204
|
|
|
@@ -221,26 +231,27 @@ class EditChallengeTaskRulesSchedule(JsonMergePatchSemantics):
|
|
|
221
231
|
)
|
|
222
232
|
|
|
223
233
|
|
|
224
|
-
class
|
|
234
|
+
class ChallengeTaskRulesPatch(DyffSchemaBaseModel):
|
|
225
235
|
"""Same properties as ChallengeTaskRules, but assigning None to a field is
|
|
226
236
|
interpreted as a command to delete that field.
|
|
227
237
|
|
|
228
238
|
Fields that are not assigned explicitly remain unchanged.
|
|
229
239
|
"""
|
|
230
240
|
|
|
231
|
-
executionEnvironment: Optional[
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
241
|
+
executionEnvironment: Optional[ChallengeTaskRulesExecutionEnvironmentPatch] = (
|
|
242
|
+
pydantic.Field(
|
|
243
|
+
default=None,
|
|
244
|
+
description="Patch for the .rules.executionEnvironments field.",
|
|
245
|
+
)
|
|
235
246
|
)
|
|
236
|
-
schedule: Optional[
|
|
247
|
+
schedule: Optional[ChallengeTaskRulesSchedulePatch] = pydantic.Field(
|
|
237
248
|
default=None, description="Patch for the .rules.schedule field."
|
|
238
249
|
)
|
|
239
250
|
|
|
240
251
|
@field_serializer("executionEnvironment")
|
|
241
252
|
def _serialize_executionEnvironment(
|
|
242
253
|
self,
|
|
243
|
-
executionEnvironment:
|
|
254
|
+
executionEnvironment: ChallengeTaskRulesExecutionEnvironmentPatch,
|
|
244
255
|
_info,
|
|
245
256
|
):
|
|
246
257
|
return executionEnvironment.model_dump(mode=_info.mode)
|
|
@@ -248,7 +259,7 @@ class EditChallengeTaskRulesPatch(DyffSchemaBaseModel):
|
|
|
248
259
|
@field_serializer("schedule")
|
|
249
260
|
def _serialize_schedule(
|
|
250
261
|
self,
|
|
251
|
-
schedule:
|
|
262
|
+
schedule: ChallengeTaskRulesSchedulePatch,
|
|
252
263
|
_info,
|
|
253
264
|
):
|
|
254
265
|
return schedule.model_dump(mode=_info.mode)
|
|
@@ -257,7 +268,7 @@ class EditChallengeTaskRulesPatch(DyffSchemaBaseModel):
|
|
|
257
268
|
class EditChallengeTaskRulesAttributes(DyffSchemaBaseModel):
|
|
258
269
|
"""Attributes for the EditChallengeTaskRules command."""
|
|
259
270
|
|
|
260
|
-
rules:
|
|
271
|
+
rules: ChallengeTaskRulesPatch = pydantic.Field(
|
|
261
272
|
description="Edits to make to the task rules."
|
|
262
273
|
)
|
|
263
274
|
|
|
@@ -522,6 +533,11 @@ DyffCommandType = Union[
|
|
|
522
533
|
|
|
523
534
|
|
|
524
535
|
__all__ = [
|
|
536
|
+
"ChallengeContentPagePatch",
|
|
537
|
+
"ChallengeContentPatch",
|
|
538
|
+
"ChallengeTaskRulesExecutionEnvironmentPatch",
|
|
539
|
+
"ChallengeTaskRulesSchedulePatch",
|
|
540
|
+
"ChallengeTaskRulesPatch",
|
|
525
541
|
"Command",
|
|
526
542
|
"CreateChallengeTask",
|
|
527
543
|
"CreateChallengeTaskAttributes",
|
|
@@ -531,7 +547,6 @@ __all__ = [
|
|
|
531
547
|
"EditChallengeContent",
|
|
532
548
|
"EditChallengeContentAttributes",
|
|
533
549
|
"EditChallengeContentData",
|
|
534
|
-
"EditChallengeContentPagePatch",
|
|
535
550
|
"EditChallengeContentPatch",
|
|
536
551
|
"EditEntityDocumentation",
|
|
537
552
|
"EditEntityDocumentationAttributes",
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|