dyff-schema 0.27.4__tar.gz → 0.28.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.27.4/dyff_schema.egg-info → dyff_schema-0.28.0}/PKG-INFO +1 -1
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/v0/r1/commands.py +42 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0/dyff_schema.egg-info}/PKG-INFO +1 -1
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/.gitignore +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/.gitlab-ci.yml +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/.licenserc.yaml +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/.pre-commit-config.yaml +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/.prettierignore +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/.secrets.baseline +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/CODE_OF_CONDUCT.md +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/LICENSE +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/NOTICE +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/README.md +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/__init__.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/adapters.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/annotations.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/base.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/commands.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/copydoc.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/dataset/__init__.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/dataset/arrow.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/dataset/binary.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/dataset/classification.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/dataset/embedding.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/dataset/text.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/dataset/vision.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/errors.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/ids.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/io/__init__.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/io/vllm.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/platform.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/py.typed +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/quantity.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/requests.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/test.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/v0/__init__.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/v0/r1/__init__.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/v0/r1/adapters.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/v0/r1/base.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/v0/r1/dataset/__init__.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/v0/r1/dataset/arrow.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/v0/r1/dataset/binary.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/v0/r1/dataset/classification.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/v0/r1/dataset/embedding.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/v0/r1/dataset/text.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/v0/r1/dataset/vision.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/v0/r1/io/__init__.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/v0/r1/io/vllm.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/v0/r1/platform.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/v0/r1/requests.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/v0/r1/test.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/v0/r1/version.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff/schema/version.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff_schema.egg-info/SOURCES.txt +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff_schema.egg-info/dependency_links.txt +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff_schema.egg-info/requires.txt +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/dyff_schema.egg-info/top_level.txt +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/makefile +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/pyproject.toml +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/setup.cfg +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/tests/test_adapters.py +0 -0
- {dyff_schema-0.27.4 → dyff_schema-0.28.0}/tests/test_import.py +0 -0
|
@@ -59,6 +59,7 @@ class Command(SchemaVersion, DyffSchemaBaseModel):
|
|
|
59
59
|
"EditEntityLabels",
|
|
60
60
|
"EditFamilyMembers",
|
|
61
61
|
"ForgetEntity",
|
|
62
|
+
"RestoreEntity",
|
|
62
63
|
"UpdateEntityStatus",
|
|
63
64
|
]
|
|
64
65
|
|
|
@@ -218,6 +219,43 @@ class ForgetEntity(Command):
|
|
|
218
219
|
# ----------------------------------------------------------------------------
|
|
219
220
|
|
|
220
221
|
|
|
222
|
+
class RestoreEntityAttributes(DyffSchemaBaseModel):
|
|
223
|
+
entity: DyffEntityType = pydantic.Field(
|
|
224
|
+
description="The full spec of the entity to restore."
|
|
225
|
+
)
|
|
226
|
+
|
|
227
|
+
ifRevisionMatch: Optional[str] = pydantic.Field(
|
|
228
|
+
default=None,
|
|
229
|
+
description="Do not change the entity if its revision does not match"
|
|
230
|
+
" the given revision.",
|
|
231
|
+
)
|
|
232
|
+
|
|
233
|
+
ifRevisionUndefined: Optional[bool] = pydantic.Field(
|
|
234
|
+
default=None,
|
|
235
|
+
description="Allow changing entities that have no revision."
|
|
236
|
+
" By default, entities with no revision will be changed if and only if"
|
|
237
|
+
" no other matching criteria are specified."
|
|
238
|
+
" This should be the case only for legacy data.",
|
|
239
|
+
)
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
class RestoreEntityData(EntityIdentifier):
|
|
243
|
+
attributes: RestoreEntityAttributes = pydantic.Field(
|
|
244
|
+
description="The command attributes"
|
|
245
|
+
)
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
class RestoreEntity(Command):
|
|
249
|
+
"""Restore an entity to a given state."""
|
|
250
|
+
|
|
251
|
+
command: Literal["RestoreEntity"] = "RestoreEntity"
|
|
252
|
+
|
|
253
|
+
data: RestoreEntityData = pydantic.Field(description="The command data.")
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
# ----------------------------------------------------------------------------
|
|
257
|
+
|
|
258
|
+
|
|
221
259
|
class UpdateEntityStatusAttributes(JsonMergePatchSemantics):
|
|
222
260
|
"""Attributes for the UpdateEntityStatus command."""
|
|
223
261
|
|
|
@@ -255,6 +293,7 @@ DyffCommandType = Union[
|
|
|
255
293
|
EditEntityLabels,
|
|
256
294
|
EditFamilyMembers,
|
|
257
295
|
ForgetEntity,
|
|
296
|
+
RestoreEntity,
|
|
258
297
|
UpdateEntityStatus,
|
|
259
298
|
]
|
|
260
299
|
|
|
@@ -276,6 +315,9 @@ __all__ = [
|
|
|
276
315
|
"EntityIdentifier",
|
|
277
316
|
"FamilyIdentifier",
|
|
278
317
|
"ForgetEntity",
|
|
318
|
+
"RestoreEntity",
|
|
319
|
+
"RestoreEntityAttributes",
|
|
320
|
+
"RestoreEntityData",
|
|
279
321
|
"UpdateEntityStatus",
|
|
280
322
|
"UpdateEntityStatusAttributes",
|
|
281
323
|
"UpdateEntityStatusData",
|
|
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
|