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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: katcloud
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: KAT Cloud API Python SDK
5
5
  Author: 한국에이아이통신(주)
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "katcloud"
7
- version = "0.1.0"
7
+ version = "0.1.1"
8
8
  description = "KAT Cloud API Python SDK"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -1,6 +1,6 @@
1
1
  """KAT Cloud (한국에이아이통신) Python SDK. Docs: https://katcloud.kr/docs/api"""
2
2
 
3
- __version__ = "0.1.0"
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://studio-gateway.zerocall.kr"
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: katcloud
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: KAT Cloud API Python SDK
5
5
  Author: 한국에이아이통신(주)
6
6
  License: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes