dyff-schema 0.30.1__py3-none-any.whl → 0.31.0__py3-none-any.whl
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/_version.py +2 -2
- dyff/schema/v0/r1/platform.py +12 -1
- dyff/schema/v0/r1/requests.py +2 -1
- {dyff_schema-0.30.1.dist-info → dyff_schema-0.31.0.dist-info}/METADATA +2 -3
- {dyff_schema-0.30.1.dist-info → dyff_schema-0.31.0.dist-info}/RECORD +9 -9
- {dyff_schema-0.30.1.dist-info → dyff_schema-0.31.0.dist-info}/WHEEL +0 -0
- {dyff_schema-0.30.1.dist-info → dyff_schema-0.31.0.dist-info}/licenses/LICENSE +0 -0
- {dyff_schema-0.30.1.dist-info → dyff_schema-0.31.0.dist-info}/licenses/NOTICE +0 -0
- {dyff_schema-0.30.1.dist-info → dyff_schema-0.31.0.dist-info}/top_level.txt +0 -0
dyff/schema/_version.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = version = "0.
|
|
2
|
-
__version_tuple__ = version_tuple = (0,
|
|
1
|
+
__version__ = version = "0.31.0"
|
|
2
|
+
__version_tuple__ = version_tuple = (0, 31, 0)
|
dyff/schema/v0/r1/platform.py
CHANGED
|
@@ -1955,11 +1955,20 @@ class Method(DyffEntity, MethodBase):
|
|
|
1955
1955
|
return None
|
|
1956
1956
|
|
|
1957
1957
|
|
|
1958
|
+
class EntityIDMarker:
|
|
1959
|
+
"""Marker class to indicate that a field contains an entity ID that supports
|
|
1960
|
+
family@tag resolution."""
|
|
1961
|
+
|
|
1962
|
+
|
|
1963
|
+
# Type alias for entity ID fields that support family@tag resolution
|
|
1964
|
+
EntityIDField: TypeAlias = Annotated[str, EntityIDMarker]
|
|
1965
|
+
|
|
1966
|
+
|
|
1958
1967
|
class AnalysisInput(DyffSchemaBaseModel):
|
|
1959
1968
|
keyword: str = pydantic.Field(
|
|
1960
1969
|
description="The 'keyword' specified for this input in the MethodSpec."
|
|
1961
1970
|
)
|
|
1962
|
-
entity:
|
|
1971
|
+
entity: EntityIDField = pydantic.Field(
|
|
1963
1972
|
description="The ID of the entity whose data should be made available as 'keyword'."
|
|
1964
1973
|
)
|
|
1965
1974
|
|
|
@@ -2495,6 +2504,8 @@ __all__ = [
|
|
|
2495
2504
|
"Entities",
|
|
2496
2505
|
"EntityID",
|
|
2497
2506
|
"EntityIdentifier",
|
|
2507
|
+
"EntityIDField",
|
|
2508
|
+
"EntityIDMarker",
|
|
2498
2509
|
"EntityKindLiteral",
|
|
2499
2510
|
"Evaluation",
|
|
2500
2511
|
"EvaluationBase",
|
dyff/schema/v0/r1/requests.py
CHANGED
|
@@ -30,6 +30,7 @@ from .platform import (
|
|
|
30
30
|
DatasetBase,
|
|
31
31
|
DataView,
|
|
32
32
|
DocumentationBase,
|
|
33
|
+
EntityIDField,
|
|
33
34
|
Evaluation,
|
|
34
35
|
EvaluationBase,
|
|
35
36
|
FamilyBase,
|
|
@@ -95,7 +96,7 @@ class AnalysisCreateRequest(DyffEntityCreateRequest, AnalysisBase):
|
|
|
95
96
|
"""An Analysis transforms Datasets, Evaluations, and Measurements into new
|
|
96
97
|
Measurements or SafetyCases."""
|
|
97
98
|
|
|
98
|
-
method:
|
|
99
|
+
method: EntityIDField = pydantic.Field(description="Method ID")
|
|
99
100
|
|
|
100
101
|
@pydantic.field_validator("scope", check_fields=False)
|
|
101
102
|
def _validate_scope(cls, scope: AnalysisScope) -> AnalysisScope:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dyff-schema
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.31.0
|
|
4
4
|
Summary: Data models for the Dyff AI auditing platform.
|
|
5
5
|
Author-email: Digital Safety Research Institute <contact@dsri.org>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -12,12 +12,11 @@ Classifier: Intended Audience :: Science/Research
|
|
|
12
12
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
13
|
Classifier: Operating System :: OS Independent
|
|
14
14
|
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.10
|
|
17
16
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.12
|
|
19
18
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
20
|
-
Requires-Python: >=3.
|
|
19
|
+
Requires-Python: >=3.10
|
|
21
20
|
Description-Content-Type: text/markdown
|
|
22
21
|
License-File: LICENSE
|
|
23
22
|
License-File: NOTICE
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
dyff/schema/__init__.py,sha256=w7OWDFuyGKd6xt_yllNtKzHahPgywrfU4Ue02psYaMA,2244
|
|
2
|
-
dyff/schema/_version.py,sha256=
|
|
2
|
+
dyff/schema/_version.py,sha256=lageKaOH5TDiyZ4VRsSj_zhfPpNR6FUCeBpMb8snBTQ,80
|
|
3
3
|
dyff/schema/adapters.py,sha256=YMTHv_2VlLGFp-Kqwa6H51hjffHmk8gXjZilHysIF5Q,123
|
|
4
4
|
dyff/schema/annotations.py,sha256=nE6Jk1PLqlShj8uqjE_EzZC9zYnTDW5AVtQcjysiK8M,10018
|
|
5
5
|
dyff/schema/base.py,sha256=jvaNtsSZyFfsdUZTcY_U-yfLY5_GyrMxSXhON2R9XR0,119
|
|
@@ -27,8 +27,8 @@ dyff/schema/v0/r1/__init__.py,sha256=L5y8UhRnojerPYHumsxQJRcHCNz8Hj9NM8b47mewMNs
|
|
|
27
27
|
dyff/schema/v0/r1/adapters.py,sha256=hpwCSW8lkMkUKCLe0zaMUDu-VS_caSxJvPsECEi_XRA,33069
|
|
28
28
|
dyff/schema/v0/r1/base.py,sha256=zaxU2fIu1Ca-nZsZwG0eb7COJmnPkDZ_yLrieHXqr0s,20353
|
|
29
29
|
dyff/schema/v0/r1/commands.py,sha256=wDNMB8lry-H9G5hlT4m6y4fysoq4glY5qKsHytfehqU,9052
|
|
30
|
-
dyff/schema/v0/r1/platform.py,sha256
|
|
31
|
-
dyff/schema/v0/r1/requests.py,sha256=
|
|
30
|
+
dyff/schema/v0/r1/platform.py,sha256=-tKlqrMhHYWji9q__YxrgWtITAlwnSuHtO15J-EUoPw,82622
|
|
31
|
+
dyff/schema/v0/r1/requests.py,sha256=C-LX-NAIDgh88xCl3NW7wqLIpurK8SXqmhRnGvy4BM0,17197
|
|
32
32
|
dyff/schema/v0/r1/test.py,sha256=X6dUyVd5svcPCI-PBMOAqEfK9jv3bRDvkQTJzwS96c0,10720
|
|
33
33
|
dyff/schema/v0/r1/version.py,sha256=NONebgcv5Thsw_ymud6PacZdGjV6ndBrmLnap-obcpo,428
|
|
34
34
|
dyff/schema/v0/r1/dataset/__init__.py,sha256=LbVlkO2asyGYBKk2z49xjJYTM-pu9y9e4eQDXgTDLnM,2553
|
|
@@ -40,9 +40,9 @@ dyff/schema/v0/r1/dataset/text.py,sha256=MYG5seGODDryRSCy-g0Unh5dD0HCytmZ3FeElC-
|
|
|
40
40
|
dyff/schema/v0/r1/dataset/vision.py,sha256=aIe0fbfM_g3DsrDTdg2K803YKLjZBpurM_VJcJFuZLc,369
|
|
41
41
|
dyff/schema/v0/r1/io/__init__.py,sha256=L5y8UhRnojerPYHumsxQJRcHCNz8Hj9NM8b47mewMNs,92
|
|
42
42
|
dyff/schema/v0/r1/io/vllm.py,sha256=vWyLg-susbg0JDfv6VExBpgFdU2GHP2a14ChOdbckvs,5321
|
|
43
|
-
dyff_schema-0.
|
|
44
|
-
dyff_schema-0.
|
|
45
|
-
dyff_schema-0.
|
|
46
|
-
dyff_schema-0.
|
|
47
|
-
dyff_schema-0.
|
|
48
|
-
dyff_schema-0.
|
|
43
|
+
dyff_schema-0.31.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
44
|
+
dyff_schema-0.31.0.dist-info/licenses/NOTICE,sha256=YONACu0s_Ui6jNi-wtEsVQbTU1JIkh8wvLH6d1-Ni_w,43
|
|
45
|
+
dyff_schema-0.31.0.dist-info/METADATA,sha256=7G3yZvBOUdBBc8jU6xrDdU7g12SFOQN7bAdUyZoQr-g,3574
|
|
46
|
+
dyff_schema-0.31.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
47
|
+
dyff_schema-0.31.0.dist-info/top_level.txt,sha256=9e3VVdeX73t_sUJOPQPCcGtYO1JhoErhHIi3WoWGcFI,5
|
|
48
|
+
dyff_schema-0.31.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|