dyff-schema 0.3.2__tar.gz → 0.3.4__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.2/dyff_schema.egg-info → dyff-schema-0.3.4}/PKG-INFO +1 -1
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/v0/r1/platform.py +4 -20
- {dyff-schema-0.3.2 → dyff-schema-0.3.4/dyff_schema.egg-info}/PKG-INFO +1 -1
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/.gitignore +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/.gitlab-ci.yml +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/.licenserc.yaml +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/.pre-commit-config.yaml +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/.prettierignore +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/.secrets.baseline +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/CODE_OF_CONDUCT.md +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/LICENSE +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/NOTICE +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/README.md +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/__init__.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/adapters.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/base.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/copydoc.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/dataset/__init__.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/dataset/arrow.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/dataset/binary.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/dataset/classification.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/dataset/text.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/dataset/vision.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/ids.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/io/__init__.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/io/vllm.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/platform.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/py.typed +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/quantity.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/requests.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/test.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/v0/__init__.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/v0/r1/__init__.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/v0/r1/adapters.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/v0/r1/base.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/v0/r1/dataset/__init__.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/v0/r1/dataset/arrow.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/v0/r1/dataset/binary.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/v0/r1/dataset/classification.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/v0/r1/dataset/text.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/v0/r1/dataset/vision.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/v0/r1/io/__init__.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/v0/r1/io/vllm.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/v0/r1/requests.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/v0/r1/test.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/v0/r1/version.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff/schema/version.py +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff_schema.egg-info/SOURCES.txt +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff_schema.egg-info/dependency_links.txt +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff_schema.egg-info/requires.txt +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/dyff_schema.egg-info/top_level.txt +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/makefile +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/pyproject.toml +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/setup.cfg +0 -0
- {dyff-schema-0.3.2 → dyff-schema-0.3.4}/tests/test_import.py +0 -0
|
@@ -199,28 +199,11 @@ class Resources(str, enum.Enum):
|
|
|
199
199
|
@staticmethod
|
|
200
200
|
def for_kind(kind: Entities) -> "Resources":
|
|
201
201
|
try:
|
|
202
|
-
return
|
|
202
|
+
return Resources[kind.value]
|
|
203
203
|
except KeyError:
|
|
204
204
|
raise ValueError(f"No Resources for Entity kind: {kind}")
|
|
205
205
|
|
|
206
206
|
|
|
207
|
-
__entities_to_resources: dict[Entities, Resources] = {
|
|
208
|
-
Entities.Analysis: Resources.Analysis,
|
|
209
|
-
Entities.Audit: Resources.Audit,
|
|
210
|
-
Entities.AuditProcedure: Resources.AuditProcedure,
|
|
211
|
-
Entities.Dataset: Resources.Dataset,
|
|
212
|
-
Entities.DataSource: Resources.DataSource,
|
|
213
|
-
Entities.Evaluation: Resources.Evaluation,
|
|
214
|
-
Entities.InferenceService: Resources.InferenceService,
|
|
215
|
-
Entities.InferenceSession: Resources.InferenceSession,
|
|
216
|
-
Entities.Method: Resources.Method,
|
|
217
|
-
Entities.Model: Resources.Model,
|
|
218
|
-
Entities.Module: Resources.Module,
|
|
219
|
-
Entities.Report: Resources.Report,
|
|
220
|
-
Entities.SafetyCase: Resources.SafetyCase,
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
|
|
224
207
|
class DyffModelWithID(DyffSchemaBaseModel):
|
|
225
208
|
id: str = pydantic.Field(description="Unique identifier of the entity")
|
|
226
209
|
account: str = pydantic.Field(description="Account that owns the entity")
|
|
@@ -1369,11 +1352,12 @@ class ForeignMethod(DyffModelWithID, MethodBase):
|
|
|
1369
1352
|
|
|
1370
1353
|
class AnalysisBase(DyffSchemaBaseModel):
|
|
1371
1354
|
arguments: list[AnalysisArgument] = pydantic.Field(
|
|
1372
|
-
|
|
1355
|
+
default_factory=list,
|
|
1356
|
+
description="Arguments to pass to the Method implementation.",
|
|
1373
1357
|
)
|
|
1374
1358
|
|
|
1375
1359
|
inputs: list[AnalysisInputMapping] = pydantic.Field(
|
|
1376
|
-
description="Mapping of keywords to data entities."
|
|
1360
|
+
default_factory=list, description="Mapping of keywords to data entities."
|
|
1377
1361
|
)
|
|
1378
1362
|
|
|
1379
1363
|
|
|
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
|