p115client 0.0.5.10.9__tar.gz → 0.0.5.11.1__tar.gz

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.
Files changed (25) hide show
  1. {p115client-0.0.5.10.9 → p115client-0.0.5.11.1}/PKG-INFO +2 -2
  2. {p115client-0.0.5.10.9 → p115client-0.0.5.11.1}/p115client/_upload.py +8 -8
  3. {p115client-0.0.5.10.9 → p115client-0.0.5.11.1}/p115client/client.py +963 -256
  4. {p115client-0.0.5.10.9 → p115client-0.0.5.11.1}/p115client/tool/attr.py +1 -1
  5. {p115client-0.0.5.10.9 → p115client-0.0.5.11.1}/p115client/tool/download.py +86 -69
  6. {p115client-0.0.5.10.9 → p115client-0.0.5.11.1}/p115client/tool/edit.py +3 -3
  7. {p115client-0.0.5.10.9 → p115client-0.0.5.11.1}/p115client/tool/export_dir.py +22 -23
  8. {p115client-0.0.5.10.9 → p115client-0.0.5.11.1}/p115client/tool/fs_files.py +4 -7
  9. {p115client-0.0.5.10.9 → p115client-0.0.5.11.1}/p115client/tool/history.py +5 -5
  10. {p115client-0.0.5.10.9 → p115client-0.0.5.11.1}/p115client/tool/iterdir.py +87 -88
  11. {p115client-0.0.5.10.9 → p115client-0.0.5.11.1}/p115client/tool/life.py +12 -12
  12. {p115client-0.0.5.10.9 → p115client-0.0.5.11.1}/p115client/tool/pool.py +5 -5
  13. {p115client-0.0.5.10.9 → p115client-0.0.5.11.1}/p115client/tool/upload.py +4 -4
  14. {p115client-0.0.5.10.9 → p115client-0.0.5.11.1}/p115client/tool/xys.py +10 -7
  15. {p115client-0.0.5.10.9 → p115client-0.0.5.11.1}/pyproject.toml +2 -2
  16. {p115client-0.0.5.10.9 → p115client-0.0.5.11.1}/LICENSE +0 -0
  17. {p115client-0.0.5.10.9 → p115client-0.0.5.11.1}/p115client/__init__.py +0 -0
  18. {p115client-0.0.5.10.9 → p115client-0.0.5.11.1}/p115client/const.py +0 -0
  19. {p115client-0.0.5.10.9 → p115client-0.0.5.11.1}/p115client/exception.py +0 -0
  20. {p115client-0.0.5.10.9 → p115client-0.0.5.11.1}/p115client/py.typed +0 -0
  21. {p115client-0.0.5.10.9 → p115client-0.0.5.11.1}/p115client/tool/__init__.py +0 -0
  22. {p115client-0.0.5.10.9 → p115client-0.0.5.11.1}/p115client/tool/request.py +0 -0
  23. {p115client-0.0.5.10.9 → p115client-0.0.5.11.1}/p115client/tool/util.py +0 -0
  24. {p115client-0.0.5.10.9 → p115client-0.0.5.11.1}/p115client/type.py +0 -0
  25. {p115client-0.0.5.10.9 → p115client-0.0.5.11.1}/readme.md +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: p115client
3
- Version: 0.0.5.10.9
3
+ Version: 0.0.5.11.1
4
4
  Summary: Python 115 webdisk client.
5
5
  Home-page: https://github.com/ChenyangGao/p115client
6
6
  License: MIT
@@ -40,7 +40,7 @@ Requires-Dist: python-filewrap (>=0.2.8)
40
40
  Requires-Dist: python-hashtools (>=0.0.3.3)
41
41
  Requires-Dist: python-http_request (>=0.0.6)
42
42
  Requires-Dist: python-httpfile (>=0.0.5.2)
43
- Requires-Dist: python-iterutils (>=0.1.11)
43
+ Requires-Dist: python-iterutils (>=0.2)
44
44
  Requires-Dist: python-property (>=0.0.3)
45
45
  Requires-Dist: python-startfile (>=0.0.2)
46
46
  Requires-Dist: python-undefined (>=0.0.3)
@@ -281,11 +281,11 @@ def oss_multipart_part_iter(
281
281
  **request_kwargs,
282
282
  )
283
283
  for el in etree.iterfind("Part"):
284
- yield Yield({sel.tag: maybe_integer(sel.text) for sel in el}, identity=True)
284
+ yield Yield({sel.tag: maybe_integer(sel.text) for sel in el}, may_await=False)
285
285
  if getattr(etree.find("IsTruncated"), "text") == "false":
286
286
  break
287
287
  params["part-number-marker"] = getattr(etree.find("NextPartNumberMarker"), "text")
288
- return run_gen_step_iter(gen_step, async_=async_)
288
+ return run_gen_step_iter(gen_step, simple=True, async_=async_)
289
289
 
290
290
 
291
291
  @overload
@@ -679,7 +679,7 @@ def oss_multipart_upload_part_iter(
679
679
  ))
680
680
  if part["Size"] < partsize:
681
681
  break
682
- return run_gen_step_iter(gen_step, async_=async_)
682
+ return run_gen_step_iter(gen_step, simple=True, async_=async_)
683
683
 
684
684
 
685
685
  @overload
@@ -846,7 +846,7 @@ def oss_multipart_upload(
846
846
  if part["Size"] != partsize:
847
847
  break
848
848
  add_part(part)
849
- yield async_request
849
+ yield async_request()
850
850
  else:
851
851
  for part in oss_multipart_part_iter(
852
852
  request,
@@ -885,14 +885,14 @@ def oss_multipart_upload(
885
885
  elif isinstance(reporthook, AsyncGenerator):
886
886
  close_reporthook = reporthook.aclose
887
887
  reporthook = reporthook.asend
888
- yield partial(reporthook, None)
888
+ yield reporthook(None)
889
889
  try:
890
890
  resume_data: MultipartResumeData = {
891
891
  "bucket": bucket, "object": object, "token": token, "callback": callback,
892
892
  "upload_id": upload_id, "partsize": partsize, "filesize": filesize, "parts": parts,
893
893
  }
894
894
  if collect_resume_data is not None:
895
- yield partial(collect_resume_data, resume_data)
895
+ yield collect_resume_data(resume_data)
896
896
  yield foreach(
897
897
  add_part,
898
898
  oss_multipart_upload_part_iter(
@@ -926,8 +926,8 @@ def oss_multipart_upload(
926
926
  raise MultipartUploadAbort(resume_data) from e
927
927
  finally:
928
928
  if close_reporthook is not None:
929
- yield close_reporthook
930
- return run_gen_step(gen_step, async_=async_)
929
+ yield close_reporthook()
930
+ return run_gen_step(gen_step, simple=True, async_=async_)
931
931
 
932
932
 
933
933
  # class MultipartUploader: