kotharcomputing 1.5.0__tar.gz → 1.7.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-1.5.0 → kotharcomputing-1.7.0}/PKG-INFO +1 -28
- {kotharcomputing-1.5.0 → kotharcomputing-1.7.0}/README.md +0 -27
- {kotharcomputing-1.5.0 → kotharcomputing-1.7.0}/pyproject.toml +1 -1
- {kotharcomputing-1.5.0 → kotharcomputing-1.7.0}/src/kotharcomputing/_generated/operations.py +22 -0
- {kotharcomputing-1.5.0 → kotharcomputing-1.7.0}/src/kotharcomputing/_generated/types.py +8 -1
- {kotharcomputing-1.5.0 → kotharcomputing-1.7.0}/src/kotharcomputing.egg-info/PKG-INFO +1 -28
- {kotharcomputing-1.5.0 → kotharcomputing-1.7.0}/setup.cfg +0 -0
- {kotharcomputing-1.5.0 → kotharcomputing-1.7.0}/src/kotharcomputing/__init__.py +0 -0
- {kotharcomputing-1.5.0 → kotharcomputing-1.7.0}/src/kotharcomputing/_generated/__init__.py +0 -0
- {kotharcomputing-1.5.0 → kotharcomputing-1.7.0}/src/kotharcomputing/aleph_language_server.py +0 -0
- {kotharcomputing-1.5.0 → kotharcomputing-1.7.0}/src/kotharcomputing/client.py +0 -0
- {kotharcomputing-1.5.0 → kotharcomputing-1.7.0}/src/kotharcomputing/errors.py +0 -0
- {kotharcomputing-1.5.0 → kotharcomputing-1.7.0}/src/kotharcomputing/py.typed +0 -0
- {kotharcomputing-1.5.0 → kotharcomputing-1.7.0}/src/kotharcomputing/transport.py +0 -0
- {kotharcomputing-1.5.0 → kotharcomputing-1.7.0}/src/kotharcomputing.egg-info/SOURCES.txt +0 -0
- {kotharcomputing-1.5.0 → kotharcomputing-1.7.0}/src/kotharcomputing.egg-info/dependency_links.txt +0 -0
- {kotharcomputing-1.5.0 → kotharcomputing-1.7.0}/src/kotharcomputing.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kotharcomputing
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.7.0
|
|
4
4
|
Summary: Python SDK for the Kothar API
|
|
5
5
|
Author: Kothar Computing
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -53,30 +53,3 @@ parsed = aleph.ast('print("hello")', format=True, discover_test=True)
|
|
|
53
53
|
tests = aleph.discover_tests('test "example" {}')
|
|
54
54
|
formatted = aleph.format('print( "hello" )')
|
|
55
55
|
```
|
|
56
|
-
|
|
57
|
-
## HDF5 dataset reads
|
|
58
|
-
|
|
59
|
-
Generated operations use GET with no body and encode a nested `ranges` array as
|
|
60
|
-
one JSON query parameter. Use `[]` for scalar/null dataspaces.
|
|
61
|
-
|
|
62
|
-
```python
|
|
63
|
-
from kotharcomputing import ApiTransport
|
|
64
|
-
from kotharcomputing._generated.operations import read_file_dataset
|
|
65
|
-
|
|
66
|
-
transport = ApiTransport("https://api.kotharcomputing.com", access_token="YOUR_TOKEN")
|
|
67
|
-
response = read_file_dataset(
|
|
68
|
-
transport,
|
|
69
|
-
workspace_id="WORKSPACE_ID",
|
|
70
|
-
path="measurements.h5",
|
|
71
|
-
version_id="immutable-version-id",
|
|
72
|
-
object_path="/samples",
|
|
73
|
-
ranges=[[0, 10, 2]],
|
|
74
|
-
)
|
|
75
|
-
selection = response.json() # shape, datatype, values; optional base64 data
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
Use `representation="binary"` and `response.body` for little-endian numeric/enum
|
|
79
|
-
bytes or decoded scalar-string bytes; `response.headers` preserves identity and
|
|
80
|
-
dtype metadata. Fixed-length string arrays require JSON. Enum symbols contain
|
|
81
|
-
exact decimal codes; JSON values retain the existing 64-bit tags. External callers
|
|
82
|
-
must replace POST reads with GET; stored files need no migration.
|
|
@@ -36,30 +36,3 @@ parsed = aleph.ast('print("hello")', format=True, discover_test=True)
|
|
|
36
36
|
tests = aleph.discover_tests('test "example" {}')
|
|
37
37
|
formatted = aleph.format('print( "hello" )')
|
|
38
38
|
```
|
|
39
|
-
|
|
40
|
-
## HDF5 dataset reads
|
|
41
|
-
|
|
42
|
-
Generated operations use GET with no body and encode a nested `ranges` array as
|
|
43
|
-
one JSON query parameter. Use `[]` for scalar/null dataspaces.
|
|
44
|
-
|
|
45
|
-
```python
|
|
46
|
-
from kotharcomputing import ApiTransport
|
|
47
|
-
from kotharcomputing._generated.operations import read_file_dataset
|
|
48
|
-
|
|
49
|
-
transport = ApiTransport("https://api.kotharcomputing.com", access_token="YOUR_TOKEN")
|
|
50
|
-
response = read_file_dataset(
|
|
51
|
-
transport,
|
|
52
|
-
workspace_id="WORKSPACE_ID",
|
|
53
|
-
path="measurements.h5",
|
|
54
|
-
version_id="immutable-version-id",
|
|
55
|
-
object_path="/samples",
|
|
56
|
-
ranges=[[0, 10, 2]],
|
|
57
|
-
)
|
|
58
|
-
selection = response.json() # shape, datatype, values; optional base64 data
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
Use `representation="binary"` and `response.body` for little-endian numeric/enum
|
|
62
|
-
bytes or decoded scalar-string bytes; `response.headers` preserves identity and
|
|
63
|
-
dtype metadata. Fixed-length string arrays require JSON. Enum symbols contain
|
|
64
|
-
exact decimal codes; JSON values retain the existing 64-bit tags. External callers
|
|
65
|
-
must replace POST reads with GET; stored files need no migration.
|
{kotharcomputing-1.5.0 → kotharcomputing-1.7.0}/src/kotharcomputing/_generated/operations.py
RENAMED
|
@@ -1630,6 +1630,28 @@ def task_artifact_download_url(
|
|
|
1630
1630
|
return response.json()
|
|
1631
1631
|
|
|
1632
1632
|
|
|
1633
|
+
def save_task_artifact(
|
|
1634
|
+
transport: ApiTransport,
|
|
1635
|
+
*,
|
|
1636
|
+
workspace_id: str,
|
|
1637
|
+
task_id: str,
|
|
1638
|
+
artifact_id: str,
|
|
1639
|
+
body: Types.SaveTaskArtifactRequest,
|
|
1640
|
+
) -> RawResponse:
|
|
1641
|
+
"""Transfers the recorded immutable artifact to a new path in the same workspace on the server. Existing files are never overwritten. Requires task read and download permissions and create permission for the destination file."""
|
|
1642
|
+
response = transport.raw(
|
|
1643
|
+
"post",
|
|
1644
|
+
"/v1/workspaces/{workspaceId}/tasks/{taskId}/artifacts/{artifactId}/$save",
|
|
1645
|
+
path_params={
|
|
1646
|
+
"workspaceId": workspace_id,
|
|
1647
|
+
"taskId": task_id,
|
|
1648
|
+
"artifactId": artifact_id,
|
|
1649
|
+
},
|
|
1650
|
+
json_data=body,
|
|
1651
|
+
)
|
|
1652
|
+
return response
|
|
1653
|
+
|
|
1654
|
+
|
|
1633
1655
|
def list_task_executions(
|
|
1634
1656
|
transport: ApiTransport, *, workspace_id: str, task_id: str
|
|
1635
1657
|
) -> Types.TaskExecutionListResponse:
|
|
@@ -1066,6 +1066,11 @@ class RuntimeListResponse(TypedDict, total=False):
|
|
|
1066
1066
|
next: NotRequired[str]
|
|
1067
1067
|
|
|
1068
1068
|
|
|
1069
|
+
class SaveTaskArtifactRequest(TypedDict, total=False):
|
|
1070
|
+
# Relative destination path, including the file name.
|
|
1071
|
+
path: Required[str]
|
|
1072
|
+
|
|
1073
|
+
|
|
1069
1074
|
class SearchField(TypedDict, total=False):
|
|
1070
1075
|
defaultSearch: Required[bool]
|
|
1071
1076
|
description: Required[str]
|
|
@@ -1517,7 +1522,9 @@ class TaskExecutionEvent(TypedDict, total=False):
|
|
|
1517
1522
|
createdAt: Required[str]
|
|
1518
1523
|
executionId: Required[str]
|
|
1519
1524
|
id: Required[str]
|
|
1520
|
-
kind: Required[
|
|
1525
|
+
kind: Required[
|
|
1526
|
+
Literal["lifecycle", "log", "metrics", "artifact", "finished", "kryo"]
|
|
1527
|
+
]
|
|
1521
1528
|
payload: Required[dict[str, Any]]
|
|
1522
1529
|
sequence: Required[int]
|
|
1523
1530
|
taskId: Required[str]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kotharcomputing
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.7.0
|
|
4
4
|
Summary: Python SDK for the Kothar API
|
|
5
5
|
Author: Kothar Computing
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -53,30 +53,3 @@ parsed = aleph.ast('print("hello")', format=True, discover_test=True)
|
|
|
53
53
|
tests = aleph.discover_tests('test "example" {}')
|
|
54
54
|
formatted = aleph.format('print( "hello" )')
|
|
55
55
|
```
|
|
56
|
-
|
|
57
|
-
## HDF5 dataset reads
|
|
58
|
-
|
|
59
|
-
Generated operations use GET with no body and encode a nested `ranges` array as
|
|
60
|
-
one JSON query parameter. Use `[]` for scalar/null dataspaces.
|
|
61
|
-
|
|
62
|
-
```python
|
|
63
|
-
from kotharcomputing import ApiTransport
|
|
64
|
-
from kotharcomputing._generated.operations import read_file_dataset
|
|
65
|
-
|
|
66
|
-
transport = ApiTransport("https://api.kotharcomputing.com", access_token="YOUR_TOKEN")
|
|
67
|
-
response = read_file_dataset(
|
|
68
|
-
transport,
|
|
69
|
-
workspace_id="WORKSPACE_ID",
|
|
70
|
-
path="measurements.h5",
|
|
71
|
-
version_id="immutable-version-id",
|
|
72
|
-
object_path="/samples",
|
|
73
|
-
ranges=[[0, 10, 2]],
|
|
74
|
-
)
|
|
75
|
-
selection = response.json() # shape, datatype, values; optional base64 data
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
Use `representation="binary"` and `response.body` for little-endian numeric/enum
|
|
79
|
-
bytes or decoded scalar-string bytes; `response.headers` preserves identity and
|
|
80
|
-
dtype metadata. Fixed-length string arrays require JSON. Enum symbols contain
|
|
81
|
-
exact decimal codes; JSON values retain the existing 64-bit tags. External callers
|
|
82
|
-
must replace POST reads with GET; stored files need no migration.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kotharcomputing-1.5.0 → kotharcomputing-1.7.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
|
{kotharcomputing-1.5.0 → kotharcomputing-1.7.0}/src/kotharcomputing.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|