dyff-schema 0.3.2__py3-none-any.whl → 0.3.4__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.

@@ -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 __entities_to_resources[kind]
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
- description="Arguments to pass to the Method implementation."
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dyff-schema
3
- Version: 0.3.2
3
+ Version: 0.3.4
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
@@ -21,7 +21,7 @@ dyff/schema/v0/__init__.py,sha256=L5y8UhRnojerPYHumsxQJRcHCNz8Hj9NM8b47mewMNs,92
21
21
  dyff/schema/v0/r1/__init__.py,sha256=L5y8UhRnojerPYHumsxQJRcHCNz8Hj9NM8b47mewMNs,92
22
22
  dyff/schema/v0/r1/adapters.py,sha256=2t2oxsnGfSEDKKDIEYw4qqLXMH7qlFIwPVuLyUmbsHs,23552
23
23
  dyff/schema/v0/r1/base.py,sha256=g_wqh4OU_9ftMHovVxPtdeup4O5MZi422v3eZH99ZQI,17139
24
- dyff/schema/v0/r1/platform.py,sha256=x3rYXHUAadobpnWHSLfA-YiNcYkCDl0_d2tn6Pmzd2M,55306
24
+ dyff/schema/v0/r1/platform.py,sha256=qugM6V8GuMB8qVfwLtlRtXCX6imJnOOl_A9jRfcCFwo,54703
25
25
  dyff/schema/v0/r1/requests.py,sha256=jUznZzafF2qSQBBkdXFMDtslCkayg59yFH99NcQHYmk,8014
26
26
  dyff/schema/v0/r1/test.py,sha256=X6dUyVd5svcPCI-PBMOAqEfK9jv3bRDvkQTJzwS96c0,10720
27
27
  dyff/schema/v0/r1/version.py,sha256=SG9ds8afHgdrqOA4CEY8-MM3lKfAE9G0rxsG4uyeglE,363
@@ -33,9 +33,9 @@ dyff/schema/v0/r1/dataset/text.py,sha256=nLIn91Zlt0tNdXUklSgjJ-kEDxoPX32ISLkiv2D
33
33
  dyff/schema/v0/r1/dataset/vision.py,sha256=aIe0fbfM_g3DsrDTdg2K803YKLjZBpurM_VJcJFuZLc,369
34
34
  dyff/schema/v0/r1/io/__init__.py,sha256=L5y8UhRnojerPYHumsxQJRcHCNz8Hj9NM8b47mewMNs,92
35
35
  dyff/schema/v0/r1/io/vllm.py,sha256=CUE9y8KthtUI7sD49S875rDmPvKotSXVIRaBS79aBZs,5320
36
- dyff_schema-0.3.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
37
- dyff_schema-0.3.2.dist-info/METADATA,sha256=9wmt-XIH7Gun3SDpjo2OEZ5pncg9cdmGbU2h0cBdgOg,3459
38
- dyff_schema-0.3.2.dist-info/NOTICE,sha256=YONACu0s_Ui6jNi-wtEsVQbTU1JIkh8wvLH6d1-Ni_w,43
39
- dyff_schema-0.3.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
40
- dyff_schema-0.3.2.dist-info/top_level.txt,sha256=9e3VVdeX73t_sUJOPQPCcGtYO1JhoErhHIi3WoWGcFI,5
41
- dyff_schema-0.3.2.dist-info/RECORD,,
36
+ dyff_schema-0.3.4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
37
+ dyff_schema-0.3.4.dist-info/METADATA,sha256=993TcxK8XRsF1vFPJS5PDY2oKmLgE1t3XQvg8gQ6vEQ,3459
38
+ dyff_schema-0.3.4.dist-info/NOTICE,sha256=YONACu0s_Ui6jNi-wtEsVQbTU1JIkh8wvLH6d1-Ni_w,43
39
+ dyff_schema-0.3.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
40
+ dyff_schema-0.3.4.dist-info/top_level.txt,sha256=9e3VVdeX73t_sUJOPQPCcGtYO1JhoErhHIi3WoWGcFI,5
41
+ dyff_schema-0.3.4.dist-info/RECORD,,