dyff-schema 0.3.0__tar.gz → 0.3.1__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.

Files changed (55) hide show
  1. {dyff-schema-0.3.0/dyff_schema.egg-info → dyff-schema-0.3.1}/PKG-INFO +1 -1
  2. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/v0/r1/platform.py +8 -7
  3. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/v0/r1/requests.py +19 -5
  4. {dyff-schema-0.3.0 → dyff-schema-0.3.1/dyff_schema.egg-info}/PKG-INFO +1 -1
  5. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/.gitignore +0 -0
  6. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/.gitlab-ci.yml +0 -0
  7. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/.licenserc.yaml +0 -0
  8. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/.pre-commit-config.yaml +0 -0
  9. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/.prettierignore +0 -0
  10. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/.secrets.baseline +0 -0
  11. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/CODE_OF_CONDUCT.md +0 -0
  12. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/LICENSE +0 -0
  13. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/NOTICE +0 -0
  14. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/README.md +0 -0
  15. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/__init__.py +0 -0
  16. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/adapters.py +0 -0
  17. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/base.py +0 -0
  18. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/copydoc.py +0 -0
  19. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/dataset/__init__.py +0 -0
  20. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/dataset/arrow.py +0 -0
  21. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/dataset/binary.py +0 -0
  22. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/dataset/classification.py +0 -0
  23. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/dataset/text.py +0 -0
  24. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/dataset/vision.py +0 -0
  25. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/ids.py +0 -0
  26. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/io/__init__.py +0 -0
  27. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/io/vllm.py +0 -0
  28. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/platform.py +0 -0
  29. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/py.typed +0 -0
  30. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/quantity.py +0 -0
  31. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/requests.py +0 -0
  32. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/test.py +0 -0
  33. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/v0/__init__.py +0 -0
  34. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/v0/r1/__init__.py +0 -0
  35. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/v0/r1/adapters.py +0 -0
  36. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/v0/r1/base.py +0 -0
  37. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/v0/r1/dataset/__init__.py +0 -0
  38. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/v0/r1/dataset/arrow.py +0 -0
  39. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/v0/r1/dataset/binary.py +0 -0
  40. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/v0/r1/dataset/classification.py +0 -0
  41. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/v0/r1/dataset/text.py +0 -0
  42. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/v0/r1/dataset/vision.py +0 -0
  43. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/v0/r1/io/__init__.py +0 -0
  44. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/v0/r1/io/vllm.py +0 -0
  45. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/v0/r1/test.py +0 -0
  46. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/v0/r1/version.py +0 -0
  47. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff/schema/version.py +0 -0
  48. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff_schema.egg-info/SOURCES.txt +0 -0
  49. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff_schema.egg-info/dependency_links.txt +0 -0
  50. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff_schema.egg-info/requires.txt +0 -0
  51. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/dyff_schema.egg-info/top_level.txt +0 -0
  52. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/makefile +0 -0
  53. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/pyproject.toml +0 -0
  54. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/setup.cfg +0 -0
  55. {dyff-schema-0.3.0 → dyff-schema-0.3.1}/tests/test_import.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dyff-schema
3
- Version: 0.3.0
3
+ Version: 0.3.1
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
@@ -1120,7 +1120,8 @@ class Report(DyffEntity, ReportBase):
1120
1120
  return None
1121
1121
 
1122
1122
 
1123
- class QueryableDyffEntity(DyffModelWithID):
1123
+ class QueryableDyffEntity(DyffSchemaBaseModel):
1124
+ id: str = pydantic.Field(description="Unique identifier of the entity")
1124
1125
  name: str = pydantic.Field(description="Descriptive name of the resource")
1125
1126
 
1126
1127
 
@@ -1131,26 +1132,26 @@ class MeasurementLevel(str, enum.Enum):
1131
1132
 
1132
1133
  class AnalysisOutputQueryFields(DyffSchemaBaseModel):
1133
1134
  method: QueryableDyffEntity = pydantic.Field(
1134
- description="Basic information about the Method that was run to produce the output."
1135
+ description="Identifying information about the Method that was run to produce the output."
1135
1136
  )
1136
1137
 
1137
1138
  dataset: Optional[QueryableDyffEntity] = pydantic.Field(
1138
1139
  default=None,
1139
- description="Basic information about the Dataset being analyzed, if applicable.",
1140
+ description="Identifying information about the Dataset being analyzed, if applicable.",
1140
1141
  )
