kotharcomputing 1.4.1__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.4.1 → kotharcomputing-1.7.0}/PKG-INFO +1 -1
- {kotharcomputing-1.4.1 → kotharcomputing-1.7.0}/pyproject.toml +1 -1
- {kotharcomputing-1.4.1 → kotharcomputing-1.7.0}/src/kotharcomputing/_generated/operations.py +41 -3
- {kotharcomputing-1.4.1 → kotharcomputing-1.7.0}/src/kotharcomputing/_generated/types.py +55 -10
- {kotharcomputing-1.4.1 → kotharcomputing-1.7.0}/src/kotharcomputing.egg-info/PKG-INFO +1 -1
- {kotharcomputing-1.4.1 → kotharcomputing-1.7.0}/README.md +0 -0
- {kotharcomputing-1.4.1 → kotharcomputing-1.7.0}/setup.cfg +0 -0
- {kotharcomputing-1.4.1 → kotharcomputing-1.7.0}/src/kotharcomputing/__init__.py +0 -0
- {kotharcomputing-1.4.1 → kotharcomputing-1.7.0}/src/kotharcomputing/_generated/__init__.py +0 -0
- {kotharcomputing-1.4.1 → kotharcomputing-1.7.0}/src/kotharcomputing/aleph_language_server.py +0 -0
- {kotharcomputing-1.4.1 → kotharcomputing-1.7.0}/src/kotharcomputing/client.py +0 -0
- {kotharcomputing-1.4.1 → kotharcomputing-1.7.0}/src/kotharcomputing/errors.py +0 -0
- {kotharcomputing-1.4.1 → kotharcomputing-1.7.0}/src/kotharcomputing/py.typed +0 -0
- {kotharcomputing-1.4.1 → kotharcomputing-1.7.0}/src/kotharcomputing/transport.py +0 -0
- {kotharcomputing-1.4.1 → kotharcomputing-1.7.0}/src/kotharcomputing.egg-info/SOURCES.txt +0 -0
- {kotharcomputing-1.4.1 → kotharcomputing-1.7.0}/src/kotharcomputing.egg-info/dependency_links.txt +0 -0
- {kotharcomputing-1.4.1 → kotharcomputing-1.7.0}/src/kotharcomputing.egg-info/top_level.txt +0 -0
{kotharcomputing-1.4.1 → kotharcomputing-1.7.0}/src/kotharcomputing/_generated/operations.py
RENAMED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
import json
|
|
5
6
|
from typing import Any, Literal
|
|
6
7
|
|
|
7
8
|
from ..transport import ApiTransport, RawResponse
|
|
@@ -1151,6 +1152,7 @@ def inspect_file(
|
|
|
1151
1152
|
path: str,
|
|
1152
1153
|
version_id: str | None = None,
|
|
1153
1154
|
object_path: str,
|
|
1155
|
+
attributes: bool | None = None,
|
|
1154
1156
|
offset: int | None = None,
|
|
1155
1157
|
limit: int | None = None,
|
|
1156
1158
|
) -> Types.Hdf5Inspection:
|
|
@@ -1165,6 +1167,7 @@ def inspect_file(
|
|
|
1165
1167
|
"path": path,
|
|
1166
1168
|
"versionId": version_id,
|
|
1167
1169
|
"objectPath": object_path,
|
|
1170
|
+
"attributes": attributes,
|
|
1168
1171
|
"offset": offset,
|
|
1169
1172
|
"limit": limit,
|
|
1170
1173
|
},
|
|
@@ -1188,16 +1191,29 @@ def move_file(
|
|
|
1188
1191
|
|
|
1189
1192
|
|
|
1190
1193
|
def read_file_dataset(
|
|
1191
|
-
transport: ApiTransport,
|
|
1194
|
+
transport: ApiTransport,
|
|
1195
|
+
*,
|
|
1196
|
+
workspace_id: str,
|
|
1197
|
+
path: str,
|
|
1198
|
+
version_id: str,
|
|
1199
|
+
object_path: str,
|
|
1200
|
+
ranges: list[list[int]],
|
|
1201
|
+
representation: Literal["json", "binary"] | None = None,
|
|
1192
1202
|
) -> RawResponse:
|
|
1193
1203
|
"""Read a bounded HDF5 hyperslab from an immutable file version"""
|
|
1194
1204
|
response = transport.raw(
|
|
1195
|
-
"
|
|
1205
|
+
"get",
|
|
1196
1206
|
"/v1/workspaces/{workspaceId}/files/$readDataset",
|
|
1197
1207
|
path_params={
|
|
1198
1208
|
"workspaceId": workspace_id,
|
|
1199
1209
|
},
|
|
1200
|
-
|
|
1210
|
+
search_params={
|
|
1211
|
+
"path": path,
|
|
1212
|
+
"versionId": version_id,
|
|
1213
|
+
"objectPath": object_path,
|
|
1214
|
+
"ranges": json.dumps(ranges, separators=(",", ":")),
|
|
1215
|
+
"representation": representation,
|
|
1216
|
+
},
|
|
1201
1217
|
)
|
|
1202
1218
|
return response
|
|
1203
1219
|
|
|
@@ -1614,6 +1630,28 @@ def task_artifact_download_url(
|
|
|
1614
1630
|
return response.json()
|
|
1615
1631
|
|
|
1616
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
|
+
|
|
1617
1655
|
def list_task_executions(
|
|
1618
1656
|
transport: ApiTransport, *, workspace_id: str, task_id: str
|
|
1619
1657
|
) -> Types.TaskExecutionListResponse:
|
|
@@ -851,7 +851,8 @@ class Hdf5ApplyManifest(TypedDict, total=False):
|
|
|
851
851
|
|
|
852
852
|
|
|
853
853
|
class Hdf5DatasetResponse(TypedDict, total=False):
|
|
854
|
-
data:
|
|
854
|
+
data: NotRequired[str]
|
|
855
|
+
datatype: Required[Hdf5Datatype]
|
|
855
856
|
dtype: Required[str]
|
|
856
857
|
etag: Required[str]
|
|
857
858
|
shape: Required[list[int]]
|
|
@@ -859,6 +860,35 @@ class Hdf5DatasetResponse(TypedDict, total=False):
|
|
|
859
860
|
versionId: Required[str]
|
|
860
861
|
|
|
861
862
|
|
|
863
|
+
Hdf5Datatype = TypedDict(
|
|
864
|
+
"Hdf5Datatype",
|
|
865
|
+
{
|
|
866
|
+
"byteOrder": 'NotRequired[Literal["little", "big", "vax", "mixed", "none"]]',
|
|
867
|
+
# Compound fields or the array, sequence, or enum base type.
|
|
868
|
+
"children": "NotRequired[list[Hdf5Datatype]]",
|
|
869
|
+
# HDF5 class, including unsupported value types.
|
|
870
|
+
"class": "Required[str]",
|
|
871
|
+
# Array datatype dimensions, independent of dataset shape.
|
|
872
|
+
"dimensions": "NotRequired[list[int]]",
|
|
873
|
+
"encoding": 'NotRequired[Literal["ascii", "utf8"]]',
|
|
874
|
+
# Compound field name.
|
|
875
|
+
"name": "NotRequired[str]",
|
|
876
|
+
# Compound field byte offset.
|
|
877
|
+
"offset": "NotRequired[int]",
|
|
878
|
+
"padding": 'NotRequired[Literal["nullterm", "nullpad", "spacepad"]]',
|
|
879
|
+
"signed": "NotRequired[bool]",
|
|
880
|
+
# Storage size in bytes.
|
|
881
|
+
"size": "Required[int]",
|
|
882
|
+
# Enum symbols mapped to exact decimal integer codes.
|
|
883
|
+
"symbols": "NotRequired[dict[str, Any]]",
|
|
884
|
+
"truncated": "NotRequired[bool]",
|
|
885
|
+
# Whether a string has variable length.
|
|
886
|
+
"variable": "NotRequired[bool]",
|
|
887
|
+
},
|
|
888
|
+
total=False,
|
|
889
|
+
)
|
|
890
|
+
|
|
891
|
+
|
|
862
892
|
class Hdf5Edit(TypedDict, total=False):
|
|
863
893
|
attachment: NotRequired[int]
|
|
864
894
|
attribute: NotRequired[str]
|
|
@@ -869,6 +899,12 @@ class Hdf5Edit(TypedDict, total=False):
|
|
|
869
899
|
value: NotRequired[str]
|
|
870
900
|
|
|
871
901
|
|
|
902
|
+
class Hdf5Filter(TypedDict, total=False):
|
|
903
|
+
id: Required[int]
|
|
904
|
+
name: Required[str]
|
|
905
|
+
parameters: Required[list[int]]
|
|
906
|
+
|
|
907
|
+
|
|
872
908
|
class Hdf5Inspection(TypedDict, total=False):
|
|
873
909
|
etag: Required[str]
|
|
874
910
|
node: Required[Hdf5Object]
|
|
@@ -883,20 +919,22 @@ class Hdf5MutationResponse(TypedDict, total=False):
|
|
|
883
919
|
class Hdf5Object(TypedDict, total=False):
|
|
884
920
|
attributes: NotRequired[dict[str, Any]]
|
|
885
921
|
children: NotRequired[list[Hdf5Object]]
|
|
922
|
+
chunks: NotRequired[list[int]]
|
|
886
923
|
dataspace: NotRequired[str]
|
|
924
|
+
datatype: NotRequired[Hdf5Datatype]
|
|
887
925
|
dtype: NotRequired[str]
|
|
926
|
+
# External link filename; inspection never opens this file.
|
|
927
|
+
externalFile: NotRequired[str]
|
|
928
|
+
filters: NotRequired[list[Hdf5Filter]]
|
|
888
929
|
kind: Required[str]
|
|
930
|
+
# Link target path; inspection never follows this link.
|
|
931
|
+
linkTarget: NotRequired[str]
|
|
889
932
|
next: NotRequired[int]
|
|
890
933
|
path: Required[str]
|
|
891
934
|
shape: NotRequired[list[int]]
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
objectPath: Required[str]
|
|
896
|
-
path: Required[str]
|
|
897
|
-
ranges: Required[list[list[int]]]
|
|
898
|
-
representation: NotRequired[Literal["json", "binary"]]
|
|
899
|
-
versionId: Required[str]
|
|
935
|
+
# Attribute names requiring browser reading; metadata-only types and resource-limit
|
|
936
|
+
# failures are excluded.
|
|
937
|
+
unsupportedAttributes: NotRequired[list[str]]
|
|
900
938
|
|
|
901
939
|
|
|
902
940
|
class HtmlRenderMargin(TypedDict, total=False):
|
|
@@ -1028,6 +1066,11 @@ class RuntimeListResponse(TypedDict, total=False):
|
|
|
1028
1066
|
next: NotRequired[str]
|
|
1029
1067
|
|
|
1030
1068
|
|
|
1069
|
+
class SaveTaskArtifactRequest(TypedDict, total=False):
|
|
1070
|
+
# Relative destination path, including the file name.
|
|
1071
|
+
path: Required[str]
|
|
1072
|
+
|
|
1073
|
+
|
|
1031
1074
|
class SearchField(TypedDict, total=False):
|
|
1032
1075
|
defaultSearch: Required[bool]
|
|
1033
1076
|
description: Required[str]
|
|
@@ -1479,7 +1522,9 @@ class TaskExecutionEvent(TypedDict, total=False):
|
|
|
1479
1522
|
createdAt: Required[str]
|
|
1480
1523
|
executionId: Required[str]
|
|
1481
1524
|
id: Required[str]
|
|
1482
|
-
kind: Required[
|
|
1525
|
+
kind: Required[
|
|
1526
|
+
Literal["lifecycle", "log", "metrics", "artifact", "finished", "kryo"]
|
|
1527
|
+
]
|
|
1483
1528
|
payload: Required[dict[str, Any]]
|
|
1484
1529
|
sequence: Required[int]
|
|
1485
1530
|
taskId: Required[str]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kotharcomputing-1.4.1 → 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.4.1 → kotharcomputing-1.7.0}/src/kotharcomputing.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|