tosnativeclient 1.0.8b2__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.

@@ -0,0 +1,26 @@
1
+ from .tosnativeclient import TosClient, ListStream, ListObjectsResult, TosObject, ReadStream, WriteStream, TosError, \
2
+ TosException, TosRawClient, \
3
+ HeadObjectInput, HeadObjectOutput, GetObjectOutput, DeleteObjectInput, DeleteObjectOutput, GetObjectInput, \
4
+ PutObjectFromBufferInput, PutObjectFromFileInput, PutObjectOutput, async_write_profile
5
+
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
+ 'async_write_profile',
26
+ ]
@@ -0,0 +1,227 @@
1
+ from typing import List, Dict
2
+
3
+ from typing import Optional
4
+
5
+
6
+ def async_write_profile(seconds: int, file_path: str) -> None:
7
+ ...
8
+
9
+
10
+ class TosError(object):
11
+ message: str
12
+ status_code: Optional[int]
13
+ ec: str
14
+ request_id: str
15
+
16
+
17
+ class TosException(Exception):
18
+ args: List[TosError]
19
+
20
+
21
+ class TosObject(object):
22
+ bucket: str
23
+ key: str
24
+ size: int
25
+ etag: str
26
+
27
+
28
+ class ListObjectsResult(object):
29
+ contents: List[TosObject]
30
+ common_prefixes: List[str]
31
+
32
+
33
+ class ListStream(object):
34
+ bucket: str
35
+ prefix: str
36
+ delimiter: str
37
+ max_keys: int
38
+ continuation_token: str
39
+ start_after: str
40
+
41
+ def __iter__(self) -> ListStream: ...
42
+
43
+ def __next__(self) -> ListObjectsResult: ...
44
+
45
+ def close(self) -> None: ...
46
+
47
+ def current_prefix(self) -> Optional[str]: ...
48
+
49
+ def current_continuation_token(self) -> Optional[str]: ...
50
+
51
+
52
+ class ReadStream(object):
53
+ bucket: str
54
+ key: str
55
+ size: int
56
+ etag: str
57
+
58
+ def read(self, offset: int, length: int) -> Optional[bytes]:
59
+ ...
60
+
61
+ def close(self) -> None:
62
+ ...
63
+
64
+
65
+ class WriteStream(object):
66
+ bucket: str
67
+ key: str
68
+ storage_class: Optional[str]
69
+
70
+ def write(self, data: bytes) -> int:
71
+ ...
72
+
73
+ def close(self) -> None:
74
+ ...
75
+
76
+
77
+ class TosClient(object):
78
+ region: str
79
+ endpoint: str
80
+ ak: str
81
+ sk: str
82
+ part_size: int
83
+ max_retry_count: int
84
+ max_prefetch_tasks: int
85
+ directives: str
86
+ directory: str
87
+ file_name_prefix: str
88
+ shared_prefetch_tasks: int
89
+ enable_crc: bool
90
+
91
+ def __init__(self, region: str, endpoint: str, ak: str = '', sk: str = '', part_size: int = 8388608,
92
+ max_retry_count: int = 3, max_prefetch_tasks: int = 3, directives: str = '', directory: str = '',
93
+ file_name_prefix: str = '', shared_prefetch_tasks: int = 20, enable_crc: bool = True):
94
+ ...
95
+
96
+ def list_objects(self, bucket: str, prefix: str = '', max_keys: int = 1000, delimiter: str = '',
97
+ continuation_token: str = '', start_after: str = '') -> ListStream:
98
+ ...
99
+
100
+ def head_object(self, bucket: str, key: str) -> TosObject:
101
+ ...
102
+
103
+ def get_object(self, bucket: str, key: str, etag: str, size: int) -> ReadStream:
104
+ ...
105
+
106
+ def put_object(self, bucket: str, key: str, storage_class: Optional[str] = '') -> WriteStream:
107
+ ...
108
+
109
+
110
+ class HeadObjectInput(object):
111
+ bucket: str
112
+ key: str
113
+ version_id: str
114
+
115
+ def __init__(self, bucket: str, key: str, version_id: str = ''):
116
+ ...
117
+
118
+
119
+ class HeadObjectOutput(object):
120
+ request_id: str
121
+ status_code: int
122
+ header: Dict[str, str]
123
+ content_length: int
124
+ etag: str
125
+ version_id: str
126
+ hash_crc64ecma: int
127
+
128
+
129
+ class DeleteObjectInput(object):
130
+ bucket: str
131
+ key: str
132
+ version_id: str
133
+
134
+ def __init__(self, bucket: str, key: str, version_id: str = ''):
135
+ ...
136
+
137
+
138
+ class DeleteObjectOutput(object):
139
+ request_id: str
140
+ status_code: int
141
+ header: Dict[str, str]
142
+ delete_marker: bool
143
+ version_id: str
144
+
145
+
146
+ class GetObjectInput(object):
147
+ bucket: str
148
+ key: str
149
+ version_id: str
150
+ range: str
151
+
152
+ def __init__(self, bucket: str, key: str, version_id: str = '', range: str = ''):
153
+ ...
154
+
155
+
156
+ class GetObjectOutput(object):
157
+ request_id: str
158
+ status_code: int
159
+ header: Dict[str, str]
160
+ content_length: int
161
+ etag: str
162
+ version_id: str
163
+ content_range: str
164
+ hash_crc64ecma: int
165
+
166
+ def read_all(self) -> Optional[bytes]:
167
+ ...
168
+
169
+ def read(self) -> Optional[bytes]:
170
+ ...
171
+
172
+
173
+ class PutObjectFromBufferInput(object):
174
+ bucket: str
175
+ key: str
176
+ content: bytes
177
+
178
+ def __init__(self, bucket: str, key: str, content: bytes):
179
+ ...
180
+
181
+
182
+ class PutObjectFromFileInput(object):
183
+ bucket: str
184
+ key: str
185
+ file_path: str
186
+
187
+ def __init__(self, bucket: str, key: str, file_path: str):
188
+ ...
189
+
190
+
191
+ class PutObjectOutput(object):
192
+ request_id: str
193
+ status_code: int
194
+ header: Dict[str, str]
195
+ etag: str
196
+ version_id: str
197
+ hash_crc64ecma: int
198
+
199
+
200
+ class TosRawClient(object):
201
+ region: str
202
+ endpoint: str
203
+ ak: str
204
+ sk: str
205
+ connection_timeout: int
206
+ request_timeout: int
207
+ max_connections: int
208
+ max_retry_count: int
209
+
210
+ def __init__(self, region: str, endpoint: str, ak: str = '', sk: str = '', connection_timeout: int = 10000,
211
+ request_timeout: int = 120000, max_connections: int = 1024, max_retry_count: int = 3):
212
+ ...
213
+
214
+ def head_object(self, input: HeadObjectInput) -> HeadObjectOutput:
215
+ ...
216
+
217
+ def delete_object(self, input: DeleteObjectInput) -> DeleteObjectOutput:
218
+ ...
219
+
220
+ def get_object(self, input: GetObjectInput) -> GetObjectOutput:
221
+ ...
222
+
223
+ def put_object_from_buffer(self, input: PutObjectFromBufferInput) -> PutObjectOutput:
224
+ ...
225
+
226
+ def put_object_from_file(self, input: PutObjectFromFileInput) -> PutObjectOutput:
227
+ ...
@@ -0,0 +1,11 @@
1
+ Metadata-Version: 2.4
2
+ Name: tosnativeclient
3
+ Version: 1.0.8b2
4
+ Classifier: Programming Language :: Rust
5
+ Classifier: Programming Language :: Python :: Implementation :: CPython
6
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
7
+ Classifier: License :: OSI Approved :: Apache Software License
8
+ Summary: python native client for tos
9
+ Author: xiangshijian
10
+ License: Apache-2.0
11
+ Requires-Python: >=3.8
@@ -0,0 +1,6 @@
1
+ tosnativeclient-1.0.8b2.dist-info/METADATA,sha256=Uhd8mmntqocN3-TcusL9AxtCCVO_xYsIIyvad1QUsAg,408
2
+ tosnativeclient-1.0.8b2.dist-info/WHEEL,sha256=YLLGMgiebwxzWB63F0KVTBu1H1ad3TdbsHYfFKfk6fc,104
3
+ tosnativeclient/__init__.py,sha256=jSaPI2JrzcEWwbHxLYUYFuXq11DJrw0DOOIxKxPk_O8,797
4
+ tosnativeclient/tosnativeclient.cpython-313-darwin.so,sha256=u590TeCv6Je-I1FOfMB6jx-778g6cy7h9Zr_qJJCxw0,14007824
5
+ tosnativeclient/tosnativeclient.pyi,sha256=mdwu9iunqXV5httBdv5MqBChyYlUsjrZ4BZr2U219Ho,4894
6
+ tosnativeclient-1.0.8b2.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.8.7)
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-cp313-macosx_11_0_arm64