1141
1142
 
1142
- evaluation: Optional[QueryableDyffEntity] = pydantic.Field(
1143
+ evaluation: Optional[str] = pydantic.Field(
1143
1144
  default=None,
1144
- description="Basic information about the Evaluation being analyzed, if applicable.",
1145
+ description="ID of the Evaluation being analyzed, if applicable.",
1145
1146
  )
1146
1147
 
1147
1148
  inferenceService: Optional[QueryableDyffEntity] = pydantic.Field(
1148
1149
  default=None,
1149
- description="Basic information about the InferenceService being analyzed, if applicable.",
1150
+ description="Identifying information about the InferenceService being analyzed, if applicable.",
1150
1151
  )
1151
1152
 
1152
1153
  model: Optional[QueryableDyffEntity] = pydantic.Field(
1153
- description="Basic information about the Model being analyzed, if applicable",
1154
+ description="Identifying information about the Model being analyzed, if applicable",
1154
1155
  )
1155
1156
 
1156
1157
 
@@ -49,10 +49,6 @@ class DatasetCreateRequest(DyffEntityCreateRequest, DatasetBase):
49
49
  pass
50
50
 
51
51
 
52
- class ModelCreateRequest(DyffEntityCreateRequest, ModelSpec):
53
- pass
54
-
55
-
56
52
  class InferenceServiceCreateRequest(DyffEntityCreateRequest, InferenceServiceBase):
57
53
  model: Optional[str] = pydantic.Field(
58
54
  default=None, description="ID of Model backing the service, if applicable"
@@ -80,6 +76,10 @@ class MethodCreateRequest(DyffEntityCreateRequest, MethodBase):
80
76
  pass
81
77
 
82
78
 
79
+ class ModelCreateRequest(DyffEntityCreateRequest, ModelSpec):
80
+ pass
81
+
82
+
83
83
  class ModuleCreateRequest(DyffEntityCreateRequest, ModuleBase):
84
84
  pass
85
85
 
@@ -131,7 +131,9 @@ class DyffEntityQueryRequest(DyffSchemaBaseModel):
131
131
 
132
132
 
133
133
  class AnalysisQueryRequest(DyffEntityQueryRequest):
134
- name: Optional[str] = pydantic.Field(default=None)
134
+ method: Optional[str] = pydantic.Field(default=None)
135
+ methodName: Optional[str] = pydantic.Field(default=None)
136
+ methodOutputKind: Optional[str] = pydantic.Field(default=None)
135
137
 
136
138
 
137
139
  class AuditQueryRequest(DyffEntityQueryRequest):
@@ -166,12 +168,21 @@ class InferenceSessionQueryRequest(DyffEntityQueryRequest):
166
168
 
167
169
  class MeasurementQueryRequest(DyffEntityQueryRequest):
168
170
  dataset: Optional[str] = pydantic.Field(default=None)
171
+ datasetName: Optional[str] = pydantic.Field(default=None)
172
+ evaluation: Optional[str] = pydantic.Field(default=None)
169
173
  inferenceService: Optional[str] = pydantic.Field(default=None)
170
174
  inferenceServiceName: Optional[str] = pydantic.Field(default=None)
175
+ method: Optional[str] = pydantic.Field(default=None)
176
+ methodName: Optional[str] = pydantic.Field(default=None)
171
177
  model: Optional[str] = pydantic.Field(default=None)
172
178
  modelName: Optional[str] = pydantic.Field(default=None)
173
179
 
174
180
 
181
+ class MethodQueryRequest(DyffEntityQueryRequest):
182
+ name: Optional[str] = pydantic.Field(default=None)
183
+ outputKind: Optional[str] = pydantic.Field(default=None)
184
+
185
+
175
186
  class ModelQueryRequest(DyffEntityQueryRequest):
176
187
  name: Optional[str] = pydantic.Field(default=None)
177
188
 
@@ -204,6 +215,9 @@ __all__ = [
204
215
  "InferenceSessionCreateRequest",
205
216
  "InferenceSessionQueryRequest",
206
217
  "LabelUpdateRequest",
218
+ "MeasurementQueryRequest",
219
+ "MethodCreateRequest",
220
+ "MethodQueryRequest",
207
221
  "ModelCreateRequest",
208
222
  "ModelQueryRequest",
209
223
  "ModuleCreateRequest",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dyff-schema
3
- Version: 0.3.0
3
+ Version: 0.3.1
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
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