tosnativeclient 1.0.2__cp313-cp313-macosx_11_0_arm64.whl → 1.0.5__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.

@@ -31,6 +31,8 @@ class ListStream(object):
31
31
  prefix: str
32
32
  delimiter: str
33
33
  max_keys: int
34
+ continuation_token: str
35
+ start_after: str
34
36
 
35
37
  def __iter__(self) -> ListStream: ...
36
38
 
@@ -38,6 +40,10 @@ class ListStream(object):
38
40
 
39
41
  def close(self) -> None: ...
40
42
 
43
+ def current_prefix(self) -> Optional[str]: ...
44
+
45
+ def current_continuation_token(self) -> Optional[str]: ...
46
+
41
47
 
42
48
  class ReadStream(object):
43
49
  bucket: str
@@ -45,7 +51,7 @@ class ReadStream(object):
45
51
  size: int
46
52
  etag: str
47
53
 
48
- def read(self, offset: int, length: int) -> bytes:
54
+ def read(self, offset: int, length: int) -> Optional[bytes]:
49
55
  ...
50
56
 
51
57
  def close(self) -> None:
@@ -72,13 +78,18 @@ class TosClient(object):
72
78
  part_size: int
73
79
  max_retry_count: int
74
80
  max_prefetch_tasks: int
81
+ directives: str
82
+ directory: str
83
+ file_name_prefix: str
84
+ shared_prefetch_tasks: int
75
85
 
76
86
  def __init__(self, region: str, endpoint: str, ak: str = '', sk: str = '', part_size: int = 8388608,
77
87
  max_retry_count: int = 3, max_prefetch_tasks: int = 3, directives: str = '', directory: str = '',
78
88
  file_name_prefix: str = '', shared_prefetch_tasks: int = 20):
79
89
  ...
80
90
 
81
- def list_objects(self, bucket: str, prefix: str = '', max_keys: int = 1000, delimiter: str = '') -> ListStream:
91
+ def list_objects(self, bucket: str, prefix: str = '', max_keys: int = 1000, delimiter: str = '',
92
+ continuation_token: str = '', start_after: str = '') -> ListStream:
82
93
  ...
83
94
 
84
95
  def head_object(self, bucket: str, key: str) -> TosObject:
@@ -147,10 +158,10 @@ class GetObjectOutput(object):
147
158
  content_range: str
148
159
  hash_crc64ecma: int
149
160
 
150
- def read_all(self) -> bytes:
161
+ def read_all(self) -> Optional[bytes]:
151
162
  ...
152
163
 
153
- def read(self) -> bytes:
164
+ def read(self) -> Optional[bytes]:
154
165
  ...
155
166
 
156
167
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tosnativeclient
3
- Version: 1.0.2
3
+ Version: 1.0.5
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -0,0 +1,6 @@
1
+ tosnativeclient-1.0.5.dist-info/METADATA,sha256=_Lp2qiMFFVKOCzgsMVr7a057yWh0bNind_6tIK5GR-w,406
2
+ tosnativeclient-1.0.5.dist-info/WHEEL,sha256=YLLGMgiebwxzWB63F0KVTBu1H1ad3TdbsHYfFKfk6fc,104
3
+ tosnativeclient/__init__.py,sha256=HMlQnJ7kkLhK35BeX3i1ClGuKnd9TcUQ_jHCpR67kmc,748
4
+ tosnativeclient/tosnativeclient.cpython-313-darwin.so,sha256=ZbIPf8970O2kZmAiYdAsI3hoOVtCBsNaSuSUYIWJaJQ,8492928
5
+ tosnativeclient/tosnativeclient.pyi,sha256=NSvjrhQao5FxcqBlM6nl7rdRLYL5O1t3Ffh-9C8ZcDA,4775
6
+ tosnativeclient-1.0.5.dist-info/RECORD,,
@@ -1,6 +0,0 @@
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,,