compass_api_sdk 0.4.4__py3-none-any.whl → 0.5.1__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 compass_api_sdk might be problematic. Click here for more details.
- compass_api_sdk/_version.py +3 -3
- compass_api_sdk/errors/__init__.py +37 -2
- compass_api_sdk/models/__init__.py +1491 -820
- compass_api_sdk/models/contractname.py +2 -0
- compass_api_sdk/models/pendle_accrued_interestop.py +42 -0
- compass_api_sdk/models/pendleaccruedinterestresponse.py +17 -0
- compass_api_sdk/models/txresponse.py +11 -2
- compass_api_sdk/pendle.py +215 -0
- compass_api_sdk/sdk.py +68 -31
- compass_api_sdk/utils/__init__.py +130 -46
- {compass_api_sdk-0.4.4.dist-info → compass_api_sdk-0.5.1.dist-info}/METADATA +5 -1
- {compass_api_sdk-0.4.4.dist-info → compass_api_sdk-0.5.1.dist-info}/RECORD +13 -10
- {compass_api_sdk-0.4.4.dist-info → compass_api_sdk-0.5.1.dist-info}/WHEEL +0 -0
compass_api_sdk/_version.py
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "compass_api_sdk"
|
|
6
|
-
__version__: str = "0.
|
|
6
|
+
__version__: str = "0.5.1"
|
|
7
7
|
__openapi_doc_version__: str = "0.0.1"
|
|
8
|
-
__gen_version__: str = "2.
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.
|
|
8
|
+
__gen_version__: str = "2.610.0"
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.5.1 2.610.0 0.0.1 compass_api_sdk"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
|
@@ -1,7 +1,42 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
from importlib import import_module
|
|
5
5
|
|
|
6
|
+
if TYPE_CHECKING:
|
|
7
|
+
from .apierror import APIError
|
|
8
|
+
from .httpvalidationerror import HTTPValidationError, HTTPValidationErrorData
|
|
6
9
|
|
|
7
10
|
__all__ = ["APIError", "HTTPValidationError", "HTTPValidationErrorData"]
|
|
11
|
+
|
|
12
|
+
_dynamic_imports: dict[str, str] = {
|
|
13
|
+
"APIError": ".apierror",
|
|
14
|
+
"HTTPValidationError": ".httpvalidationerror",
|
|
15
|
+
"HTTPValidationErrorData": ".httpvalidationerror",
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def __getattr__(attr_name: str) -> object:
|
|
20
|
+
module_name = _dynamic_imports.get(attr_name)
|
|
21
|
+
if module_name is None:
|
|
22
|
+
raise AttributeError(
|
|
23
|
+
f"No {attr_name} found in _dynamic_imports for module name -> {__name__} "
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
try:
|
|
27
|
+
module = import_module(module_name, __package__)
|
|
28
|
+
result = getattr(module, attr_name)
|
|
29
|
+
return result
|
|
30
|
+
except ImportError as e:
|
|
31
|
+
raise ImportError(
|
|
32
|
+
f"Failed to import {attr_name} from {module_name}: {e}"
|
|
33
|
+
) from e
|
|
34
|
+
except AttributeError as e:
|
|
35
|
+
raise AttributeError(
|
|
36
|
+
f"Failed to get {attr_name} from {module_name}: {e}"
|
|
37
|
+
) from e
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def __dir__():
|
|
41
|
+
lazy_attrs = list(_dynamic_imports.keys())
|
|
42
|
+
return sorted(lazy_attrs)
|