dyff-schema 0.30.1__tar.gz → 0.31.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 (65) hide show
  1. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/.gitlab-ci.yml +4 -4
  2. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/.pre-commit-config.yaml +1 -1
  3. {dyff_schema-0.30.1/dyff_schema.egg-info → dyff_schema-0.31.1}/PKG-INFO +4 -3
  4. dyff_schema-0.31.1/dyff/schema/_version.py +2 -0
  5. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/v0/r1/platform.py +15 -1
  6. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/v0/r1/requests.py +2 -1
  7. {dyff_schema-0.30.1 → dyff_schema-0.31.1/dyff_schema.egg-info}/PKG-INFO +4 -3
  8. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff_schema.egg-info/requires.txt +3 -0
  9. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/pyproject.toml +6 -2
  10. dyff_schema-0.30.1/dyff/schema/_version.py +0 -2
  11. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/.gitignore +0 -0
  12. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/.idea/dyff-schema.iml +0 -0
  13. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/.licenserc.yaml +0 -0
  14. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/.prettierignore +0 -0
  15. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/.secrets.baseline +0 -0
  16. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/CODE_OF_CONDUCT.md +0 -0
  17. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/LICENSE +0 -0
  18. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/NOTICE +0 -0
  19. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/README.md +0 -0
  20. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/__init__.py +0 -0
  21. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/adapters.py +0 -0
  22. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/annotations.py +0 -0
  23. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/base.py +0 -0
  24. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/commands.py +0 -0
  25. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/copydoc.py +0 -0
  26. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/dataset/__init__.py +0 -0
  27. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/dataset/arrow.py +0 -0
  28. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/dataset/binary.py +0 -0
  29. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/dataset/classification.py +0 -0
  30. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/dataset/embedding.py +0 -0
  31. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/dataset/text.py +0 -0
  32. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/dataset/vision.py +0 -0
  33. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/errors.py +0 -0
  34. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/ids.py +0 -0
  35. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/io/__init__.py +0 -0
  36. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/io/vllm.py +0 -0
  37. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/platform.py +0 -0
  38. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/py.typed +0 -0
  39. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/quantity.py +0 -0
  40. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/requests.py +0 -0
  41. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/test.py +0 -0
  42. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/v0/__init__.py +0 -0
  43. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/v0/r1/__init__.py +0 -0
  44. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/v0/r1/adapters.py +0 -0
  45. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/v0/r1/base.py +0 -0
  46. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/v0/r1/commands.py +0 -0
  47. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/v0/r1/dataset/__init__.py +0 -0
  48. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/v0/r1/dataset/arrow.py +0 -0
  49. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/v0/r1/dataset/binary.py +0 -0
  50. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/v0/r1/dataset/classification.py +0 -0
  51. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/v0/r1/dataset/embedding.py +0 -0
  52. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/v0/r1/dataset/text.py +0 -0
  53. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/v0/r1/dataset/vision.py +0 -0
  54. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/v0/r1/io/__init__.py +0 -0
  55. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/v0/r1/io/vllm.py +0 -0
  56. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/v0/r1/test.py +0 -0
  57. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/v0/r1/version.py +0 -0
  58. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff/schema/version.py +0 -0
  59. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff_schema.egg-info/SOURCES.txt +0 -0
  60. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff_schema.egg-info/dependency_links.txt +0 -0
  61. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/dyff_schema.egg-info/top_level.txt +0 -0
  62. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/makefile +0 -0
  63. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/setup.cfg +0 -0
  64. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/tests/test_adapters.py +0 -0
  65. {dyff_schema-0.30.1 → dyff_schema-0.31.1}/tests/test_import.py +0 -0
@@ -8,7 +8,7 @@ stages:
8
8
 
9
9
  include:
10
10
  - project: saferatday0/library/gitlab
11
- ref: 0.7.0
11
+ ref: 0.16.0
12
12
  file:
13
13
  - gitlab-release.yml
14
14
  - project: saferatday0/library/detect-secrets
@@ -20,7 +20,7 @@ include:
20
20
  file:
21
21
  - prettier.yml
22
22
  - project: saferatday0/library/python
23
- ref: 0.20.0
23
+ ref: 0.21.0
24
24
  file:
25
25
  - python-autoflake.yml
26
26
  - python-black.yml
@@ -33,7 +33,7 @@ include:
33
33
  - python-twine-upload.yml
34
34
  - python-docformatter.yml
35
35
  - project: saferatday0/library/skywalking-eyes
36
- ref: 0.5.0
36
+ ref: 0.6.0
37
37
  file:
38
38
  - license-eye-header-check.yml
39
39
 
@@ -58,4 +58,4 @@ python-twine-upload-pypi:
58
58
  python-pytest:
59
59
  parallel:
60
60
  matrix:
61
- - PYTHON_VERSION: ['3.9', '3.10', '3.11', '3.12']
61
+ - PYTHON_VERSION: ['3.10', '3.11', '3.12']
@@ -40,7 +40,7 @@ repos:
40
40
  args: ["--in-place", "--black", "--config", "./pyproject.toml"]
