dyff-schema 0.13.0__tar.gz → 0.14.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.
- {dyff_schema-0.13.0/dyff_schema.egg-info → dyff_schema-0.14.0}/PKG-INFO +1 -1
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/v0/r1/platform.py +22 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0/dyff_schema.egg-info}/PKG-INFO +1 -1
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/.gitignore +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/.gitlab-ci.yml +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/.licenserc.yaml +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/.pre-commit-config.yaml +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/.prettierignore +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/.secrets.baseline +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/CODE_OF_CONDUCT.md +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/LICENSE +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/NOTICE +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/README.md +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/__init__.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/adapters.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/annotations.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/base.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/copydoc.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/dataset/__init__.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/dataset/arrow.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/dataset/binary.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/dataset/classification.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/dataset/text.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/dataset/vision.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/errors.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/ids.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/io/__init__.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/io/vllm.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/platform.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/py.typed +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/quantity.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/requests.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/test.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/v0/__init__.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/v0/r1/__init__.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/v0/r1/adapters.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/v0/r1/base.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/v0/r1/dataset/__init__.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/v0/r1/dataset/arrow.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/v0/r1/dataset/binary.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/v0/r1/dataset/classification.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/v0/r1/dataset/text.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/v0/r1/dataset/vision.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/v0/r1/io/__init__.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/v0/r1/io/vllm.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/v0/r1/requests.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/v0/r1/test.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/v0/r1/version.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff/schema/version.py +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff_schema.egg-info/SOURCES.txt +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff_schema.egg-info/dependency_links.txt +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff_schema.egg-info/requires.txt +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/dyff_schema.egg-info/top_level.txt +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/makefile +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/pyproject.toml +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/setup.cfg +0 -0
- {dyff_schema-0.13.0 → dyff_schema-0.14.0}/tests/test_import.py +0 -0
|
@@ -1659,11 +1659,32 @@ class AnalysisBase(DyffSchemaBaseModel):
|
|
|
1659
1659
|
)
|
|
1660
1660
|
|
|
1661
1661
|
|
|
1662
|
+
class AnalysisData(DyffSchemaBaseModel):
|
|
1663
|
+
"""Arbitrary additional data for the Analysis, specified as a key-value pair where
|
|
1664
|
+
the value is the data encoded in base64."""
|
|
1665
|
+
|
|
1666
|
+
key: str = pydantic.Field(
|
|
1667
|
+
description="Key identifying the data. For data about a Dyff entity,"
|
|
1668
|
+
" this should be the entity's ID."
|
|
1669
|
+
)
|
|
1670
|
+
|
|
1671
|
+
value: str = pydantic.Field(
|
|
1672
|
+
# Canonical base64 encoding
|
|
1673
|
+
# https://stackoverflow.com/a/64467300/3709935
|
|
1674
|
+
regex=r"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/][AQgw]==|[A-Za-z0-9+/]{2}[AEIMQUYcgkosw048]=)?$",
|
|
1675
|
+
description="Arbitrary data encoded in base64.",
|
|
1676
|
+
)
|
|
1677
|
+
|
|
1678
|
+
|
|
1662
1679
|
class Analysis(AnalysisBase):
|
|
1663
1680
|
method: ForeignMethod = pydantic.Field(
|
|
1664
1681
|
description="The analysis Method to run.",
|
|
1665
1682
|
)
|
|
1666
1683
|
|
|
1684
|
+
data: list[AnalysisData] = pydantic.Field(
|
|
1685
|
+
default_factory=list, description="Additional data to supply to the analysis."
|
|
1686
|
+
)
|
|
1687
|
+
|
|
1667
1688
|
|
|
1668
1689
|
class Measurement(DyffEntity, MeasurementSpec, Analysis):
|
|
1669
1690
|
kind: Literal["Measurement"] = Entities.Measurement.value
|
|
@@ -2024,6 +2045,7 @@ __all__ = [
|
|
|
2024
2045
|
"Analysis",
|
|
2025
2046
|
"AnalysisArgument",
|
|
2026
2047
|
"AnalysisBase",
|
|
2048
|
+
"AnalysisData",
|
|
2027
2049
|
"AnalysisInput",
|
|
2028
2050
|
"AnalysisOutputQueryFields",
|
|
2029
2051
|
"AnalysisScope",
|
|
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
|