kotharcomputing 0.95.1__tar.gz → 0.97.0__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.
- {kotharcomputing-0.95.1/src/kotharcomputing.egg-info → kotharcomputing-0.97.0}/PKG-INFO +1 -1
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/pyproject.toml +1 -1
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing/__init__.py +10 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing/executions.py +21 -3
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing/jobs.py +18 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0/src/kotharcomputing.egg-info}/PKG-INFO +1 -1
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/tests/test_public_api.py +5 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/LICENSE +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/README.md +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/setup.cfg +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing/agents.py +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing/ai.py +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing/aleph_language_server.py +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing/api_tokens.py +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing/client.py +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing/common.py +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing/credits.py +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing/errors.py +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing/fetch.py +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing/files.py +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing/py.typed +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing/runtimes.py +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing/service_prices.py +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing/subscribe_user.py +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing/subscribe_workspace.py +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing/subscriptions.py +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing/users.py +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing/workspaces.py +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing.egg-info/SOURCES.txt +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing.egg-info/dependency_links.txt +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing.egg-info/requires.txt +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing.egg-info/top_level.txt +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/tests/test_fetch_auth_headers.py +0 -0
- {kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/tests/test_fetch_url_building.py +0 -0
|
@@ -82,6 +82,8 @@ from .executions import (
|
|
|
82
82
|
ExecuteResult,
|
|
83
83
|
ExecuteScriptArgs,
|
|
84
84
|
ExecuteTestArgs,
|
|
85
|
+
ExecuteTestFileArgs,
|
|
86
|
+
ExecuteTestInlineArgs,
|
|
85
87
|
Execution,
|
|
86
88
|
ExecutionCommon,
|
|
87
89
|
ExecutionControl,
|
|
@@ -107,6 +109,9 @@ from .files import (
|
|
|
107
109
|
from .jobs import (
|
|
108
110
|
CreateJobArgs,
|
|
109
111
|
Job,
|
|
112
|
+
JobLaunchInstructionCommand,
|
|
113
|
+
JobLaunchInstructionMethod,
|
|
114
|
+
JobLaunchInstructions,
|
|
110
115
|
JobStatus,
|
|
111
116
|
UpdateJobArgs,
|
|
112
117
|
)
|
|
@@ -219,6 +224,8 @@ __all__ = [
|
|
|
219
224
|
"ExecuteResult",
|
|
220
225
|
"ExecuteScriptArgs",
|
|
221
226
|
"ExecuteTestArgs",
|
|
227
|
+
"ExecuteTestFileArgs",
|
|
228
|
+
"ExecuteTestInlineArgs",
|
|
222
229
|
"Execution",
|
|
223
230
|
"ExecutionCommon",
|
|
224
231
|
"ExecutionControl",
|
|
@@ -242,6 +249,9 @@ __all__ = [
|
|
|
242
249
|
# Jobs
|
|
243
250
|
"CreateJobArgs",
|
|
244
251
|
"Job",
|
|
252
|
+
"JobLaunchInstructionCommand",
|
|
253
|
+
"JobLaunchInstructionMethod",
|
|
254
|
+
"JobLaunchInstructions",
|
|
245
255
|
"JobStatus",
|
|
246
256
|
"UpdateJobArgs",
|
|
247
257
|
# Service Prices
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import threading
|
|
4
|
-
from typing import
|
|
4
|
+
from typing import (
|
|
5
|
+
Any,
|
|
6
|
+
Callable,
|
|
7
|
+
Literal,
|
|
8
|
+
Never,
|
|
9
|
+
NotRequired,
|
|
10
|
+
TypeAlias,
|
|
11
|
+
TypedDict,
|
|
12
|
+
cast,
|
|
13
|
+
)
|
|
5
14
|
|
|
6
15
|
from .errors import KOTHAR_ERROR_TYPE_BASE_URL, KotharApiError
|
|
7
16
|
from .fetch import ApiTransport
|
|
@@ -48,7 +57,7 @@ class ExecutionScript(ExecutionCommon):
|
|
|
48
57
|
|
|
49
58
|
class ExecutionTest(ExecutionCommon):
|
|
50
59
|
mode: Literal["test"]
|
|
51
|
-
paths: list[str]
|
|
60
|
+
paths: NotRequired[list[str]]
|
|
52
61
|
filters: NotRequired[list[str]]
|
|
53
62
|
|
|
54
63
|
|
|
@@ -71,12 +80,21 @@ class ExecuteScriptArgs(ExecuteCommonArgs):
|
|
|
71
80
|
path: NotRequired[str]
|
|
72
81
|
|
|
73
82
|
|
|
74
|
-
class
|
|
83
|
+
class ExecuteTestFileArgs(ExecuteCommonArgs):
|
|
75
84
|
mode: Literal["test"]
|
|
76
85
|
paths: list[str]
|
|
86
|
+
content: NotRequired[Never]
|
|
87
|
+
filters: NotRequired[list[str]]
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
class ExecuteTestInlineArgs(ExecuteCommonArgs):
|
|
91
|
+
mode: Literal["test"]
|
|
92
|
+
paths: NotRequired[Never]
|
|
93
|
+
content: str
|
|
77
94
|
filters: NotRequired[list[str]]
|
|
78
95
|
|
|
79
96
|
|
|
97
|
+
ExecuteTestArgs: TypeAlias = ExecuteTestFileArgs | ExecuteTestInlineArgs
|
|
80
98
|
ExecuteArgs: TypeAlias = ExecuteScriptArgs | ExecuteTestArgs
|
|
81
99
|
|
|
82
100
|
|
|
@@ -32,10 +32,28 @@ class Job(WithUser, WithAgent):
|
|
|
32
32
|
finishedAt: NotRequired[str]
|
|
33
33
|
duration: NotRequired[str]
|
|
34
34
|
lastPing: NotRequired[str]
|
|
35
|
+
launchInstructions: NotRequired[JobLaunchInstructions]
|
|
35
36
|
consumedCredits: NotRequired[float]
|
|
36
37
|
data: NotRequired[JSONValue]
|
|
37
38
|
|
|
38
39
|
|
|
40
|
+
class JobLaunchInstructions(TypedDict):
|
|
41
|
+
launchJobBefore: str
|
|
42
|
+
methods: list[JobLaunchInstructionMethod]
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class JobLaunchInstructionMethod(TypedDict):
|
|
46
|
+
id: str
|
|
47
|
+
label: str
|
|
48
|
+
instructionMarkdown: str
|
|
49
|
+
commands: list[JobLaunchInstructionCommand]
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class JobLaunchInstructionCommand(TypedDict):
|
|
53
|
+
label: str
|
|
54
|
+
command: str
|
|
55
|
+
|
|
56
|
+
|
|
39
57
|
class CreateJobArgs(TypedDict):
|
|
40
58
|
agentId: str
|
|
41
59
|
path: str
|
|
@@ -94,6 +94,8 @@ def test_package_import_and_public_exports() -> None:
|
|
|
94
94
|
"ExecuteResult",
|
|
95
95
|
"ExecuteScriptArgs",
|
|
96
96
|
"ExecuteTestArgs",
|
|
97
|
+
"ExecuteTestFileArgs",
|
|
98
|
+
"ExecuteTestInlineArgs",
|
|
97
99
|
"Execution",
|
|
98
100
|
"ExecutionCommon",
|
|
99
101
|
"ExecutionControl",
|
|
@@ -117,6 +119,9 @@ def test_package_import_and_public_exports() -> None:
|
|
|
117
119
|
# Jobs
|
|
118
120
|
"CreateJobArgs",
|
|
119
121
|
"Job",
|
|
122
|
+
"JobLaunchInstructionCommand",
|
|
123
|
+
"JobLaunchInstructionMethod",
|
|
124
|
+
"JobLaunchInstructions",
|
|
120
125
|
"JobStatus",
|
|
121
126
|
"UpdateJobArgs",
|
|
122
127
|
# Service Prices
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing/aleph_language_server.py
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing/subscribe_workspace.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{kotharcomputing-0.95.1 → kotharcomputing-0.97.0}/src/kotharcomputing.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|