isaacus 0.1.0a1__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.
isaacus/__init__.py ADDED
@@ -0,0 +1,84 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from . import types
4
+ from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes
5
+ from ._utils import file_from_path
6
+ from ._client import Client, Stream, Isaacus, Timeout, Transport, AsyncClient, AsyncStream, AsyncIsaacus, RequestOptions
7
+ from ._models import BaseModel
8
+ from ._version import __title__, __version__
9
+ from ._response import APIResponse as APIResponse, AsyncAPIResponse as AsyncAPIResponse
10
+ from ._constants import DEFAULT_TIMEOUT, DEFAULT_MAX_RETRIES, DEFAULT_CONNECTION_LIMITS
11
+ from ._exceptions import (
12
+ APIError,
13
+ IsaacusError,
14
+ ConflictError,
15
+ NotFoundError,
16
+ APIStatusError,
17
+ RateLimitError,
18
+ APITimeoutError,
19
+ BadRequestError,
20
+ APIConnectionError,
21
+ AuthenticationError,
22
+ InternalServerError,
23
+ PermissionDeniedError,
24
+ UnprocessableEntityError,
25
+ APIResponseValidationError,
26
+ )
27
+ from ._base_client import DefaultHttpxClient, DefaultAsyncHttpxClient
28
+ from ._utils._logs import setup_logging as _setup_logging
29
+
30
+ __all__ = [
31
+ "types",
32
+ "__version__",
33
+ "__title__",
34
+ "NoneType",
35
+ "Transport",
36
+ "ProxiesTypes",
37
+ "NotGiven",
38
+ "NOT_GIVEN",
39
+ "Omit",
40
+ "IsaacusError",
41
+ "APIError",
42
+ "APIStatusError",
43
+ "APITimeoutError",
44
+ "APIConnectionError",
45
+ "APIResponseValidationError",
46
+ "BadRequestError",
47
+ "AuthenticationError",
48
+ "PermissionDeniedError",
49
+ "NotFoundError",
50
+ "ConflictError",
51
+ "UnprocessableEntityError",
52
+ "RateLimitError",
53
+ "InternalServerError",
54
+ "Timeout",
55
+ "RequestOptions",
56
+ "Client",
57
+ "AsyncClient",
58
+ "Stream",
59
+ "AsyncStream",
60
+ "Isaacus",
61
+ "AsyncIsaacus",
62
+ "file_from_path",
63
+ "BaseModel",
64
+ "DEFAULT_TIMEOUT",
65
+ "DEFAULT_MAX_RETRIES",
66
+ "DEFAULT_CONNECTION_LIMITS",
67
+ "DefaultHttpxClient",
68
+ "DefaultAsyncHttpxClient",
69
+ ]
70
+
71
+ _setup_logging()
72
+
73
+ # Update the __module__ attribute for exported symbols so that
74
+ # error messages point to this module instead of the module
75
+ # it was originally defined in, e.g.
76
+ # isaacus._exceptions.NotFoundError -> isaacus.NotFoundError
77
+ __locals = locals()
78
+ for __name in __all__:
79
+ if not __name.startswith("__"):
80
+ try:
81
+ __locals[__name].__module__ = "isaacus"
82
+ except (TypeError, AttributeError):
83
+ # Some of our exported symbols are builtins which we can't set attributes for.
84
+ pass