deeprails 0.3.1__py3-none-any.whl → 1.0.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.

Potentially problematic release.


This version of deeprails might be problematic. Click here for more details.

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