dyff-schema 0.38.1__tar.gz → 0.38.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.38.1/dyff_schema.egg-info → dyff_schema-0.38.2}/PKG-INFO +1 -1
- dyff_schema-0.38.2/dyff/schema/_version.py +2 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/v0/r1/platform.py +38 -28
- {dyff_schema-0.38.1 → dyff_schema-0.38.2/dyff_schema.egg-info}/PKG-INFO +1 -1
- dyff_schema-0.38.1/dyff/schema/_version.py +0 -2
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/.gitignore +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/.gitlab-ci.yml +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/.idea/dyff-schema.iml +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/.licenserc.yaml +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/.pre-commit-config.yaml +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/.prettierignore +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/.secrets.baseline +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/CODE_OF_CONDUCT.md +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/LICENSE +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/NOTICE +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/README.md +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/__init__.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/adapters.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/annotations.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/base.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/commands.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/copydoc.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/dataset/__init__.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/dataset/arrow.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/dataset/binary.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/dataset/classification.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/dataset/embedding.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/dataset/text.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/dataset/vision.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/errors.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/ids.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/io/__init__.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/io/vllm.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/platform.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/py.typed +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/quantity.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/requests.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/responses.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/test.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/v0/__init__.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/v0/r1/__init__.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/v0/r1/adapters.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/v0/r1/base.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/v0/r1/commands.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/v0/r1/dataset/__init__.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/v0/r1/dataset/arrow.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/v0/r1/dataset/binary.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/v0/r1/dataset/classification.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/v0/r1/dataset/embedding.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/v0/r1/dataset/text.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/v0/r1/dataset/vision.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/v0/r1/io/__init__.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/v0/r1/io/vllm.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/v0/r1/oci.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/v0/r1/requests.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/v0/r1/responses.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/v0/r1/test.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/v0/r1/version.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff/schema/version.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff_schema.egg-info/SOURCES.txt +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff_schema.egg-info/dependency_links.txt +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff_schema.egg-info/requires.txt +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/dyff_schema.egg-info/top_level.txt +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/makefile +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/pyproject.toml +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/setup.cfg +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/tests/test_adapters.py +0 -0
- {dyff_schema-0.38.1 → dyff_schema-0.38.2}/tests/test_import.py +0 -0
|
@@ -2883,6 +2883,12 @@ class PipelineRun(DyffEntity, PipelineRunBase):
|
|
|
2883
2883
|
return None
|
|
2884
2884
|
|
|
2885
2885
|
|
|
2886
|
+
class PipelineRunStatus(Status):
|
|
2887
|
+
nodes: dict[str, Status] = pydantic.Field(
|
|
2888
|
+
default_factory=dict, description="The status of each pipeline node."
|
|
2889
|
+
)
|
|
2890
|
+
|
|
2891
|
+
|
|
2886
2892
|
# ---------------------------------------------------------------------------
|
|
2887
2893
|
# Status enumerations
|
|
2888
2894
|
|
|
@@ -3123,34 +3129,6 @@ def is_status_success(status: str) -> bool:
|
|
|
3123
3129
|
return status in [EntityStatus.complete, EntityStatus.ready]
|
|
3124
3130
|
|
|
3125
3131
|
|
|
3126
|
-
_ENTITY_CLASS = {
|
|
3127
|
-
Entities.Analysis: Analysis,
|
|
3128
|
-
Entities.Artifact: OCIArtifact,
|
|
3129
|
-
Entities.Audit: Audit,
|
|
3130
|
-
Entities.AuditProcedure: AuditProcedure,
|
|
3131
|
-
Entities.Challenge: Challenge,
|
|
3132
|
-
Entities.Dataset: Dataset,
|
|
3133
|
-
Entities.DataSource: DataSource,
|
|
3134
|
-
Entities.Evaluation: Evaluation,
|
|
3135
|
-
Entities.Family: Family,
|
|
3136
|
-
Entities.Hazard: Hazard,
|
|
3137
|
-
Entities.InferenceService: InferenceService,
|
|
3138
|
-
Entities.InferenceSession: InferenceSession,
|
|
3139
|
-
Entities.Measurement: Measurement,
|
|
3140
|
-
Entities.Method: Method,
|
|
3141
|
-
Entities.Model: Model,
|
|
3142
|
-
Entities.Module: Module,
|
|
3143
|
-
Entities.Report: Report,
|
|
3144
|
-
Entities.SafetyCase: SafetyCase,
|
|
3145
|
-
Entities.Team: Team,
|
|
3146
|
-
Entities.UseCase: UseCase,
|
|
3147
|
-
}
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
def entity_class(kind: Entities):
|
|
3151
|
-
return _ENTITY_CLASS[kind]
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
3132
|
# A Union type containing all Dyff top-level schema types, except the ones that
|
|
3155
3133
|
# should not have Revisions generated for them when they change
|
|
3156
3134
|
_DyffEntityTypeRevisable = Union[
|
|
@@ -3230,6 +3208,37 @@ class Revision(DyffEntity, RevisionMetadata):
|
|
|
3230
3208
|
DyffEntityType = Union[_DyffEntityTypeRevisable, History, Revision]
|
|
3231
3209
|
|
|
3232
3210
|
|
|
3211
|
+
_ENTITY_CLASS: dict[Entities, type[DyffEntityType]] = {
|
|
3212
|
+
Entities.Artifact: OCIArtifact,
|
|
3213
|
+
Entities.Audit: Audit,
|
|
3214
|
+
Entities.AuditProcedure: AuditProcedure,
|
|
3215
|
+
Entities.Challenge: Challenge,
|
|
3216
|
+
Entities.Dataset: Dataset,
|
|
3217
|
+
Entities.DataSource: DataSource,
|
|
3218
|
+
Entities.Evaluation: Evaluation,
|
|
3219
|
+
Entities.Family: Family,
|
|
3220
|
+
Entities.Hazard: Hazard,
|
|
3221
|
+
Entities.History: History,
|
|
3222
|
+
Entities.InferenceService: InferenceService,
|
|
3223
|
+
Entities.InferenceSession: InferenceSession,
|
|
3224
|
+
Entities.Measurement: Measurement,
|
|
3225
|
+
Entities.Method: Method,
|
|
3226
|
+
Entities.Model: Model,
|
|
3227
|
+
Entities.Module: Module,
|
|
3228
|
+
Entities.Pipeline: Pipeline,
|
|
3229
|
+
Entities.PipelineRun: PipelineRun,
|
|
3230
|
+
Entities.Report: Report,
|
|
3231
|
+
Entities.Revision: Revision,
|
|
3232
|
+
Entities.SafetyCase: SafetyCase,
|
|
3233
|
+
Entities.Team: Team,
|
|
3234
|
+
Entities.UseCase: UseCase,
|
|
3235
|
+
}
|
|
3236
|
+
|
|
3237
|
+
|
|
3238
|
+
def entity_class(kind: Entities) -> type[DyffEntityType]:
|
|
3239
|
+
return _ENTITY_CLASS[kind]
|
|
3240
|
+
|
|
3241
|
+
|
|
3233
3242
|
# A TypeVar that matches any Dyff top-level schema type
|
|
3234
3243
|
DyffEntityT = TypeVar(
|
|
3235
3244
|
"DyffEntityT",
|
|
@@ -3401,6 +3410,7 @@ __all__ = [
|
|
|
3401
3410
|
"PipelineParameter",
|
|
3402
3411
|
"PipelineRun",
|
|
3403
3412
|
"PipelineRunBase",
|
|
3413
|
+
"PipelineRunStatus",
|
|
3404
3414
|
"PipelineSafetyCaseRequest",
|
|
3405
3415
|
"QueryableDyffEntity",
|
|
3406
3416
|
"Report",
|
|
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
|