kotharcomputing 0.90.0__tar.gz → 0.92.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.
Files changed (34) hide show
  1. {kotharcomputing-0.90.0/src/kotharcomputing.egg-info → kotharcomputing-0.92.0}/PKG-INFO +1 -1
  2. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/pyproject.toml +1 -1
  3. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/src/kotharcomputing/__init__.py +14 -0
  4. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/src/kotharcomputing/executions.py +39 -5
  5. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0/src/kotharcomputing.egg-info}/PKG-INFO +1 -1
  6. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/tests/test_public_api.py +7 -0
  7. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/LICENSE +0 -0
  8. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/README.md +0 -0
  9. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/setup.cfg +0 -0
  10. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/src/kotharcomputing/agents.py +0 -0
  11. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/src/kotharcomputing/ai.py +0 -0
  12. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/src/kotharcomputing/aleph_language_server.py +0 -0
  13. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/src/kotharcomputing/api_tokens.py +0 -0
  14. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/src/kotharcomputing/client.py +0 -0
  15. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/src/kotharcomputing/common.py +0 -0
  16. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/src/kotharcomputing/credits.py +0 -0
  17. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/src/kotharcomputing/errors.py +0 -0
  18. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/src/kotharcomputing/fetch.py +0 -0
  19. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/src/kotharcomputing/files.py +0 -0
  20. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/src/kotharcomputing/jobs.py +0 -0
  21. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/src/kotharcomputing/py.typed +0 -0
  22. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/src/kotharcomputing/runtimes.py +0 -0
  23. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/src/kotharcomputing/service_prices.py +0 -0
  24. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/src/kotharcomputing/subscribe_user.py +0 -0
  25. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/src/kotharcomputing/subscribe_workspace.py +0 -0
  26. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/src/kotharcomputing/subscriptions.py +0 -0
  27. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/src/kotharcomputing/users.py +0 -0
  28. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/src/kotharcomputing/workspaces.py +0 -0
  29. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/src/kotharcomputing.egg-info/SOURCES.txt +0 -0
  30. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/src/kotharcomputing.egg-info/dependency_links.txt +0 -0
  31. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/src/kotharcomputing.egg-info/requires.txt +0 -0
  32. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/src/kotharcomputing.egg-info/top_level.txt +0 -0
  33. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/tests/test_fetch_auth_headers.py +0 -0
  34. {kotharcomputing-0.90.0 → kotharcomputing-0.92.0}/tests/test_fetch_url_building.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kotharcomputing
3
- Version: 0.90.0
3
+ Version: 0.92.0
4
4
  Summary: Python SDK for the Kothar API
5
5
  Author: Kothar Computing
6
6
  License-Expression: Apache-2.0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "kotharcomputing"
