dyff-schema 0.36.3__tar.gz → 0.36.5__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.36.3/dyff_schema.egg-info → dyff_schema-0.36.5}/PKG-INFO +1 -1
- dyff_schema-0.36.5/dyff/schema/_version.py +2 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/v0/r1/commands.py +3 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/v0/r1/platform.py +40 -2
- {dyff_schema-0.36.3 → dyff_schema-0.36.5/dyff_schema.egg-info}/PKG-INFO +1 -1
- dyff_schema-0.36.3/dyff/schema/_version.py +0 -2
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/.gitignore +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/.gitlab-ci.yml +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/.idea/dyff-schema.iml +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/.licenserc.yaml +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/.pre-commit-config.yaml +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/.prettierignore +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/.secrets.baseline +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/CODE_OF_CONDUCT.md +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/LICENSE +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/NOTICE +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/README.md +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/__init__.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/adapters.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/annotations.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/base.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/commands.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/copydoc.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/dataset/__init__.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/dataset/arrow.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/dataset/binary.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/dataset/classification.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/dataset/embedding.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/dataset/text.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/dataset/vision.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/errors.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/ids.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/io/__init__.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/io/vllm.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/platform.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/py.typed +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/quantity.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/requests.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/responses.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/test.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/v0/__init__.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/v0/r1/__init__.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/v0/r1/adapters.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/v0/r1/base.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/v0/r1/dataset/__init__.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/v0/r1/dataset/arrow.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/v0/r1/dataset/binary.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/v0/r1/dataset/classification.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/v0/r1/dataset/embedding.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/v0/r1/dataset/text.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/v0/r1/dataset/vision.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/v0/r1/io/__init__.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/v0/r1/io/vllm.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/v0/r1/oci.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/v0/r1/requests.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/v0/r1/responses.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/v0/r1/test.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/v0/r1/version.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff/schema/version.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff_schema.egg-info/SOURCES.txt +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff_schema.egg-info/dependency_links.txt +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff_schema.egg-info/requires.txt +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/dyff_schema.egg-info/top_level.txt +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/makefile +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/pyproject.toml +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/setup.cfg +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/tests/test_adapters.py +0 -0
- {dyff_schema-0.36.3 → dyff_schema-0.36.5}/tests/test_import.py +0 -0
|
@@ -543,6 +543,9 @@ __all__ = [
|
|
|
543
543
|
"EditChallengeContentAttributes",
|
|
544
544
|
"EditChallengeContentData",
|
|
545
545
|
"EditChallengeContentPatch",
|
|
546
|
+
"EditChallengeTaskRulesAttributes",
|
|
547
|
+
"EditChallengeTaskRulesData",
|
|
548
|
+
"EditChallengeTaskRules",
|
|
546
549
|
"EditEntityDocumentation",
|
|
547
550
|
"EditEntityDocumentationAttributes",
|
|
548
551
|
"EditEntityDocumentationData",
|
|
@@ -25,7 +25,7 @@ import urllib.parse
|
|
|
25
25
|
from datetime import datetime, timedelta, timezone
|
|
26
26
|
from enum import Enum
|
|
27
27
|
from pathlib import Path
|
|
28
|
-
from typing import Any, Literal, NamedTuple, Optional, Type, Union
|
|
28
|
+
from typing import Any, Literal, NamedTuple, Optional, Type, TypeVar, Union
|
|
29
29
|
|
|
30
30
|
import i18naddress
|
|
31
31
|
import pyarrow
|
|
@@ -227,6 +227,13 @@ class Entities(str, enum.Enum):
|
|
|
227
227
|
Team = "Team"
|
|
228
228
|
UseCase = "UseCase"
|
|
229
229
|
|
|
230
|
+
@staticmethod
|
|
231
|
+
def for_type(t: type["DyffEntityT"]) -> "Entities":
|
|
232
|
+
try:
|
|
233
|
+
return Entities(t.__name__)
|
|
234
|
+
except ValueError:
|
|
235
|
+
raise ValueError(f"not a DyffEntity type: {t}")
|
|
236
|
+
|
|
230
237
|
|
|
231
238
|
class Resources(str, enum.Enum):
|
|
232
239
|
"""The resource names corresponding to entities that have API endpoints."""
|
|
@@ -2393,7 +2400,7 @@ class TeamMember(DyffSchemaBaseModel):
|
|
|
2393
2400
|
|
|
2394
2401
|
|
|
2395
2402
|
class GoogleI18nMailingAddress(DyffSchemaBaseModel):
|
|
2396
|
-
"""An international mailing address, in the schema used by Google's
|
|
2403
|
+
"""An international mailing address, in the schema used by Google's main challenge page
|
|
2397
2404
|
i18n address metadata repository
|
|
2398
2405
|
(https://chromium-i18n.appspot.com/ssl-address) and as interpreted by the
|
|
2399
2406
|
Python ``google-i18n-address`` package.
|
|
@@ -2945,6 +2952,8 @@ def entity_class(kind: Entities):
|
|
|
2945
2952
|
return _ENTITY_CLASS[kind]
|
|
2946
2953
|
|
|
2947
2954
|
|
|
2955
|
+
# A Union type containing all Dyff top-level schema types, except the ones that
|
|
2956
|
+
# should not have Revisions generated for them when they change
|
|
2948
2957
|
_DyffEntityTypeRevisable = Union[
|
|
2949
2958
|
Audit,
|
|
2950
2959
|
AuditProcedure,
|
|
@@ -3016,9 +3025,37 @@ class Revision(DyffEntity, RevisionMetadata):
|
|
|
3016
3025
|
return None
|
|
3017
3026
|
|
|
3018
3027
|
|
|
3028
|
+
# A Union type containing all Dyff top-level schema types
|
|
3019
3029
|
DyffEntityType = Union[_DyffEntityTypeRevisable, History, Revision]
|
|
3020
3030
|
|
|
3021
3031
|
|
|
3032
|
+
# A TypeVar that matches any Dyff top-level schema type
|
|
3033
|
+
DyffEntityT = TypeVar(
|
|
3034
|
+
"DyffEntityT",
|
|
3035
|
+
Audit,
|
|
3036
|
+
AuditProcedure,
|
|
3037
|
+
Challenge,
|
|
3038
|
+
DataSource,
|
|
3039
|
+
Dataset,
|
|
3040
|
+
Evaluation,
|
|
3041
|
+
Family,
|
|
3042
|
+
Hazard,
|
|
3043
|
+
History,
|
|
3044
|
+
InferenceService,
|
|
3045
|
+
InferenceSession,
|
|
3046
|
+
Measurement,
|
|
3047
|
+
Method,
|
|
3048
|
+
Model,
|
|
3049
|
+
Module,
|
|
3050
|
+
OCIArtifact,
|
|
3051
|
+
Report,
|
|
3052
|
+
Revision,
|
|
3053
|
+
SafetyCase,
|
|
3054
|
+
Team,
|
|
3055
|
+
UseCase,
|
|
3056
|
+
)
|
|
3057
|
+
|
|
3058
|
+
|
|
3022
3059
|
__all__ = [
|
|
3023
3060
|
"SYSTEM_ATTRIBUTES",
|
|
3024
3061
|
"Accelerator",
|
|
@@ -3064,6 +3101,7 @@ __all__ = [
|
|
|
3064
3101
|
"Documented",
|
|
3065
3102
|
"DyffDataSchema",
|
|
3066
3103
|
"DyffEntity",
|
|
3104
|
+
"DyffEntityT",
|
|
3067
3105
|
"DyffEntityType",
|
|
3068
3106
|
"DyffModelWithID",
|
|
3069
3107
|
"DyffSchemaBaseModel",
|
|
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
|