yeonjae-universal-http-api-client 1.0.3__tar.gz → 1.0.5__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.
- {yeonjae_universal_http_api_client-1.0.3 → yeonjae_universal_http_api_client-1.0.5}/PKG-INFO +3 -3
- {yeonjae_universal_http_api_client-1.0.3 → yeonjae_universal_http_api_client-1.0.5}/README.md +2 -2
- {yeonjae_universal_http_api_client-1.0.3 → yeonjae_universal_http_api_client-1.0.5}/pyproject.toml +1 -1
- {yeonjae_universal_http_api_client-1.0.3/src/universal_http_api_client → yeonjae_universal_http_api_client-1.0.5/src/yeonjae_universal_http_api_client}/client.py +6 -16
- {yeonjae_universal_http_api_client-1.0.3 → yeonjae_universal_http_api_client-1.0.5}/src/yeonjae_universal_http_api_client.egg-info/PKG-INFO +3 -3
- yeonjae_universal_http_api_client-1.0.5/src/yeonjae_universal_http_api_client.egg-info/SOURCES.txt +16 -0
- yeonjae_universal_http_api_client-1.0.5/src/yeonjae_universal_http_api_client.egg-info/top_level.txt +1 -0
- {yeonjae_universal_http_api_client-1.0.3 → yeonjae_universal_http_api_client-1.0.5}/tests/test_basic.py +2 -2
- {yeonjae_universal_http_api_client-1.0.3 → yeonjae_universal_http_api_client-1.0.5}/tests/test_http_api_client.py +3 -3
- yeonjae_universal_http_api_client-1.0.3/src/yeonjae_universal_http_api_client.egg-info/SOURCES.txt +0 -16
- yeonjae_universal_http_api_client-1.0.3/src/yeonjae_universal_http_api_client.egg-info/top_level.txt +0 -1
- {yeonjae_universal_http_api_client-1.0.3 → yeonjae_universal_http_api_client-1.0.5}/setup.cfg +0 -0
- {yeonjae_universal_http_api_client-1.0.3/src/universal_http_api_client → yeonjae_universal_http_api_client-1.0.5/src/yeonjae_universal_http_api_client}/__init__.py +0 -0
- {yeonjae_universal_http_api_client-1.0.3/src/universal_http_api_client → yeonjae_universal_http_api_client-1.0.5/src/yeonjae_universal_http_api_client}/adapters.py +0 -0
- {yeonjae_universal_http_api_client-1.0.3/src/universal_http_api_client → yeonjae_universal_http_api_client-1.0.5/src/yeonjae_universal_http_api_client}/exceptions.py +0 -0
- {yeonjae_universal_http_api_client-1.0.3/src/universal_http_api_client → yeonjae_universal_http_api_client-1.0.5/src/yeonjae_universal_http_api_client}/models.py +0 -0
- {yeonjae_universal_http_api_client-1.0.3/src/universal_http_api_client → yeonjae_universal_http_api_client-1.0.5/src/yeonjae_universal_http_api_client}/py.typed +0 -0
- {yeonjae_universal_http_api_client-1.0.3/src/universal_http_api_client → yeonjae_universal_http_api_client-1.0.5/src/yeonjae_universal_http_api_client}/utils.py +0 -0
- {yeonjae_universal_http_api_client-1.0.3 → yeonjae_universal_http_api_client-1.0.5}/src/yeonjae_universal_http_api_client.egg-info/dependency_links.txt +0 -0
- {yeonjae_universal_http_api_client-1.0.3 → yeonjae_universal_http_api_client-1.0.5}/src/yeonjae_universal_http_api_client.egg-info/requires.txt +0 -0
{yeonjae_universal_http_api_client-1.0.3 → yeonjae_universal_http_api_client-1.0.5}/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: yeonjae-universal-http-api-client
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.5
|
4
4
|
Summary: Universal HTTP API client supporting GitHub, GitLab, Bitbucket and other platforms
|
5
5
|
Author-email: "CodePing.AI Team" <contact@codeping.ai>
|
6
6
|
License: MIT
|
@@ -53,13 +53,13 @@ Universal HTTP API client with platform-specific adapters for GitHub, GitLab, Sl
|
|
53
53
|
## Installation
|
54
54
|
|
55
55
|
```bash
|
56
|
-
pip install universal-http-api-client
|
56
|
+
pip install yeonjae-universal-http-api-client
|
57
57
|
```
|
58
58
|
|
59
59
|
## Quick Start
|
60
60
|
|
61
61
|
```python
|
62
|
-
from
|
62
|
+
from yeonjae_universal_http_api_client import HTTPAPIClient, Platform
|
63
63
|
|
64
64
|
# GitHub API
|
65
65
|
client = HTTPAPIClient(Platform.GITHUB, "your-token")
|
{yeonjae_universal_http_api_client-1.0.3 → yeonjae_universal_http_api_client-1.0.5}/README.md
RENAMED
@@ -14,13 +14,13 @@ Universal HTTP API client with platform-specific adapters for GitHub, GitLab, Sl
|
|
14
14
|
## Installation
|
15
15
|
|
16
16
|
```bash
|
17
|
-
pip install universal-http-api-client
|
17
|
+
pip install yeonjae-universal-http-api-client
|
18
18
|
```
|
19
19
|
|
20
20
|
## Quick Start
|
21
21
|
|
22
22
|
```python
|
23
|
-
from
|
23
|
+
from yeonjae_universal_http_api_client import HTTPAPIClient, Platform
|
24
24
|
|
25
25
|
# GitHub API
|
26
26
|
client = HTTPAPIClient(Platform.GITHUB, "your-token")
|
{yeonjae_universal_http_api_client-1.0.3 → yeonjae_universal_http_api_client-1.0.5}/pyproject.toml
RENAMED
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "yeonjae-universal-http-api-client"
|
7
|
-
version = "1.0.
|
7
|
+
version = "1.0.5"
|
8
8
|
description = "Universal HTTP API client supporting GitHub, GitLab, Bitbucket and other platforms"
|
9
9
|
readme = {file = "README.md", content-type = "text/markdown"}
|
10
10
|
license = {text = "MIT"}
|
@@ -358,8 +358,9 @@ class HTTPAPIClient:
|
|
358
358
|
# 입력 로깅
|
359
359
|
self.io_logger.log_input(
|
360
360
|
"get_commit",
|
361
|
-
|
362
|
-
|
361
|
+
repo_name=repo_name,
|
362
|
+
commit_sha=commit_sha,
|
363
|
+
platform=self.platform.value
|
363
364
|
)
|
364
365
|
|
365
366
|
try:
|
@@ -376,14 +377,8 @@ class HTTPAPIClient:
|
|
376
377
|
# 출력 로깅
|
377
378
|
self.io_logger.log_output(
|
378
379
|
"get_commit",
|
379
|
-
|
380
|
-
|
381
|
-
"platform": self.platform.value,
|
382
|
-
"status_code": response.status_code,
|
383
|
-
"success": response.success,
|
384
|
-
"commit_sha": commit_sha,
|
385
|
-
"files_changed": len(response.data.get("files", [])) if response.data else 0
|
386
|
-
}
|
380
|
+
result=response.data,
|
381
|
+
execution_time=response.response_time
|
387
382
|
)
|
388
383
|
|
389
384
|
return response
|
@@ -392,12 +387,7 @@ class HTTPAPIClient:
|
|
392
387
|
# 오류 로깅
|
393
388
|
self.io_logger.log_error(
|
394
389
|
"get_commit",
|
395
|
-
e
|
396
|
-
metadata={
|
397
|
-
"platform": self.platform.value,
|
398
|
-
"repo_name": repo_name,
|
399
|
-
"commit_sha": commit_sha
|
400
|
-
}
|
390
|
+
e
|
401
391
|
)
|
402
392
|
raise
|
403
393
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: yeonjae-universal-http-api-client
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.5
|
4
4
|
Summary: Universal HTTP API client supporting GitHub, GitLab, Bitbucket and other platforms
|
5
5
|
Author-email: "CodePing.AI Team" <contact@codeping.ai>
|
6
6
|
License: MIT
|
@@ -53,13 +53,13 @@ Universal HTTP API client with platform-specific adapters for GitHub, GitLab, Sl
|
|
53
53
|
## Installation
|
54
54
|
|
55
55
|
```bash
|
56
|
-
pip install universal-http-api-client
|
56
|
+
pip install yeonjae-universal-http-api-client
|
57
57
|
```
|
58
58
|
|
59
59
|
## Quick Start
|
60
60
|
|
61
61
|
```python
|
62
|
-
from
|
62
|
+
from yeonjae_universal_http_api_client import HTTPAPIClient, Platform
|
63
63
|
|
64
64
|
# GitHub API
|
65
65
|
client = HTTPAPIClient(Platform.GITHUB, "your-token")
|
yeonjae_universal_http_api_client-1.0.5/src/yeonjae_universal_http_api_client.egg-info/SOURCES.txt
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
README.md
|
2
|
+
pyproject.toml
|
3
|
+
src/yeonjae_universal_http_api_client/__init__.py
|
4
|
+
src/yeonjae_universal_http_api_client/adapters.py
|
5
|
+
src/yeonjae_universal_http_api_client/client.py
|
6
|
+
src/yeonjae_universal_http_api_client/exceptions.py
|
7
|
+
src/yeonjae_universal_http_api_client/models.py
|
8
|
+
src/yeonjae_universal_http_api_client/py.typed
|
9
|
+
src/yeonjae_universal_http_api_client/utils.py
|
10
|
+
src/yeonjae_universal_http_api_client.egg-info/PKG-INFO
|
11
|
+
src/yeonjae_universal_http_api_client.egg-info/SOURCES.txt
|
12
|
+
src/yeonjae_universal_http_api_client.egg-info/dependency_links.txt
|
13
|
+
src/yeonjae_universal_http_api_client.egg-info/requires.txt
|
14
|
+
src/yeonjae_universal_http_api_client.egg-info/top_level.txt
|
15
|
+
tests/test_basic.py
|
16
|
+
tests/test_http_api_client.py
|
yeonjae_universal_http_api_client-1.0.5/src/yeonjae_universal_http_api_client.egg-info/top_level.txt
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
yeonjae_universal_http_api_client
|
@@ -5,7 +5,7 @@ import sys
|
|
5
5
|
sys.path.insert(0, 'src')
|
6
6
|
|
7
7
|
import pytest
|
8
|
-
from
|
8
|
+
from yeonjae_universal_http_api_client import HTTPAPIClient, Platform, __version__
|
9
9
|
|
10
10
|
|
11
11
|
def test_version():
|
@@ -15,7 +15,7 @@ def test_version():
|
|
15
15
|
|
16
16
|
def test_import():
|
17
17
|
"""기본 import 테스트"""
|
18
|
-
from
|
18
|
+
from yeonjae_universal_http_api_client import (
|
19
19
|
HTTPAPIClient,
|
20
20
|
AsyncHTTPAPIClient,
|
21
21
|
Platform,
|
@@ -9,7 +9,7 @@ import requests_mock
|
|
9
9
|
from unittest.mock import Mock, patch
|
10
10
|
from datetime import datetime, timedelta
|
11
11
|
|
12
|
-
from
|
12
|
+
from yeonjae_universal_http_api_client import (
|
13
13
|
HTTPAPIClient, Platform, HTTPMethod, APIResponse,
|
14
14
|
APIError, RateLimitError, AuthenticationError
|
15
15
|
)
|
@@ -222,7 +222,7 @@ class TestHTTPAPIClient:
|
|
222
222
|
def test_timeout_handling(self, github_client):
|
223
223
|
"""타임아웃 처리 테스트"""
|
224
224
|
with requests_mock.Mocker() as m:
|
225
|
-
from
|
225
|
+
from yeonjae_universal_http_api_client.exceptions import TimeoutError as APITimeoutError
|
226
226
|
|
227
227
|
# requests.exceptions.Timeout을 발생시키도록 설정
|
228
228
|
m.get(
|
@@ -236,7 +236,7 @@ class TestHTTPAPIClient:
|
|
236
236
|
def test_network_error_handling(self, github_client):
|
237
237
|
"""네트워크 에러 처리 테스트"""
|
238
238
|
with requests_mock.Mocker() as m:
|
239
|
-
from
|
239
|
+
from yeonjae_universal_http_api_client.exceptions import NetworkError
|
240
240
|
|
241
241
|
m.get(
|
242
242
|
"https://api.github.com/repos/test/repo/commits/abc123",
|
yeonjae_universal_http_api_client-1.0.3/src/yeonjae_universal_http_api_client.egg-info/SOURCES.txt
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
README.md
|
2
|
-
pyproject.toml
|
3
|
-
src/universal_http_api_client/__init__.py
|
4
|
-
src/universal_http_api_client/adapters.py
|
5
|
-
src/universal_http_api_client/client.py
|
6
|
-
src/universal_http_api_client/exceptions.py
|
7
|
-
src/universal_http_api_client/models.py
|
8
|
-
src/universal_http_api_client/py.typed
|
9
|
-
src/universal_http_api_client/utils.py
|
10
|
-
src/yeonjae_universal_http_api_client.egg-info/PKG-INFO
|
11
|
-
src/yeonjae_universal_http_api_client.egg-info/SOURCES.txt
|
12
|
-
src/yeonjae_universal_http_api_client.egg-info/dependency_links.txt
|
13
|
-
src/yeonjae_universal_http_api_client.egg-info/requires.txt
|
14
|
-
src/yeonjae_universal_http_api_client.egg-info/top_level.txt
|
15
|
-
tests/test_basic.py
|
16
|
-
tests/test_http_api_client.py
|
yeonjae_universal_http_api_client-1.0.3/src/yeonjae_universal_http_api_client.egg-info/top_level.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
universal_http_api_client
|
{yeonjae_universal_http_api_client-1.0.3 → yeonjae_universal_http_api_client-1.0.5}/setup.cfg
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|