katcloud 0.1.0__tar.gz → 0.1.1__tar.gz
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.
- {katcloud-0.1.0 → katcloud-0.1.1}/PKG-INFO +1 -1
- {katcloud-0.1.0 → katcloud-0.1.1}/pyproject.toml +1 -1
- {katcloud-0.1.0 → katcloud-0.1.1}/src/katcloud/__init__.py +1 -1
- {katcloud-0.1.0 → katcloud-0.1.1}/src/katcloud/client.py +3 -3
- {katcloud-0.1.0 → katcloud-0.1.1}/src/katcloud.egg-info/PKG-INFO +1 -1
- {katcloud-0.1.0 → katcloud-0.1.1}/README.md +0 -0
- {katcloud-0.1.0 → katcloud-0.1.1}/setup.cfg +0 -0
- {katcloud-0.1.0 → katcloud-0.1.1}/src/katcloud/errors.py +0 -0
- {katcloud-0.1.0 → katcloud-0.1.1}/src/katcloud/py.typed +0 -0
- {katcloud-0.1.0 → katcloud-0.1.1}/src/katcloud/types.py +0 -0
- {katcloud-0.1.0 → katcloud-0.1.1}/src/katcloud/webhook.py +0 -0
- {katcloud-0.1.0 → katcloud-0.1.1}/src/katcloud.egg-info/SOURCES.txt +0 -0
- {katcloud-0.1.0 → katcloud-0.1.1}/src/katcloud.egg-info/dependency_links.txt +0 -0
- {katcloud-0.1.0 → katcloud-0.1.1}/src/katcloud.egg-info/top_level.txt +0 -0
- {katcloud-0.1.0 → katcloud-0.1.1}/tests/test_client.py +0 -0
- {katcloud-0.1.0 → katcloud-0.1.1}/tests/test_webhook.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""KAT Cloud (한국에이아이통신) Python SDK. Docs: https://katcloud.kr/docs/api"""
|
|
2
2
|
|
|
3
|
-
__version__ = "0.1.
|
|
3
|
+
__version__ = "0.1.1"
|
|
4
4
|
|
|
5
5
|
from .client import DEFAULT_BASE_URL, Client, urllib_transport # noqa: E402
|
|
6
6
|
from .errors import KatError, WebhookSignatureError # noqa: E402
|
|
@@ -32,7 +32,7 @@ from .types import (
|
|
|
32
32
|
WebhookTestResult,
|
|
33
33
|
)
|
|
34
34
|
|
|
35
|
-
DEFAULT_BASE_URL = "https://
|
|
35
|
+
DEFAULT_BASE_URL = "https://api.katcloud.kr"
|
|
36
36
|
|
|
37
37
|
# (method, url, headers, body, timeout) -> (status, headers, body)
|
|
38
38
|
Transport = Callable[[str, str, Dict[str, str], Optional[bytes], float], Tuple[int, Mapping[str, str], bytes]]
|
|
@@ -81,9 +81,9 @@ class Client:
|
|
|
81
81
|
timeout: float = 30.0,
|
|
82
82
|
transport: Optional[Transport] = None,
|
|
83
83
|
) -> None:
|
|
84
|
-
api_key = api_key or os.environ.get("KATCLOUD_API_KEY")
|
|
84
|
+
api_key = api_key or os.environ.get("KATCLOUD_API_KEY") or os.environ.get("KAT_API_KEY")
|
|
85
85
|
if not api_key:
|
|
86
|
-
raise ValueError("api_key is required (or set KATCLOUD_API_KEY)")
|
|
86
|
+
raise ValueError("api_key is required (or set KATCLOUD_API_KEY or KAT_API_KEY)")
|
|
87
87
|
self.api_key = api_key
|
|
88
88
|
self.base_url = (base_url or os.environ.get("KATCLOUD_BASE_URL") or DEFAULT_BASE_URL).rstrip("/")
|
|
89
89
|
self.timeout = timeout
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|