7
- version = "0.90.0"
7
+ version = "0.92.0"
8
8
  description = "Python SDK for the Kothar API"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -78,15 +78,22 @@ from .credits import (
78
78
  from .errors import KOTHAR_ERROR_TYPE_BASE_URL, KotharApiError
79
79
  from .executions import (
80
80
  ExecuteArgs,
81
+ ExecuteCommonArgs,
81
82
  ExecuteResult,
83
+ ExecuteScriptArgs,
84
+ ExecuteTestArgs,
82
85
  Execution,
86
+ ExecutionCommon,
83
87
  ExecutionControl,
84
88
  ExecutionEnded,
85
89
  ExecutionError,
86
90
  ExecutionMessage,
87
91
  ExecutionOutput,
88
92
  ExecutionScriptArgs,
93
+ ExecutionScript,
89
94
  ExecutionStarted,
95
+ ExecutionTest,
96
+ ExecutionTestResults,
90
97
  SystemMetrics,
91
98
  SystemMetricSample,
92
99
  SystemMetricSeries,
@@ -208,15 +215,22 @@ __all__ = [
208
215
  "KotharApiError",
209
216
  # Executions
210
217
  "ExecuteArgs",
218
+ "ExecuteCommonArgs",
211
219
  "ExecuteResult",
220
+ "ExecuteScriptArgs",
221
+ "ExecuteTestArgs",
212
222
  "Execution",
223
+ "ExecutionCommon",
213
224
  "ExecutionControl",
214
225
  "ExecutionEnded",
215
226
  "ExecutionError",
216
227
  "ExecutionMessage",
217
228
  "ExecutionOutput",
218
229
  "ExecutionScriptArgs",
230
+ "ExecutionScript",
219
231
  "ExecutionStarted",
232
+ "ExecutionTest",
233
+ "ExecutionTestResults",
220
234
  "SystemMetrics",
221
235
  "SystemMetricSample",
222
236
  "SystemMetricSeries",
@@ -28,25 +28,36 @@ class SystemMetrics(TypedDict):
28
28
  metrics: list[SystemMetricSeries]
29
29
 
30
30
 
31
- class Execution(TypedDict):
31
+ class ExecutionCommon(TypedDict):
32
32
  id: str
33
33
  userId: str
34
34
  agentId: str
35
35
  runtimeId: str
36
36
  workspaceId: str
37
37
  timestamp: float
38
- path: NotRequired[str]
39
38
  timeout: NotRequired[str]
40
39
  maxThreads: NotRequired[int]
41
40
  maxMemoryMb: NotRequired[int]
42
41
  executionArgs: NotRequired[ExecutionScriptArgs]
43
42
 
44
43
 
45
- class ExecuteArgs(TypedDict):
46
- content: str
44
+ class ExecutionScript(ExecutionCommon):
45
+ mode: Literal["script"]
46
+ path: NotRequired[str]
47
+
48
+
49
+ class ExecutionTest(ExecutionCommon):
50
+ mode: Literal["test"]
51
+ paths: list[str]
52
+ filters: NotRequired[list[str]]
53
+
54
+
55
+ Execution: TypeAlias = ExecutionScript | ExecutionTest
56
+
57
+
58
+ class ExecuteCommonArgs(TypedDict):
47
59
  agentId: str
48
60
  runtimeId: NotRequired[str]
49
- path: NotRequired[str]
50
61
  dependencies: NotRequired[list[str]]
51
62
  timeout: NotRequired[str]
52
63
  maxThreads: NotRequired[int]
@@ -54,6 +65,21 @@ class ExecuteArgs(TypedDict):
54
65
  executionArgs: NotRequired[ExecutionScriptArgs]
55
66
 
56
67
 
68
+ class ExecuteScriptArgs(ExecuteCommonArgs):
69
+ content: str
70
+ mode: NotRequired[Literal["script"]]
71
+ path: NotRequired[str]
72
+
73
+
74
+ class ExecuteTestArgs(ExecuteCommonArgs):
75
+ mode: Literal["test"]
76
+ paths: list[str]
77
+ filters: NotRequired[list[str]]
78
+
79
+
80
+ ExecuteArgs: TypeAlias = ExecuteScriptArgs | ExecuteTestArgs
81
+
82
+
57
83
  class ExecutionStarted(TypedDict):
58
84
  type: Literal["agent:execution:started"]
59
85
  executionId: str
@@ -68,6 +94,13 @@ class ExecutionOutput(TypedDict):
68
94
  lines: list[str]
69
95
 
70
96
 
97
+ class ExecutionTestResults(TypedDict):
98
+ type: Literal["agent:execution:test-results"]
99
+ executionId: str
100
+ timestamp: float
101
+ ctrf: dict[str, object]
102
+
103
+
71
104
  class ExecutionEnded(TypedDict):
72
105
  type: Literal["agent:execution:ended"]
73
106
  executionId: str
@@ -96,6 +129,7 @@ class ExecutionControl(TypedDict):
96
129
  ExecutionMessage: TypeAlias = (
97
130
  ExecutionStarted
98
131
  | ExecutionOutput
132
+ | ExecutionTestResults
99
133
  | ExecutionEnded
100
134
  | ExecutionError
101
135
  | ExecutionControl
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kotharcomputing
3
- Version: 0.90.0
3
+ Version: 0.92.0
4
4
  Summary: Python SDK for the Kothar API
5
5
  Author: Kothar Computing
6
6
  License-Expression: Apache-2.0
@@ -90,15 +90,22 @@ def test_package_import_and_public_exports() -> None:
90
90
  "KotharApiError",
91
91
  # Executions
92
92
  "ExecuteArgs",
93
+ "ExecuteCommonArgs",
93
94
  "ExecuteResult",
95
+ "ExecuteScriptArgs",
96
+ "ExecuteTestArgs",
94
97
  "Execution",
98
+ "ExecutionCommon",
95
99
  "ExecutionControl",
96
100
  "ExecutionEnded",
97
101
  "ExecutionError",
98
102
  "ExecutionMessage",
99
103
  "ExecutionOutput",
100
104
  "ExecutionScriptArgs",
105
+ "ExecutionScript",
101
106
  "ExecutionStarted",
107
+ "ExecutionTest",
108
+ "ExecutionTestResults",
102
109
  "SystemMetrics",
103
110
  "SystemMetricSample",
104
111
  "SystemMetricSeries",