dyff-schema 0.3.9__tar.gz → 0.4.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.3.9 → dyff_schema-0.4.0}/.gitlab-ci.yml +1 -1
- {dyff_schema-0.3.9/dyff_schema.egg-info → dyff_schema-0.4.0}/PKG-INFO +1 -1
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/v0/r1/platform.py +38 -24
- {dyff_schema-0.3.9 → dyff_schema-0.4.0/dyff_schema.egg-info}/PKG-INFO +1 -1
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/.gitignore +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/.licenserc.yaml +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/.pre-commit-config.yaml +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/.prettierignore +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/.secrets.baseline +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/CODE_OF_CONDUCT.md +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/LICENSE +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/NOTICE +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/README.md +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/__init__.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/adapters.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/base.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/copydoc.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/dataset/__init__.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/dataset/arrow.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/dataset/binary.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/dataset/classification.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/dataset/text.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/dataset/vision.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/ids.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/io/__init__.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/io/vllm.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/platform.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/py.typed +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/quantity.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/requests.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/test.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/v0/__init__.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/v0/r1/__init__.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/v0/r1/adapters.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/v0/r1/base.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/v0/r1/dataset/__init__.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/v0/r1/dataset/arrow.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/v0/r1/dataset/binary.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/v0/r1/dataset/classification.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/v0/r1/dataset/text.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/v0/r1/dataset/vision.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/v0/r1/io/__init__.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/v0/r1/io/vllm.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/v0/r1/requests.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/v0/r1/test.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/v0/r1/version.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff/schema/version.py +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff_schema.egg-info/SOURCES.txt +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff_schema.egg-info/dependency_links.txt +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff_schema.egg-info/requires.txt +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/dyff_schema.egg-info/top_level.txt +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/makefile +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/pyproject.toml +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/setup.cfg +0 -0
- {dyff_schema-0.3.9 → dyff_schema-0.4.0}/tests/test_import.py +0 -0
|
@@ -139,15 +139,6 @@ def _k8s_label_value_maxlen():
|
|
|
139
139
|
return _k8s_label_maxlen()
|
|
140
140
|
|
|
141
141
|
|
|
142
|
-
class StorageSignedURL(DyffSchemaBaseModel):
|
|
143
|
-
url: str = pydantic.Field(description="The signed URL")
|
|
144
|
-
method: str = pydantic.Field(description="The HTTP method applicable to the URL")
|
|
145
|
-
headers: dict[str, str] = pydantic.Field(
|
|
146
|
-
default_factory=dict,
|
|
147
|
-
description="Mandatory headers that must be passed with the request",
|
|
148
|
-
)
|
|
149
|
-
|
|
150
|
-
|
|
151
142
|
class Entities(str, enum.Enum):
|
|
152
143
|
"""The kinds of entities in the dyff system."""
|
|
153
144
|
|
|
@@ -471,6 +462,43 @@ class APIKey(DyffSchemaBaseModel):
|
|
|
471
462
|
)
|
|
472
463
|
|
|
473
464
|
|
|
465
|
+
# ----------------------------------------------------------------------------
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
class Digest(DyffSchemaBaseModel):
|
|
469
|
+
md5: Optional[str] = pydantic.Field(
|
|
470
|
+
default=None, description="md5 digest of artifact data"
|
|
471
|
+
)
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
class Artifact(DyffSchemaBaseModel):
|
|
475
|
+
# TODO: In v1, rename this to 'contentType' or something and commit to making it the MIME type
|
|
476
|
+
kind: Optional[str] = pydantic.Field(
|
|
477
|
+
default=None, description="The kind of artifact"
|
|
478
|
+
)
|
|
479
|
+
path: str = pydantic.Field(
|
|
480
|
+
description="The relative path of the artifact within the tree"
|
|
481
|
+
)
|
|
482
|
+
digest: Digest = pydantic.Field(
|
|
483
|
+
default_factory=Digest,
|
|
484
|
+
description="One or more message digests (hashes) of the artifact data",
|
|
485
|
+
)
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
class StorageSignedURL(DyffSchemaBaseModel):
|
|
489
|
+
url: str = pydantic.Field(description="The signed URL")
|
|
490
|
+
method: str = pydantic.Field(description="The HTTP method applicable to the URL")
|
|
491
|
+
headers: dict[str, str] = pydantic.Field(
|
|
492
|
+
default_factory=dict,
|
|
493
|
+
description="Mandatory headers that must be passed with the request",
|
|
494
|
+
)
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
class ArtifactURL(DyffSchemaBaseModel):
|
|
498
|
+
artifact: Artifact
|
|
499
|
+
signedURL: StorageSignedURL
|
|
500
|
+
|
|
501
|
+
|
|
474
502
|
class AuditRequirement(DyffSchemaBaseModel):
|
|
475
503
|
"""An evaluation report that must exist in order to apply an AuditProcedure."""
|
|
476
504
|
|
|
@@ -543,21 +571,6 @@ class ExtractorStep(DyffSchemaBaseModel):
|
|
|
543
571
|
type: Optional[str] = None
|
|
544
572
|
|
|
545
573
|
|
|
546
|
-
class Digest(DyffSchemaBaseModel):
|
|
547
|
-
md5: Optional[str] = pydantic.Field(None)
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
class Artifact(DyffSchemaBaseModel):
|
|
551
|
-
# TODO: Enumerate the available kinds
|
|
552
|
-
kind: str = pydantic.Field(description="The kind of artifact")
|
|
553
|
-
path: str = pydantic.Field(
|
|
554
|
-
description="The relative path of the artifact within the dataset"
|
|
555
|
-
)
|
|
556
|
-
digest: Digest = pydantic.Field(
|
|
557
|
-
description="One or more message digests (hashes) of the artifact data"
|
|
558
|
-
)
|
|
559
|
-
|
|
560
|
-
|
|
561
574
|
class DyffDataSchema(DyffSchemaBaseModel):
|
|
562
575
|
components: list[str] = pydantic.Field(
|
|
563
576
|
min_items=1,
|
|
@@ -1713,6 +1726,7 @@ __all__ = [
|
|
|
1713
1726
|
"APIKey",
|
|
1714
1727
|
"ArchiveFormat",
|
|
1715
1728
|
"Artifact",
|
|
1729
|
+
"ArtifactURL",
|
|
1716
1730
|
"Audit",
|
|
1717
1731
|
"AuditProcedure",
|
|
1718
1732
|
"AuditRequirement",
|
|
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
|