dyff-schema 0.9.0__tar.gz → 0.9.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 (56) hide show
  1. {dyff_schema-0.9.0/dyff_schema.egg-info → dyff_schema-0.9.1}/PKG-INFO +1 -1
  2. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/errors.py +4 -4
  3. {dyff_schema-0.9.0 → dyff_schema-0.9.1/dyff_schema.egg-info}/PKG-INFO +1 -1
  4. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/.gitignore +0 -0
  5. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/.gitlab-ci.yml +0 -0
  6. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/.licenserc.yaml +0 -0
  7. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/.pre-commit-config.yaml +0 -0
  8. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/.prettierignore +0 -0
  9. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/.secrets.baseline +0 -0
  10. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/CODE_OF_CONDUCT.md +0 -0
  11. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/LICENSE +0 -0
  12. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/NOTICE +0 -0
  13. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/README.md +0 -0
  14. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/__init__.py +0 -0
  15. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/adapters.py +0 -0
  16. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/base.py +0 -0
  17. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/copydoc.py +0 -0
  18. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/dataset/__init__.py +0 -0
  19. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/dataset/arrow.py +0 -0
  20. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/dataset/binary.py +0 -0
  21. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/dataset/classification.py +0 -0
  22. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/dataset/text.py +0 -0
  23. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/dataset/vision.py +0 -0
  24. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/ids.py +0 -0
  25. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/io/__init__.py +0 -0
  26. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/io/vllm.py +0 -0
  27. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/platform.py +0 -0
  28. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/py.typed +0 -0
  29. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/quantity.py +0 -0
  30. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/requests.py +0 -0
  31. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/test.py +0 -0
  32. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/v0/__init__.py +0 -0
  33. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/v0/r1/__init__.py +0 -0
  34. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/v0/r1/adapters.py +0 -0
  35. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/v0/r1/base.py +0 -0
  36. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/v0/r1/dataset/__init__.py +0 -0
  37. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/v0/r1/dataset/arrow.py +0 -0
  38. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/v0/r1/dataset/binary.py +0 -0
  39. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/v0/r1/dataset/classification.py +0 -0
  40. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/v0/r1/dataset/text.py +0 -0
  41. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/v0/r1/dataset/vision.py +0 -0
  42. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/v0/r1/io/__init__.py +0 -0
  43. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/v0/r1/io/vllm.py +0 -0
  44. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/v0/r1/platform.py +0 -0
  45. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/v0/r1/requests.py +0 -0
  46. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/v0/r1/test.py +0 -0
  47. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/v0/r1/version.py +0 -0
  48. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff/schema/version.py +0 -0
  49. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff_schema.egg-info/SOURCES.txt +0 -0
  50. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff_schema.egg-info/dependency_links.txt +0 -0
  51. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff_schema.egg-info/requires.txt +0 -0
  52. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/dyff_schema.egg-info/top_level.txt +0 -0
  53. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/makefile +0 -0
  54. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/pyproject.toml +0 -0
  55. {dyff_schema-0.9.0 → dyff_schema-0.9.1}/setup.cfg +0 -0
  56. {dyff_schema-0.9.0 → dyff_schema-0.9.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.9.0
3
+ Version: 0.9.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
@@ -6,8 +6,8 @@ from typing import NamedTuple, Optional
6
6
 
7
7
 
8
8
  class HTTPResponseStatus(NamedTuple):
9
- status_code: int
10
- description: str
9
+ code: int
10
+ status: str
11
11
 
12
12
 
13
13
  HTTP_400_BAD_REQUEST = HTTPResponseStatus(400, "Bad Request")
@@ -28,7 +28,7 @@ class ClientError(DyffError):
28
28
  def __init__(
29
29
  self, message, *, http_status: HTTPResponseStatus = HTTP_400_BAD_REQUEST
30
30
  ):
31
- if not (400 <= http_status.status_code <= 499):
31
+ if not (400 <= http_status.code <= 499):
32
32
  raise AssertionError(
33
33
  f"ClientError should map to a 4xx HTTP status; got {http_status}"
34
34
  )
@@ -44,7 +44,7 @@ class PlatformError(DyffError):
44
44
  *,
45
45
  http_status: HTTPResponseStatus = HTTP_500_INTERNAL_SERVER_ERROR,
46
46
  ):
47
- if not (500 <= http_status.status_code <= 599):
47
+ if not (500 <= http_status.code <= 599):
48
48
  raise AssertionError(
49
49
  f"PlatformError should map to a 5xx HTTP status; got {http_status}"
50
50
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dyff-schema
3
- Version: 0.9.0
3
+ Version: 0.9.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