tosnativeclient 1.0.0__cp313-cp313-macosx_11_0_arm64.whl → 1.0.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.

Potentially problematic release.


This version of tosnativeclient might be problematic. Click here for more details.

@@ -1,4 +1,21 @@
1
- from .tosnativeclient import TosClient, ListStream, ListObjectsResult, TosObject, TosError, TosException
1
+ from .tosnativeclient import TosClient, ListStream, ListObjectsResult, TosObject, TosError, TosException, TosRawClient, \
2
+ HeadObjectInput, HeadObjectOutput, GetObjectOutput, DeleteObjectInput, DeleteObjectOutput, GetObjectInput, \
3
+ PutObjectFromBufferInput, PutObjectFromFileInput, PutObjectOutput
2
4
 
3
- __all__ = ['TosClient', 'ListStream', 'ListObjectsResult', 'TosObject', 'TosError',
4
- 'TosException']
5
+ __all__ = ['TosClient',
6
+ 'ListStream',
7
+ 'ListObjectsResult',
8
+ 'TosObject',
9
+ 'TosError',
10
+ 'TosException',
11
+ 'TosRawClient',
12
+ 'HeadObjectInput',
13
+ 'HeadObjectOutput',
14
+ 'DeleteObjectInput',
15
+ 'DeleteObjectOutput',
16
+ 'GetObjectInput',
17
+ 'GetObjectOutput',
18
+ 'PutObjectFromBufferInput',
19
+ 'PutObjectFromFileInput',
20
+ 'PutObjectOutput'
21
+ ]
@@ -1,4 +1,4 @@
1
- from typing import List
1
+ from typing import List, Dict
2
2
 
3
3
  from typing import Optional
4
4
 
@@ -89,3 +89,123 @@ class TosError(object):
89
89
 
90
90
  class TosException(Exception):
91
91
  args: List[TosError]
92
+
93
+
94
+ class TosRawClient(object):
95
+ region: str
96
+ endpoint: str
97
+ ak: str
98
+ sk: str
99
+ connection_timeout: int
100
+ request_timeout: int
101
+ max_connections: int
102
+ max_retry_count: int
103
+
104
+ def __init__(self, region: str, endpoint: str, ak: str = '', sk: str = '', connection_timeout: int = 10000,
105
+ request_timeout: int = 120000, max_connections: int = 1024, max_retry_count: int = 3):
106
+ ...
107
+
108
+ def head_object(self, input: HeadObjectInput) -> HeadObjectOutput:
109
+ ...
110
+
111
+ def delete_object(self, input: DeleteObjectInput) -> DeleteObjectOutput:
112
+ ...
113
+
114
+ def get_object(self, input: GetObjectInput) -> GetObjectOutput:
115
+ ...
116
+
117
+ def put_object_from_buffer(self, input: PutObjectFromBufferInput) -> PutObjectOutput:
118
+ ...
119
+
120
+ def put_object_from_file(self, input: PutObjectFromFileInput) -> PutObjectOutput:
121
+ ...
122
+
123
+
124
+ class HeadObjectInput(object):
125
+ bucket: str
126
+ key: str
127
+ version_id: str
128
+
129
+ def __init__(self, bucket: str, key: str, version_id: str = ''):
130
+ ...
131
+
132
+
133
+ class HeadObjectOutput(object):
134
+ request_id: str
135
+ status_code: int
136
+ header: Dict[str, str]
137
+ content_length: int
138
+ etag: str
139
+ version_id: str
140
+ hash_crc64ecma: int
141
+
142
+
143
+ class DeleteObjectInput(object):
144
+ bucket: str
145
+ key: str
146
+ version_id: str
147
+
148
+ def __init__(self, bucket: str, key: str, version_id: str = ''):
149
+ ...
150
+
151
+
152
+ class DeleteObjectOutput(object):
153
+ request_id: str
154
+ status_code: int
155
+ header: Dict[str, str]
156
+ delete_marker: bool
157
+ version_id: str
158
+
159
+
160
+ class GetObjectInput(object):
161
+ bucket: str
162
+ key: str
163
+ version_id: str
164
+ range: str
165
+
166
+ def __init__(self, bucket: str, key: str, version_id: str = '', range: str = ''):
167
+ ...
168
+
169
+
170
+ class GetObjectOutput(object):
171
+ request_id: str
172
+ status_code: int
173
+ header: Dict[str, str]
174
+ content_length: int
175
+ etag: str
176
+ version_id: str
177
+ content_range: str
178
+ hash_crc64ecma: int
179
+
180
+ def read_all(self) -> bytes:
181
+ ...
182
+
183
+ def read(self) -> bytes:
184
+ ...
185
+
186
+
187
+ class PutObjectFromBufferInput(object):
188
+ bucket: str
189
+ key: str
190
+ content: bytes
191
+
192
+ def __init__(self, bucket: str, key: str, content: bytes):
193
+ ...
194
+
195
+
196
+ class PutObjectFromFileInput(object):
197
+ bucket: str
198
+ key: str
199
+ file_path: str
200
+
201
+ def __init__(self, bucket: str, key: str, file_path: str):
202
+ ...
203
+
204
+
205
+ class PutObjectOutput(object):
206
+ request_id: str
207
+ status_code: int
208
+ header: Dict[str, str]
209
+ etag: str
210
+ version_id: str
211
+ hash_crc64ecma: int
@@ -1,9 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tosnativeclient
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
7
+ Classifier: License :: OSI Approved :: Apache Software License
7
8
  Summary: python native client for tos
8
9
  Author: xiangshijian
9
10
  License: Apache-2.0
@@ -0,0 +1,6 @@
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,,
@@ -1,6 +0,0 @@
1
- tosnativeclient-1.0.0.dist-info/METADATA,sha256=dM-XZHvi4PmXyMLgWIXf7QfX_tJd7y-TwOugt-zEpxM,343
2
- tosnativeclient-1.0.0.dist-info/WHEEL,sha256=YLLGMgiebwxzWB63F0KVTBu1H1ad3TdbsHYfFKfk6fc,104
3
- tosnativeclient/__init__.py,sha256=l_NjXtwuBcfoPpOsu3demyI8BaT_F03ImpE6F3n65-U,217
4
- tosnativeclient/tosnativeclient.cpython-313-darwin.so,sha256=Lt02h7VPwZAwDvV1DRuXHGBTD1YvCDYaFxt02-Q5BCg,7963376
5
- tosnativeclient/tosnativeclient.pyi,sha256=AFU-tl7ZaDlf_DDEPEnSKKIHyQsqjY3yja5TShJpi3M,1877
6
- tosnativeclient-1.0.0.dist-info/RECORD,,