cobweb-launcher 1.1.21__py3-none-any.whl → 1.1.22__py3-none-any.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 cobweb-launcher might be problematic. Click here for more details.

cobweb/utils/oss.py CHANGED
@@ -1,6 +1,7 @@
1
+ from typing import List
1
2
  from cobweb import setting
2
3
  from requests import Response
3
- from oss2 import Auth, Bucket, models
4
+ from oss2 import Auth, Bucket, models, PartIterator
4
5
  from cobweb.exceptions import oss_db_exception
5
6
  from cobweb.base.decorators import decorator_oss_db
6
7
 
@@ -54,6 +55,10 @@ class OssUtil:
54
55
  """分片上传"""
55
56
  return self._client.upload_part(key, upload_id, position, data)
56
57
 
58
+ def list_part(self, key, upload_id): # -> List[models.ListPartsResult]:
59
+ """获取分片列表"""
60
+ return [part_info for part_info in PartIterator(self._client, key, upload_id)]
61
+
57
62
  @decorator_oss_db(exception=oss_db_exception.OssDBMergeError)
58
63
  def merge(self, key, upload_id, parts=None) -> models.PutObjectResult:
59
64
  """合并分片"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cobweb-launcher
3
- Version: 1.1.21
3
+ Version: 1.1.22
4
4
  Summary: spider_hole
5
5
  Home-page: https://github.com/Juannie-PP/cobweb
6
6
  Author: Juannie-PP
@@ -23,10 +23,10 @@ cobweb/pipelines/__init__.py,sha256=xanY-Z1d7zRR5JhCdW2htzrAywnKBkigiaUlTFa6of0,
23
23
  cobweb/pipelines/base_pipeline.py,sha256=fYnWf79GmhufXpcnMa3te18SbmnVeYLwxfyo-zLd9CY,1577
24
24
  cobweb/pipelines/loghub_pipeline.py,sha256=cjPO6w6UJ0jNw2fVvdX0BCdlm58T7dmYXlxzXOBpvfY,1027
25
25
  cobweb/utils/__init__.py,sha256=JTE4sBfHnKHhD6w9Auk0MIT7O9BMOamCeryhlHNx3Zg,47
26
- cobweb/utils/oss.py,sha256=qAl05ybL2Jp6KFjHDHVMfmeBHQmDKPtZleHjHAY7LZc,3277
26
+ cobweb/utils/oss.py,sha256=gyt8-UB07tVphZLQXMOf-JTJwU-mWq8KZkOXKkAf3uk,3513
27
27
  cobweb/utils/tools.py,sha256=bVd3iRGBvwhohQAH7AXTTjbmQ54Z35K0O-fatEyhePU,1249
28
- cobweb_launcher-1.1.21.dist-info/LICENSE,sha256=z1rxSIGOyzcSb3orZxFPxzx-0C1vTocmswqBNxpKfEk,1063
29
- cobweb_launcher-1.1.21.dist-info/METADATA,sha256=jPQSJUuw_07x61hjH52AhxralQQjb8yDVnR0ajtccmU,1246
30
- cobweb_launcher-1.1.21.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
31
- cobweb_launcher-1.1.21.dist-info/top_level.txt,sha256=4GETBGNsKqiCUezmT-mJn7tjhcDlu7nLIV5gGgHBW4I,7
32
- cobweb_launcher-1.1.21.dist-info/RECORD,,
28
+ cobweb_launcher-1.1.22.dist-info/LICENSE,sha256=z1rxSIGOyzcSb3orZxFPxzx-0C1vTocmswqBNxpKfEk,1063
29
+ cobweb_launcher-1.1.22.dist-info/METADATA,sha256=DgXNKTENKE-xQxnJmfGA3xKwVIOjw8CAkK2Farvx3RA,1246
30
+ cobweb_launcher-1.1.22.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
31
+ cobweb_launcher-1.1.22.dist-info/top_level.txt,sha256=4GETBGNsKqiCUezmT-mJn7tjhcDlu7nLIV5gGgHBW4I,7
32
+ cobweb_launcher-1.1.22.dist-info/RECORD,,