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 +84 -0
- isaacus/_base_client.py +1969 -0
- isaacus/_client.py +397 -0
- isaacus/_compat.py +219 -0
- isaacus/_constants.py +14 -0
- isaacus/_exceptions.py +108 -0
- isaacus/_files.py +123 -0
- isaacus/_models.py +801 -0
- isaacus/_qs.py +150 -0
- isaacus/_resource.py +43 -0
- isaacus/_response.py +830 -0
- isaacus/_streaming.py +333 -0
- isaacus/_types.py +217 -0
- isaacus/_utils/__init__.py +57 -0
- isaacus/_utils/_logs.py +25 -0
- isaacus/_utils/_proxy.py +62 -0
- isaacus/_utils/_reflection.py +42 -0
- isaacus/_utils/_streams.py +12 -0
- isaacus/_utils/_sync.py +86 -0
- isaacus/_utils/_transform.py +402 -0
- isaacus/_utils/_typing.py +149 -0
- isaacus/_utils/_utils.py +414 -0
- isaacus/_version.py +4 -0
- isaacus/lib/.keep +4 -0
- isaacus/py.typed +0 -0
- isaacus/resources/__init__.py +19 -0
- isaacus/resources/classifications/__init__.py +33 -0
- isaacus/resources/classifications/classifications.py +102 -0
- isaacus/resources/classifications/universal.py +263 -0
- isaacus/types/__init__.py +3 -0
- isaacus/types/classifications/__init__.py +6 -0
- isaacus/types/classifications/universal_classification.py +55 -0
- isaacus/types/classifications/universal_create_params.py +64 -0
- isaacus-0.1.0a1.dist-info/METADATA +391 -0
- isaacus-0.1.0a1.dist-info/RECORD +37 -0
- isaacus-0.1.0a1.dist-info/WHEEL +4 -0
- isaacus-0.1.0a1.dist-info/licenses/LICENSE +201 -0
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
|