41
41
 
42
42
  - repo: https://gitlab.com/saferatday0/library/skywalking-eyes
43
- rev: "0.5.0"
43
+ rev: "0.6.0"
44
44
  hooks:
45
45
  - id: license-eye-header-fix
46
46
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dyff-schema
3
- Version: 0.30.1
3
+ Version: 0.31.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
@@ -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.9
19
+ Requires-Python: >=3.10
21
20
  Description-Content-Type: text/markdown
22
21
  License-File: LICENSE
23
22
  License-File: NOTICE
@@ -27,6 +26,8 @@ Requires-Dist: jsonpath-ng
27
26
  Requires-Dist: numpy<2
28
27
  Requires-Dist: pyarrow
29
28
  Requires-Dist: pydantic<3.0.0,>=2.0.0
29
+ Provides-Extra: dev
30
+ Requires-Dist: pytest; extra == "dev"
30
31
  Dynamic: license-file
31
32
 
32
33
  # dyff-schema
@@ -0,0 +1,2 @@
1
+ __version__ = version = "0.31.1"
2
+ __version_tuple__ = version_tuple = (0, 31, 1)
@@ -251,6 +251,9 @@ class Resources(str, enum.Enum):
251
251
  breaks existing API keys.
252
252
  """
253
253
 
254
+ ChoresValidateSchema = "chores/validate-schema"
255
+ """Administrative task: Schema validation operations."""
256
+
254
257
  ALL = "*"
255
258
 
256
259
  @staticmethod
@@ -1955,11 +1958,20 @@ class Method(DyffEntity, MethodBase):
1955
1958
  return None
1956
1959
 
1957
1960
 
1961
+ class EntityIDMarker:
1962
+ """Marker class to indicate that a field contains an entity ID that supports
1963
+ family@tag resolution."""
1964
+
1965
+
1966
+ # Type alias for entity ID fields that support family@tag resolution
1967
+ EntityIDField: TypeAlias = Annotated[str, EntityIDMarker]
1968
+
1969
+
1958
1970
  class AnalysisInput(DyffSchemaBaseModel):
1959
1971
  keyword: str = pydantic.Field(
1960
1972
  description="The 'keyword' specified for this input in the MethodSpec."
1961
1973
  )
1962
- entity: str = pydantic.Field(
1974
+ entity: EntityIDField = pydantic.Field(
1963
1975
  description="The ID of the entity whose data should be made available as 'keyword'."
1964
1976
  )
1965
1977
 
@@ -2495,6 +2507,8 @@ __all__ = [
2495
2507
  "Entities",
2496
2508
  "EntityID",
2497
2509
  "EntityIdentifier",
2510
+ "EntityIDField",
2511
+ "EntityIDMarker",
2498
2512
  "EntityKindLiteral",
2499
2513
  "Evaluation",
2500
2514
  "EvaluationBase",
@@ -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: str = pydantic.Field(description="Method ID")
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.30.1
3
+ Version: 0.31.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
@@ -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.9
19
+ Requires-Python: >=3.10
21
20
  Description-Content-Type: text/markdown
22
21
  License-File: LICENSE
23
22
  License-File: NOTICE
@@ -27,6 +26,8 @@ Requires-Dist: jsonpath-ng
27
26
  Requires-Dist: numpy<2
28
27
  Requires-Dist: pyarrow
29
28
  Requires-Dist: pydantic<3.0.0,>=2.0.0
29
+ Provides-Extra: dev
30
+ Requires-Dist: pytest; extra == "dev"
30
31
  Dynamic: license-file
31
32
 
32
33
  # dyff-schema
@@ -4,3 +4,6 @@ jsonpath-ng
4
4
  numpy<2
5
5
  pyarrow
6
6
  pydantic<3.0.0,>=2.0.0
7
+
8
+ [dev]
9
+ pytest
@@ -23,7 +23,6 @@ classifiers=[
23
23
  "License :: OSI Approved :: Apache Software License",
24
24
  "Operating System :: OS Independent",
25
25
  "Programming Language :: Python :: 3",
26
- "Programming Language :: Python :: 3.9",
27
26
  "Programming Language :: Python :: 3.10",
28
27
  "Programming Language :: Python :: 3.11",
29
28
  "Programming Language :: Python :: 3.12",
@@ -52,7 +51,12 @@ license = {"text" = "Apache-2.0"}
52
51
 
53
52
  readme = "README.md"
54
53
 
55
- requires-python = ">=3.9"
54
+ requires-python = ">=3.10"
55
+
56
+ [project.optional-dependencies]
57
+ dev = [
58
+ "pytest",
59
+ ]
56
60
 
57
61
  [project.urls]
58
62
  "Home" = "https://gitlab.com/dyff/packages/dyff-schema"
@@ -1,2 +0,0 @@
1
- __version__ = version = "0.30.1"
2
- __version_tuple__ = version_tuple = (0, 30, 1)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes