deeprails 0.3.2__py3-none-any.whl → 1.2.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.
Files changed (57) hide show
  1. deeprails/__init__.py +102 -1
  2. deeprails/_base_client.py +1995 -0
  3. deeprails/_client.py +419 -0
  4. deeprails/_compat.py +219 -0
  5. deeprails/_constants.py +14 -0
  6. deeprails/_exceptions.py +108 -0
  7. deeprails/_files.py +123 -0
  8. deeprails/_models.py +835 -0
  9. deeprails/_qs.py +150 -0
  10. deeprails/_resource.py +43 -0
  11. deeprails/_response.py +830 -0
  12. deeprails/_streaming.py +333 -0
  13. deeprails/_types.py +260 -0
  14. deeprails/_utils/__init__.py +64 -0
  15. deeprails/_utils/_compat.py +45 -0
  16. deeprails/_utils/_datetime_parse.py +136 -0
  17. deeprails/_utils/_logs.py +25 -0
  18. deeprails/_utils/_proxy.py +65 -0
  19. deeprails/_utils/_reflection.py +42 -0
  20. deeprails/_utils/_resources_proxy.py +24 -0
  21. deeprails/_utils/_streams.py +12 -0
  22. deeprails/_utils/_sync.py +86 -0
  23. deeprails/_utils/_transform.py +457 -0
  24. deeprails/_utils/_typing.py +156 -0
  25. deeprails/_utils/_utils.py +421 -0
  26. deeprails/_version.py +4 -0
  27. deeprails/lib/.keep +4 -0
  28. deeprails/py.typed +0 -0
  29. deeprails/resources/__init__.py +47 -0
  30. deeprails/resources/defend.py +671 -0
  31. deeprails/resources/evaluate.py +334 -0
  32. deeprails/resources/monitor.py +566 -0
  33. deeprails/types/__init__.py +18 -0
  34. deeprails/types/api_response.py +50 -0
  35. deeprails/types/defend_create_workflow_params.py +56 -0
  36. deeprails/types/defend_response.py +50 -0
  37. deeprails/types/defend_submit_event_params.py +44 -0
  38. deeprails/types/defend_update_workflow_params.py +18 -0
  39. deeprails/types/evaluate_create_params.py +60 -0
  40. deeprails/types/evaluation.py +113 -0
  41. deeprails/types/monitor_create_params.py +15 -0
  42. deeprails/types/monitor_retrieve_params.py +12 -0
  43. deeprails/types/monitor_retrieve_response.py +81 -0
  44. deeprails/types/monitor_submit_event_params.py +63 -0
  45. deeprails/types/monitor_submit_event_response.py +36 -0
  46. deeprails/types/monitor_update_params.py +22 -0
  47. deeprails/types/workflow_event_response.py +33 -0
  48. deeprails-1.2.0.dist-info/METADATA +377 -0
  49. deeprails-1.2.0.dist-info/RECORD +51 -0
  50. {deeprails-0.3.2.dist-info → deeprails-1.2.0.dist-info}/WHEEL +1 -1
  51. deeprails-1.2.0.dist-info/licenses/LICENSE +201 -0
  52. deeprails/client.py +0 -285
  53. deeprails/exceptions.py +0 -10
  54. deeprails/schemas.py +0 -92
  55. deeprails-0.3.2.dist-info/METADATA +0 -235
  56. deeprails-0.3.2.dist-info/RECORD +0 -8
  57. deeprails-0.3.2.dist-info/licenses/LICENSE +0 -11
deeprails/__init__.py CHANGED
@@ -1 +1,102 @@
1
- from .client import DeepRails
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import typing as _t
4
+
5
+ from . import types
6
+ from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes, omit, not_given
7
+ from ._utils import file_from_path
8
+ from ._client import (
9
+ Client,
10
+ Stream,
11
+ Timeout,
12
+ Deeprails,
13
+ Transport,
14
+ AsyncClient,
15
+ AsyncStream,
16
+ AsyncDeeprails,
17
+ RequestOptions,
18
+ )
19
+ from ._models import BaseModel
20
+ from ._version import __title__, __version__
21
+ from ._response import APIResponse as APIResponse, AsyncAPIResponse as AsyncAPIResponse
22
+ from ._constants import DEFAULT_TIMEOUT, DEFAULT_MAX_RETRIES, DEFAULT_CONNECTION_LIMITS
23
+ from ._exceptions import (
24
+ APIError,
25
+ ConflictError,
26
+ NotFoundError,
27
+ APIStatusError,
28
+ DeeprailsError,
29
+ RateLimitError,
30
+ APITimeoutError,
31
+ BadRequestError,
32
+ APIConnectionError,
33
+ AuthenticationError,
34
+ InternalServerError,
35
+ PermissionDeniedError,
36
+ UnprocessableEntityError,
37
+ APIResponseValidationError,
38
+ )
39
+ from ._base_client import DefaultHttpxClient, DefaultAioHttpClient, DefaultAsyncHttpxClient
40
+ from ._utils._logs import setup_logging as _setup_logging
41
+
42
+ __all__ = [
43
+ "types",
44
+ "__version__",
45
+ "__title__",
46
+ "NoneType",
47
+ "Transport",
48
+ "ProxiesTypes",
49
+ "NotGiven",
50
+ "NOT_GIVEN",
51
+ "not_given",
52
+ "Omit",
53
+ "omit",
54
+ "DeeprailsError",
55
+ "APIError",
56
+ "APIStatusError",
57
+ "APITimeoutError",
58
+ "APIConnectionError",
59
+ "APIResponseValidationError",
60
+ "BadRequestError",
61
+ "AuthenticationError",
62
+ "PermissionDeniedError",
63
+ "NotFoundError",
64
+ "ConflictError",
65
+ "UnprocessableEntityError",
66
+ "RateLimitError",
67
+ "InternalServerError",
68
+ "Timeout",
69
+ "RequestOptions",
70
+ "Client",
71
+ "AsyncClient",
72
+ "Stream",
73
+ "AsyncStream",
74
+ "Deeprails",
75
+ "AsyncDeeprails",
76
+ "file_from_path",
77
+ "BaseModel",
78
+ "DEFAULT_TIMEOUT",
79
+ "DEFAULT_MAX_RETRIES",
80
+ "DEFAULT_CONNECTION_LIMITS",
81
+ "DefaultHttpxClient",
82
+ "DefaultAsyncHttpxClient",
83
+ "DefaultAioHttpClient",
84
+ ]
85
+
86
+ if not _t.TYPE_CHECKING:
87
+ from ._utils._resources_proxy import resources as resources
88
+
89
+ _setup_logging()
90
+
91
+ # Update the __module__ attribute for exported symbols so that
92
+ # error messages point to this module instead of the module
93
+ # it was originally defined in, e.g.
94
+ # deeprails._exceptions.NotFoundError -> deeprails.NotFoundError
95
+ __locals = locals()
96
+ for __name in __all__:
97
+ if not __name.startswith("__"):
98
+ try:
99
+ __locals[__name].__module__ = "deeprails"
100
+ except (TypeError, AttributeError):
101
+ # Some of our exported symbols are builtins which we can't set attributes for.
102
+ pass