tosnativeclient 1.0.1__cp313-cp313-macosx_11_0_arm64.whl → 1.0.2__cp313-cp313-macosx_11_0_arm64.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.
Potentially problematic release.
This version of tosnativeclient might be problematic. Click here for more details.
- tosnativeclient/__init__.py +22 -18
- tosnativeclient/tosnativeclient.cpython-313-darwin.so +0 -0
- tosnativeclient/tosnativeclient.pyi +56 -56
- {tosnativeclient-1.0.1.dist-info → tosnativeclient-1.0.2.dist-info}/METADATA +1 -1
- tosnativeclient-1.0.2.dist-info/RECORD +6 -0
- tosnativeclient-1.0.1.dist-info/RECORD +0 -6
- {tosnativeclient-1.0.1.dist-info → tosnativeclient-1.0.2.dist-info}/WHEEL +0 -0
tosnativeclient/__init__.py
CHANGED
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
from .tosnativeclient import TosClient, ListStream, ListObjectsResult, TosObject,
|
|
1
|
+
from .tosnativeclient import TosClient, ListStream, ListObjectsResult, TosObject, ReadStream, WriteStream, TosError, \
|
|
2
|
+
TosException, TosRawClient, \
|
|
2
3
|
HeadObjectInput, HeadObjectOutput, GetObjectOutput, DeleteObjectInput, DeleteObjectOutput, GetObjectInput, \
|
|
3
4
|
PutObjectFromBufferInput, PutObjectFromFileInput, PutObjectOutput
|
|
4
5
|
|
|
5
|
-
__all__ = [
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
6
|
+
__all__ = [
|
|
7
|
+
'TosError',
|
|
8
|
+
'TosException',
|
|
9
|
+
'TosClient',
|
|
10
|
+
'ListStream',
|
|
11
|
+
'ListObjectsResult',
|
|
12
|
+
'TosObject',
|
|
13
|
+
'ReadStream',
|
|
14
|
+
'WriteStream',
|
|
15
|
+
'TosRawClient',
|
|
16
|
+
'HeadObjectInput',
|
|
17
|
+
'HeadObjectOutput',
|
|
18
|
+
'DeleteObjectInput',
|
|
19
|
+
'DeleteObjectOutput',
|
|
20
|
+
'GetObjectInput',
|
|
21
|
+
'GetObjectOutput',
|
|
22
|
+
'PutObjectFromBufferInput',
|
|
23
|
+
'PutObjectFromFileInput',
|
|
24
|
+
'PutObjectOutput'
|
|
25
|
+
]
|
|
Binary file
|
|
@@ -3,31 +3,27 @@ from typing import List, Dict
|
|
|
3
3
|
from typing import Optional
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
class
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
part_size: int
|
|
12
|
-
max_retry_count: int
|
|
13
|
-
max_prefetch_tasks: int
|
|
6
|
+
class TosError(object):
|
|
7
|
+
message: str
|
|
8
|
+
status_code: Optional[int]
|
|
9
|
+
ec: str
|
|
10
|
+
request_id: str
|
|
14
11
|
|
|
15
|
-
def __init__(self, region: str, endpoint: str, ak: str = '', sk: str = '', part_size: int = 8388608,
|
|
16
|
-
max_retry_count: int = 3, max_prefetch_tasks: int = 3, directives: str = '', directory: str = '',
|
|
17
|
-
file_name_prefix: str = '', shared_prefetch_tasks: int = 20):
|
|
18
|
-
...
|
|
19
12
|
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
class TosException(Exception):
|
|
14
|
+
args: List[TosError]
|
|
22
15
|
|
|
23
|
-
def head_object(self, bucket: str, key: str) -> TosObject:
|
|
24
|
-
...
|
|
25
16
|
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
class TosObject(object):
|
|
18
|
+
bucket: str
|
|
19
|
+
key: str
|
|
20
|
+
size: int
|
|
21
|
+
etag: str
|
|
28
22
|
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
|
|
24
|
+
class ListObjectsResult(object):
|
|
25
|
+
contents: List[TosObject]
|
|
26
|
+
common_prefixes: List[str]
|
|
31
27
|
|
|
32
28
|
|
|
33
29
|
class ListStream(object):
|
|
@@ -43,18 +39,6 @@ class ListStream(object):
|
|
|
43
39
|
def close(self) -> None: ...
|
|
44
40
|
|
|
45
41
|
|
|
46
|
-
class ListObjectsResult(object):
|
|
47
|
-
contents: List[TosObject]
|
|
48
|
-
common_prefixes: List[str]
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
class TosObject(object):
|
|
52
|
-
bucket: str
|
|
53
|
-
key: str
|
|
54
|
-
size: int
|
|
55
|
-
etag: str
|
|
56
|
-
|
|
57
|
-
|
|
58
42
|
class ReadStream(object):
|
|
59
43
|
bucket: str
|
|
60
44
|
key: str
|
|
@@ -80,44 +64,30 @@ class WriteStream(object):
|
|
|
80
64
|
...
|
|
81
65
|
|
|
82
66
|
|
|
83
|
-
class
|
|
84
|
-
message: str
|
|
85
|
-
status_code: Optional[int]
|
|
86
|
-
ec: str
|
|
87
|
-
request_id: str
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
class TosException(Exception):
|
|
91
|
-
args: List[TosError]
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
class TosRawClient(object):
|
|
67
|
+
class TosClient(object):
|
|
95
68
|
region: str
|
|
96
69
|
endpoint: str
|
|
97
70
|
ak: str
|
|
98
71
|
sk: str
|
|
99
|
-
|
|
100
|
-
request_timeout: int
|
|
101
|
-
max_connections: int
|
|
72
|
+
part_size: int
|
|
102
73
|
max_retry_count: int
|
|
74
|
+
max_prefetch_tasks: int
|
|
103
75
|
|
|
104
|
-
def __init__(self, region: str, endpoint: str, ak: str = '', sk: str = '',
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
def head_object(self, input: HeadObjectInput) -> HeadObjectOutput:
|
|
76
|
+
def __init__(self, region: str, endpoint: str, ak: str = '', sk: str = '', part_size: int = 8388608,
|
|
77
|
+
max_retry_count: int = 3, max_prefetch_tasks: int = 3, directives: str = '', directory: str = '',
|
|
78
|
+
file_name_prefix: str = '', shared_prefetch_tasks: int = 20):
|
|
109
79
|
...
|
|
110
80
|
|
|
111
|
-
def
|
|
81
|
+
def list_objects(self, bucket: str, prefix: str = '', max_keys: int = 1000, delimiter: str = '') -> ListStream:
|
|
112
82
|
...
|
|
113
83
|
|
|
114
|
-
def
|
|
84
|
+
def head_object(self, bucket: str, key: str) -> TosObject:
|
|
115
85
|
...
|
|
116
86
|
|
|
117
|
-
def
|
|
87
|
+
def get_object(self, bucket: str, key: str, etag: str, size: int) -> ReadStream:
|
|
118
88
|
...
|
|
119
89
|
|
|
120
|
-
def
|
|
90
|
+
def put_object(self, bucket: str, key: str, storage_class: Optional[str] = '') -> WriteStream:
|
|
121
91
|
...
|
|
122
92
|
|
|
123
93
|
|
|
@@ -209,3 +179,33 @@ class PutObjectOutput(object):
|
|
|
209
179
|
etag: str
|
|
210
180
|
version_id: str
|
|
211
181
|
hash_crc64ecma: int
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
class TosRawClient(object):
|
|
185
|
+
region: str
|
|
186
|
+
endpoint: str
|
|
187
|
+
ak: str
|
|
188
|
+
sk: str
|
|
189
|
+
connection_timeout: int
|
|
190
|
+
request_timeout: int
|
|
191
|
+
max_connections: int
|
|
192
|
+
max_retry_count: int
|
|
193
|
+
|
|
194
|
+
def __init__(self, region: str, endpoint: str, ak: str = '', sk: str = '', connection_timeout: int = 10000,
|
|
195
|
+
request_timeout: int = 120000, max_connections: int = 1024, max_retry_count: int = 3):
|
|
196
|
+
...
|
|
197
|
+
|
|
198
|
+
def head_object(self, input: HeadObjectInput) -> HeadObjectOutput:
|
|
199
|
+
...
|
|
200
|
+
|
|
201
|
+
def delete_object(self, input: DeleteObjectInput) -> DeleteObjectOutput:
|
|
202
|
+
...
|
|
203
|
+
|
|
204
|
+
def get_object(self, input: GetObjectInput) -> GetObjectOutput:
|
|
205
|
+
...
|
|
206
|
+
|
|
207
|
+
def put_object_from_buffer(self, input: PutObjectFromBufferInput) -> PutObjectOutput:
|
|
208
|
+
...
|
|
209
|
+
|
|
210
|
+
def put_object_from_file(self, input: PutObjectFromFileInput) -> PutObjectOutput:
|
|
211
|
+
...
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
tosnativeclient-1.0.2.dist-info/METADATA,sha256=kxKXDUqD1di91wyOB9PGVgZ6Fqbmv1atCxw2XRXObxc,406
|
|
2
|
+
tosnativeclient-1.0.2.dist-info/WHEEL,sha256=YLLGMgiebwxzWB63F0KVTBu1H1ad3TdbsHYfFKfk6fc,104
|
|
3
|
+
tosnativeclient/__init__.py,sha256=HMlQnJ7kkLhK35BeX3i1ClGuKnd9TcUQ_jHCpR67kmc,748
|
|
4
|
+
tosnativeclient/tosnativeclient.cpython-313-darwin.so,sha256=V1-utFxaZA3ukonBruAkIKoJP3Q3azZYZs4RQgIh8Ec,8482672
|
|
5
|
+
tosnativeclient/tosnativeclient.pyi,sha256=p4quUdDXzVLDLlMInT2aYm4WrM3SeBJBq2GHz07k6g8,4410
|
|
6
|
+
tosnativeclient-1.0.2.dist-info/RECORD,,
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
tosnativeclient-1.0.1.dist-info/METADATA,sha256=KsO8QsFcbFlueW53M9b-HrymX01loNn0yyw3lzSsT2I,406
|
|
2
|
-
tosnativeclient-1.0.1.dist-info/WHEEL,sha256=YLLGMgiebwxzWB63F0KVTBu1H1ad3TdbsHYfFKfk6fc,104
|
|
3
|
-
tosnativeclient/__init__.py,sha256=9dB3mo0DeiM7DqlttQLM_CAz5biGjSLGV_pyF8Br9cE,791
|
|
4
|
-
tosnativeclient/tosnativeclient.cpython-313-darwin.so,sha256=UeEfgakJLEF5g9iy5TFSUN2BlOvNMfHiKKnaT6xzXrU,8462368
|
|
5
|
-
tosnativeclient/tosnativeclient.pyi,sha256=2Gw9isUPYyIxGQ4wP6fK2_tYRyszI2k7BInPVCeFoMU,4400
|
|
6
|
-
tosnativeclient-1.0.1.dist-info/RECORD,,
|
|
File without changes
|