tosnativeclient 1.0.4__cp313-cp313-macosx_11_0_arm64.whl → 1.1.1__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.
- tosnativeclient/__init__.py +3 -13
- tosnativeclient/tosnativeclient.cpython-313-darwin.so +0 -0
- tosnativeclient/tosnativeclient.pyi +23 -127
- {tosnativeclient-1.0.4.dist-info → tosnativeclient-1.1.1.dist-info}/METADATA +1 -1
- tosnativeclient-1.1.1.dist-info/RECORD +6 -0
- tosnativeclient-1.0.4.dist-info/RECORD +0 -6
- {tosnativeclient-1.0.4.dist-info → tosnativeclient-1.1.1.dist-info}/WHEEL +0 -0
tosnativeclient/__init__.py
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
from .tosnativeclient import TosClient, ListStream, ListObjectsResult, TosObject, ReadStream, WriteStream, TosError, \
|
|
2
|
-
TosException,
|
|
3
|
-
HeadObjectInput, HeadObjectOutput, GetObjectOutput, DeleteObjectInput, DeleteObjectOutput, GetObjectInput, \
|
|
4
|
-
PutObjectFromBufferInput, PutObjectFromFileInput, PutObjectOutput
|
|
2
|
+
TosException, async_write_profile, init_tracing_log
|
|
5
3
|
|
|
6
4
|
__all__ = [
|
|
7
5
|
'TosError',
|
|
@@ -12,14 +10,6 @@ __all__ = [
|
|
|
12
10
|
'TosObject',
|
|
13
11
|
'ReadStream',
|
|
14
12
|
'WriteStream',
|
|
15
|
-
'
|
|
16
|
-
'
|
|
17
|
-
'HeadObjectOutput',
|
|
18
|
-
'DeleteObjectInput',
|
|
19
|
-
'DeleteObjectOutput',
|
|
20
|
-
'GetObjectInput',
|
|
21
|
-
'GetObjectOutput',
|
|
22
|
-
'PutObjectFromBufferInput',
|
|
23
|
-
'PutObjectFromFileInput',
|
|
24
|
-
'PutObjectOutput'
|
|
13
|
+
'async_write_profile',
|
|
14
|
+
'init_tracing_log',
|
|
25
15
|
]
|
|
Binary file
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
from typing import List, Dict
|
|
1
|
+
from typing import List, Dict, Any
|
|
2
2
|
|
|
3
3
|
from typing import Optional
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
def async_write_profile(seconds: int, file_path: str, image_width: int = 1200) -> None:
|
|
7
|
+
...
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def init_tracing_log(directives: str = '', directory: str = '',
|
|
11
|
+
file_name_prefix: str = '') -> Any:
|
|
12
|
+
...
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
class TosError(object):
|
|
7
16
|
message: str
|
|
8
17
|
status_code: Optional[int]
|
|
@@ -31,6 +40,9 @@ class ListStream(object):
|
|
|
31
40
|
prefix: str
|
|
32
41
|
delimiter: str
|
|
33
42
|
max_keys: int
|
|
43
|
+
continuation_token: str
|
|
44
|
+
start_after: str
|
|
45
|
+
list_background_buffer_count: int
|
|
34
46
|
|
|
35
47
|
def __iter__(self) -> ListStream: ...
|
|
36
48
|
|
|
@@ -38,6 +50,10 @@ class ListStream(object):
|
|
|
38
50
|
|
|
39
51
|
def close(self) -> None: ...
|
|
40
52
|
|
|
53
|
+
def current_prefix(self) -> Optional[str]: ...
|
|
54
|
+
|
|
55
|
+
def current_continuation_token(self) -> Optional[str]: ...
|
|
56
|
+
|
|
41
57
|
|
|
42
58
|
class ReadStream(object):
|
|
43
59
|
bucket: str
|
|
@@ -72,17 +88,17 @@ class TosClient(object):
|
|
|
72
88
|
part_size: int
|
|
73
89
|
max_retry_count: int
|
|
74
90
|
max_prefetch_tasks: int
|
|
75
|
-
directives: str
|
|
76
|
-
directory: str
|
|
77
|
-
file_name_prefix: str
|
|
78
91
|
shared_prefetch_tasks: int
|
|
92
|
+
enable_crc: bool
|
|
79
93
|
|
|
80
94
|
def __init__(self, region: str, endpoint: str, ak: str = '', sk: str = '', part_size: int = 8388608,
|
|
81
|
-
max_retry_count: int = 3, max_prefetch_tasks: int = 3,
|
|
82
|
-
|
|
95
|
+
max_retry_count: int = 3, max_prefetch_tasks: int = 3, shared_prefetch_tasks: int = 20,
|
|
96
|
+
enable_crc: bool = True):
|
|
83
97
|
...
|
|
84
98
|
|
|
85
|
-
def list_objects(self, bucket: str, prefix: str = '', max_keys: int = 1000, delimiter: str = ''
|
|
99
|
+
def list_objects(self, bucket: str, prefix: str = '', max_keys: int = 1000, delimiter: str = '',
|
|
100
|
+
continuation_token: str = '', start_after: str = '',
|
|
101
|
+
list_background_buffer_count: int = 1) -> ListStream:
|
|
86
102
|
...
|
|
87
103
|
|
|
88
104
|
def head_object(self, bucket: str, key: str) -> TosObject:
|
|
@@ -93,123 +109,3 @@ class TosClient(object):
|
|
|
93
109
|
|
|
94
110
|
def put_object(self, bucket: str, key: str, storage_class: Optional[str] = '') -> WriteStream:
|
|
95
111
|
...
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
class HeadObjectInput(object):
|
|
99
|
-
bucket: str
|
|
100
|
-
key: str
|
|
101
|
-
version_id: str
|
|
102
|
-
|
|
103
|
-
def __init__(self, bucket: str, key: str, version_id: str = ''):
|
|
104
|
-
...
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
class HeadObjectOutput(object):
|
|
108
|
-
request_id: str
|
|
109
|
-
status_code: int
|
|
110
|
-
header: Dict[str, str]
|
|
111
|
-
content_length: int
|
|
112
|
-
etag: str
|
|
113
|
-
version_id: str
|
|
114
|
-
hash_crc64ecma: int
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
class DeleteObjectInput(object):
|
|
118
|
-
bucket: str
|
|
119
|
-
key: str
|
|
120
|
-
version_id: str
|
|
121
|
-
|
|
122
|
-
def __init__(self, bucket: str, key: str, version_id: str = ''):
|
|
123
|
-
...
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
class DeleteObjectOutput(object):
|
|
127
|
-
request_id: str
|
|
128
|
-
status_code: int
|
|
129
|
-
header: Dict[str, str]
|
|
130
|
-
delete_marker: bool
|
|
131
|
-
version_id: str
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
class GetObjectInput(object):
|
|
135
|
-
bucket: str
|
|
136
|
-
key: str
|
|
137
|
-
version_id: str
|
|
138
|
-
range: str
|
|
139
|
-
|
|
140
|
-
def __init__(self, bucket: str, key: str, version_id: str = '', range: str = ''):
|
|
141
|
-
...
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
class GetObjectOutput(object):
|
|
145
|
-
request_id: str
|
|
146
|
-
status_code: int
|
|
147
|
-
header: Dict[str, str]
|
|
148
|
-
content_length: int
|
|
149
|
-
etag: str
|
|
150
|
-
version_id: str
|
|
151
|
-
content_range: str
|
|
152
|
-
hash_crc64ecma: int
|
|
153
|
-
|
|
154
|
-
def read_all(self) -> Optional[bytes]:
|
|
155
|
-
...
|
|
156
|
-
|
|
157
|
-
def read(self) -> Optional[bytes]:
|
|
158
|
-
...
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
class PutObjectFromBufferInput(object):
|
|
162
|
-
bucket: str
|
|
163
|
-
key: str
|
|
164
|
-
content: bytes
|
|
165
|
-
|
|
166
|
-
def __init__(self, bucket: str, key: str, content: bytes):
|
|
167
|
-
...
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
class PutObjectFromFileInput(object):
|
|
171
|
-
bucket: str
|
|
172
|
-
key: str
|
|
173
|
-
file_path: str
|
|
174
|
-
|
|
175
|
-
def __init__(self, bucket: str, key: str, file_path: str):
|
|
176
|
-
...
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
class PutObjectOutput(object):
|
|
180
|
-
request_id: str
|
|
181
|
-
status_code: int
|
|
182
|
-
header: Dict[str, str]
|
|
183
|
-
etag: str
|
|
184
|
-
version_id: str
|
|
185
|
-
hash_crc64ecma: int
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
class TosRawClient(object):
|
|
189
|
-
region: str
|
|
190
|
-
endpoint: str
|
|
191
|
-
ak: str
|
|
192
|
-
sk: str
|
|
193
|
-
connection_timeout: int
|
|
194
|
-
request_timeout: int
|
|
195
|
-
max_connections: int
|
|
196
|
-
max_retry_count: int
|
|
197
|
-
|
|
198
|
-
def __init__(self, region: str, endpoint: str, ak: str = '', sk: str = '', connection_timeout: int = 10000,
|
|
199
|
-
request_timeout: int = 120000, max_connections: int = 1024, max_retry_count: int = 3):
|
|
200
|
-
...
|
|
201
|
-
|
|
202
|
-
def head_object(self, input: HeadObjectInput) -> HeadObjectOutput:
|
|
203
|
-
...
|
|
204
|
-
|
|
205
|
-
def delete_object(self, input: DeleteObjectInput) -> DeleteObjectOutput:
|
|
206
|
-
...
|
|
207
|
-
|
|
208
|
-
def get_object(self, input: GetObjectInput) -> GetObjectOutput:
|
|
209
|
-
...
|
|
210
|
-
|
|
211
|
-
def put_object_from_buffer(self, input: PutObjectFromBufferInput) -> PutObjectOutput:
|
|
212
|
-
...
|
|
213
|
-
|
|
214
|
-
def put_object_from_file(self, input: PutObjectFromFileInput) -> PutObjectOutput:
|
|
215
|
-
...
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
tosnativeclient-1.1.1.dist-info/METADATA,sha256=tLYWHeqC_8_dpmpIE5kIg3x9sOzTL9KlUQpjFrw30pA,406
|
|
2
|
+
tosnativeclient-1.1.1.dist-info/WHEEL,sha256=YLLGMgiebwxzWB63F0KVTBu1H1ad3TdbsHYfFKfk6fc,104
|
|
3
|
+
tosnativeclient/__init__.py,sha256=jFbf33pf79M8ZkfCl3dPKLXhIohFX0vweVPind6oHeg,391
|
|
4
|
+
tosnativeclient/tosnativeclient.cpython-313-darwin.so,sha256=gg4Fh2_wlV4Qgzu00mbMB7qC_q8SPjnv5zrMmv-CH-0,13755888
|
|
5
|
+
tosnativeclient/tosnativeclient.pyi,sha256=9seNj0IOxkWhVedsUqzQepHmJB5dZmuxWQiWTlgOdiM,2480
|
|
6
|
+
tosnativeclient-1.1.1.dist-info/RECORD,,
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
tosnativeclient-1.0.4.dist-info/METADATA,sha256=ZWaXIKtQak0QejtyjsBwtbwvwDcNA65jpJPzmZVrgCc,406
|
|
2
|
-
tosnativeclient-1.0.4.dist-info/WHEEL,sha256=YLLGMgiebwxzWB63F0KVTBu1H1ad3TdbsHYfFKfk6fc,104
|
|
3
|
-
tosnativeclient/__init__.py,sha256=HMlQnJ7kkLhK35BeX3i1ClGuKnd9TcUQ_jHCpR67kmc,748
|
|
4
|
-
tosnativeclient/tosnativeclient.cpython-313-darwin.so,sha256=GI_sPR79TDQaBKKvgmj6scjVF3Xps5_nI3yHxWDRyeU,8510304
|
|
5
|
-
tosnativeclient/tosnativeclient.pyi,sha256=lvcdCvTo5OLMObCSQlPOy01OF4-muVDtSwOwoSUvMTo,4536
|
|
6
|
-
tosnativeclient-1.0.4.dist-info/RECORD,,
|
|
File without changes
|