matelab-python-sdk 0.2.0a7__py3-none-any.whl → 0.2.0a8__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.
- matelab/_generated/models.py +6 -3
- matelab/domains/uploads.py +2 -1
- {matelab_python_sdk-0.2.0a7.dist-info → matelab_python_sdk-0.2.0a8.dist-info}/METADATA +2 -2
- {matelab_python_sdk-0.2.0a7.dist-info → matelab_python_sdk-0.2.0a8.dist-info}/RECORD +7 -7
- {matelab_python_sdk-0.2.0a7.dist-info → matelab_python_sdk-0.2.0a8.dist-info}/WHEEL +1 -1
- {matelab_python_sdk-0.2.0a7.dist-info → matelab_python_sdk-0.2.0a8.dist-info}/licenses/LICENSE +0 -0
- {matelab_python_sdk-0.2.0a7.dist-info → matelab_python_sdk-0.2.0a8.dist-info}/licenses/NOTICE +0 -0
matelab/_generated/models.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
#
|
|
3
3
|
# @generated by datamodel-codegen:
|
|
4
4
|
# filename: openapi.yaml
|
|
5
|
-
# version: 0.
|
|
5
|
+
# version: 0.87.0
|
|
6
6
|
|
|
7
7
|
from enum import StrEnum
|
|
8
8
|
from typing import Annotated, Any, Literal
|
|
@@ -11,7 +11,7 @@ from pydantic import ConfigDict, Field, RootModel, SecretStr, StrictBool, Strict
|
|
|
11
11
|
|
|
12
12
|
from matelab._wire_validation import WireModel
|
|
13
13
|
|
|
14
|
-
OPENAPI_INFO_VERSION = "2026.10.
|
|
14
|
+
OPENAPI_INFO_VERSION = "2026.10.4"
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class ResponseEnvelope(WireModel):
|
|
@@ -2759,7 +2759,10 @@ class StageTemporaryFileRequest(WireModel):
|
|
|
2759
2759
|
"""
|
|
2760
2760
|
file: bytes | None = None
|
|
2761
2761
|
"""
|
|
2762
|
-
Required for upload branches and omitted for abort.
|
|
2762
|
+
Required for upload branches and omitted for abort. The multipart
|
|
2763
|
+
filename's sanitized final extension selects the temporary bytes;
|
|
2764
|
+
keep that extension unchanged throughout continuation.
|
|
2765
|
+
|
|
2763
2766
|
"""
|
|
2764
2767
|
|
|
2765
2768
|
|
matelab/domains/uploads.py
CHANGED
|
@@ -79,6 +79,7 @@ class Uploads:
|
|
|
79
79
|
complete_sha256: str | None = None,
|
|
80
80
|
content_type: str = "application/octet-stream",
|
|
81
81
|
) -> StagedUploadSession | StagedFile:
|
|
82
|
+
"""Stage bytes; preserve the sanitized, case-sensitive filename extension when resuming."""
|
|
82
83
|
if session is None:
|
|
83
84
|
session = StagedUploadSession(
|
|
84
85
|
binding=UploadBindingRef.new(), upload_session_id=f"tmp-{secrets.token_urlsafe(24)}"
|
|
@@ -162,7 +163,7 @@ class Uploads:
|
|
|
162
163
|
)
|
|
163
164
|
|
|
164
165
|
async def abort(self, upload: StagedUploadSession | StagedFile) -> None:
|
|
165
|
-
"""Cancel incomplete
|
|
166
|
+
"""Cancel incomplete extension variants; completed staging identities remain untouched (PVD-052)."""
|
|
166
167
|
if isinstance(upload, StagedFile):
|
|
167
168
|
# The completed file keeps this Provider identity private except for same-module cleanup.
|
|
168
169
|
upload_session_id = upload._upload_session_id # pyright: ignore[reportPrivateUsage]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: matelab-python-sdk
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.0a8
|
|
4
4
|
Summary: Reusable async Python client for the Matelab Integration Contract
|
|
5
5
|
Author: CMPDC, Institute of Physics, Chinese Academy of Sciences
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -20,7 +20,7 @@ Classifier: Topic :: Scientific/Engineering
|
|
|
20
20
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
21
21
|
Classifier: Typing :: Typed
|
|
22
22
|
Requires-Python: >=3.11
|
|
23
|
-
Requires-Dist: httpx2>=2.
|
|
23
|
+
Requires-Dist: httpx2>=2.16.0
|
|
24
24
|
Requires-Dist: jsonschema>=4.26.0
|
|
25
25
|
Requires-Dist: pydantic>=2.14.1
|
|
26
26
|
Requires-Dist: typing-extensions>=4.16.0
|
|
@@ -8,7 +8,7 @@ matelab/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
|
8
8
|
matelab/session.py,sha256=D8i9uyAt32-bADotS-Lrb7RpmWRNYNIkIpZUijTYvy4,899
|
|
9
9
|
matelab/streaming.py,sha256=36epH2josWk87Ors_JY0YsjNmtiq3NZa2iB9djLmlnY,3792
|
|
10
10
|
matelab/_generated/__init__.py,sha256=jmGbXLLe3JorsGU7OUdF8iKGewFMRqkCzgyFAw7C15w,79
|
|
11
|
-
matelab/_generated/models.py,sha256=
|
|
11
|
+
matelab/_generated/models.py,sha256=pKWhccohpfOQTfJHjXo0GGYATT8yfK8tZU2h47gmEmA,179704
|
|
12
12
|
matelab/domains/__init__.py,sha256=C34IWsGoCAwP7r6uYKJ79DJkToZyrZ4LWA87ufc1i0Q,65
|
|
13
13
|
matelab/domains/_attachment_content.py,sha256=z26hwFpdgAk2x1w8EGe00XBLtJ3QFDX8BPS35Zc5SoE,1461
|
|
14
14
|
matelab/domains/cloud_drive.py,sha256=EoqAYWvLVUfVOsic3g-TxsQEtAI3wTp5h0_vB79KpwY,10406
|
|
@@ -17,10 +17,10 @@ matelab/domains/literature.py,sha256=xpdHuFCR1RpEPB_Lk8VOaddlIpGQ2rnp4kxl5a8Bk4M
|
|
|
17
17
|
matelab/domains/notebooks.py,sha256=_SvffaViECSEOkN5iwXtSv6El3fK2OYaR4RJvUCXfGk,13477
|
|
18
18
|
matelab/domains/records.py,sha256=laluv0XiN26369PcO-mGxlugaDrqE-M67yICFYwoMzI,94263
|
|
19
19
|
matelab/domains/templates.py,sha256=-x7RqRLhrRnAK3HGK3c4I3C-SsAk7zpicIcvzoVd414,17698
|
|
20
|
-
matelab/domains/uploads.py,sha256=
|
|
20
|
+
matelab/domains/uploads.py,sha256=6y4i85UWGxumasWw9HAubcgtK_fqgZLnBUbX0oghxQU,7699
|
|
21
21
|
matelab/domains/users.py,sha256=ZhlLzC_AadwYqNqxQrqkUBgIUqL7MJ6FgMyxwq-az8s,1445
|
|
22
|
-
matelab_python_sdk-0.2.
|
|
23
|
-
matelab_python_sdk-0.2.
|
|
24
|
-
matelab_python_sdk-0.2.
|
|
25
|
-
matelab_python_sdk-0.2.
|
|
26
|
-
matelab_python_sdk-0.2.
|
|
22
|
+
matelab_python_sdk-0.2.0a8.dist-info/METADATA,sha256=LkiXjUNtd2lkTuHmc6f5pgMyHvEJO-jXN_JZ1JGE1Ok,2436
|
|
23
|
+
matelab_python_sdk-0.2.0a8.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
24
|
+
matelab_python_sdk-0.2.0a8.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
25
|
+
matelab_python_sdk-0.2.0a8.dist-info/licenses/NOTICE,sha256=Hc4scCJTof5VL3JCPI2aaewnnzCejIHUGuBVYBf-klc,98
|
|
26
|
+
matelab_python_sdk-0.2.0a8.dist-info/RECORD,,
|
{matelab_python_sdk-0.2.0a7.dist-info → matelab_python_sdk-0.2.0a8.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{matelab_python_sdk-0.2.0a7.dist-info → matelab_python_sdk-0.2.0a8.dist-info}/licenses/NOTICE
RENAMED
|
File without changes
|