monkeycode-sdk 1.7.0__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.
- monkeycode/__init__.py +58 -0
- monkeycode/client.py +2141 -0
- monkeycode/consts.py +29 -0
- monkeycode/errors.py +30 -0
- monkeycode/links.py +138 -0
- monkeycode/models.py +227 -0
- monkeycode/pow.py +65 -0
- monkeycode/session.py +140 -0
- monkeycode/stream.py +381 -0
- monkeycode_sdk-1.7.0.dist-info/METADATA +93 -0
- monkeycode_sdk-1.7.0.dist-info/RECORD +14 -0
- monkeycode_sdk-1.7.0.dist-info/WHEEL +5 -0
- monkeycode_sdk-1.7.0.dist-info/licenses/LICENSE +21 -0
- monkeycode_sdk-1.7.0.dist-info/top_level.txt +1 -0
monkeycode/__init__.py
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""MonkeyCode SDK。
|
|
2
|
+
|
|
3
|
+
封装 MonkeyCode 云平台 REST API,提供认证、任务提交、结果轮询、
|
|
4
|
+
WebSocket 会话交互等能力。
|
|
5
|
+
"""
|
|
6
|
+
from monkeycode.client import MonkeyCodeClient
|
|
7
|
+
from monkeycode.errors import (
|
|
8
|
+
APIError,
|
|
9
|
+
AuthenticationError,
|
|
10
|
+
CaptchaRequiredError,
|
|
11
|
+
RateLimitError,
|
|
12
|
+
TaskError,
|
|
13
|
+
)
|
|
14
|
+
from monkeycode.models import (
|
|
15
|
+
APIKeyInfo,
|
|
16
|
+
CaptchaChallenge,
|
|
17
|
+
CaptchaVerification,
|
|
18
|
+
RepoReq,
|
|
19
|
+
Task,
|
|
20
|
+
TaskExtraConfig,
|
|
21
|
+
TaskRound,
|
|
22
|
+
TaskStreamChunk,
|
|
23
|
+
UserInputPayload,
|
|
24
|
+
VMResource,
|
|
25
|
+
)
|
|
26
|
+
from monkeycode.session import AgentSession
|
|
27
|
+
from monkeycode.stream import (
|
|
28
|
+
ControlStream,
|
|
29
|
+
JoinTerminalStream,
|
|
30
|
+
TaskStream,
|
|
31
|
+
TerminalStream,
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
__version__ = "1.7.0"
|
|
35
|
+
|
|
36
|
+
__all__ = [
|
|
37
|
+
"MonkeyCodeClient",
|
|
38
|
+
"APIError",
|
|
39
|
+
"AuthenticationError",
|
|
40
|
+
"CaptchaRequiredError",
|
|
41
|
+
"RateLimitError",
|
|
42
|
+
"TaskError",
|
|
43
|
+
"APIKeyInfo",
|
|
44
|
+
"CaptchaChallenge",
|
|
45
|
+
"CaptchaVerification",
|
|
46
|
+
"RepoReq",
|
|
47
|
+
"Task",
|
|
48
|
+
"TaskExtraConfig",
|
|
49
|
+
"TaskRound",
|
|
50
|
+
"TaskStream",
|
|
51
|
+
"TaskStreamChunk",
|
|
52
|
+
"UserInputPayload",
|
|
53
|
+
"VMResource",
|
|
54
|
+
"ControlStream",
|
|
55
|
+
"TerminalStream",
|
|
56
|
+
"JoinTerminalStream",
|
|
57
|
+
"AgentSession",
|
|
58
|
+
]
|