p115client 0.0.5.10.8__py3-none-any.whl → 0.0.5.11__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.
p115client/tool/upload.py CHANGED
@@ -418,12 +418,12 @@ def iter_115_to_115_resume(
418
418
  if async_:
419
419
  return YieldFrom(
420
420
  taskgroup_map(upload, from_files, arg_func=get_pid, max_workers=max_workers),
421
- identity=True,
421
+ may_await=False,
422
422
  )
423
423
  else:
424
424
  return YieldFrom(
425
425
  threadpool_map(upload, from_files, arg_func=get_pid, max_workers=max_workers),
426
- identity=True,
426
+ may_await=False,
427
427
  )
428
- return run_gen_step_iter(gen_step, async_=async_)
428
+ return run_gen_step_iter(gen_step, simple=True, async_=async_)
429
429
 
p115client/tool/xys.py CHANGED
@@ -59,7 +59,7 @@ def wish_info(
59
59
  )
60
60
  check_response(resp)
61
61
  return resp["data"]
62
- return run_gen_step(gen_step, async_=async_)
62
+ return run_gen_step(gen_step, simple=True, async_=async_)
63
63
 
64
64
 
65
65
  @overload
@@ -110,7 +110,7 @@ def wish_make(
110
110
  )
111
111
  check_response(resp)
112
112
  return P115StrID(resp["data"]["xys_id"], resp["data"])
113
- return run_gen_step(gen_step, async_=async_)
113
+ return run_gen_step(gen_step, simple=True, async_=async_)
114
114
 
115
115
 
116
116
  @overload
@@ -146,6 +146,9 @@ def wish_answer(
146
146
  ) -> P115StrID | Coroutine[Any, Any, P115StrID]:
147
147
  """许愿树活动:创建助愿(助愿创建后需要等审核)
148
148
 
149
+ .. note::
150
+ 如果从未调用过 `wish_info(client, wish_id)`,请先调用,否则会报参数错误
151
+
149
152
  :param client: 115 客户端或 cookies
150
153
  :param wish_id: 许愿 id
151
154
  :param content: 助愿内容
@@ -167,7 +170,7 @@ def wish_answer(
167
170
  )
168
171
  check_response(resp)
169
172
  return P115StrID(resp["data"]["aid_id"], resp["data"])
170
- return run_gen_step(gen_step, async_=async_)
173
+ return run_gen_step(gen_step, simple=True, async_=async_)
171
174
 
172
175
 
173
176
  @overload
@@ -323,11 +326,11 @@ def wish_iter(
323
326
  )
324
327
  check_response(resp)
325
328
  ls = resp["data"]["list"]
326
- yield YieldFrom(ls, identity=True)
329
+ yield YieldFrom(ls, may_await=False)
327
330
  if not ls:
328
331
  break
329
332
  payload["page"] += 1
330
- return run_gen_step_iter(gen_step, async_=async_)
333
+ return run_gen_step_iter(gen_step, simple=True, async_=async_)
331
334
 
332
335
 
333
336
  @overload
@@ -382,11 +385,11 @@ def wish_aid_iter(
382
385
  )
383
386
  check_response(resp)
384
387
  ls = resp["data"]["list"]
385
- yield YieldFrom(ls, identity=True)
388
+ yield YieldFrom(ls, may_await=False)
386
389
  if not ls:
387
390
  break
388
391
  payload["page"] += 1
389
- return run_gen_step_iter(gen_step, async_=async_)
392
+ return run_gen_step_iter(gen_step, simple=True, async_=async_)
390
393
 
391
394
 
392
395
  # TODO: 再实现一个漂流瓶
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: p115client
3
- Version: 0.0.5.10.8
3
+ Version: 0.0.5.11
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)
@@ -0,0 +1,26 @@
1
+ LICENSE,sha256=o5242_N2TgDsWwFhPn7yr8YJNF7XsJM5NxUMtcT97bc,1100
2
+ p115client/__init__.py,sha256=1mx7njuAlqcuEWONTjSiiGnXyyNyqOcJyNX1FMHqQ-4,214
3
+ p115client/_upload.py,sha256=eOBCQCiRApZucMglBLFGD8n6LKW1Q36Ua00G-x4lHQA,30758
4
+ p115client/client.py,sha256=EyWRveHMzhPFnndMTTDCEwWnelG4mNv1RSHNAnqVEvU,768952
5
+ p115client/const.py,sha256=Ks8eYjHYApxlkelVCbSJlpmlCYtbk8fX80jETV72BTY,7754
6
+ p115client/exception.py,sha256=O4SlfjbtI9GPjzbzJrFaFUZENJFz2qA3VDEKZfdhHbc,3590
7
+ p115client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ p115client/tool/__init__.py,sha256=NjT9rroMhLwKI7UlpSCksSsnB3GexXzxvhfunNWzjY0,386
9
+ p115client/tool/attr.py,sha256=MoLSDaa53nlvkDQOgX1Nq7CaCeO3I4tTkR9oq62dBGI,2896
10
+ p115client/tool/download.py,sha256=5P6Zvy8bO3DNj08Wrn7n0Ckhqj_f9gSVjfMAUhl9BPI,61646
11
+ p115client/tool/edit.py,sha256=F8FhtyBjXRQ7TroNTM8SMG3s9TmCRoDsHId2fGalxW4,17756
12
+ p115client/tool/export_dir.py,sha256=arLsge0C2tEIX3zx7zbgbsj8cplx6uFvg1GL1QKD080,24595
13
+ p115client/tool/fs_files.py,sha256=uo_2x8Nq1KTagNl2YdM8jRzp97pg513OVo280BK74xU,15645
14
+ p115client/tool/history.py,sha256=NhEx_Zc92rz8ois2OQ4b7lmGkjrACd4Of_nqQlZhEaM,7488
15
+ p115client/tool/iterdir.py,sha256=myqQea5l033fJxuoMWqNxP84qALWI2ZXfSlYDNf4dW8,200172
16
+ p115client/tool/life.py,sha256=bK2xZsgDfxTp1hWbxXZ6pWrnC1HmaWZv1c5q2s3CbaI,17387
17
+ p115client/tool/pool.py,sha256=EO_dmtcGBWCnbWqgoaGMsJGhIaCUQ-rdc5qC-oaseq8,14018
18
+ p115client/tool/request.py,sha256=rjXuQwRganE5Z-4rfgnyPFjE4jzdQSLdIs9s0cIDshU,7043
19
+ p115client/tool/upload.py,sha256=dbvYTD8TD_3iEGChUdchOXqnV0VLHX7TJlb2zBHduNM,15932
20
+ p115client/tool/util.py,sha256=0o9TrXdoPcljgxDDRdxRon41bq1OjuUYCWsR0XLfmPo,3357
21
+ p115client/tool/xys.py,sha256=NVwXXB1ZvFKQKcar1kQdDzlUN7xilGheO_eEeoMxjMw,10325
22
+ p115client/type.py,sha256=7kOp98uLaYqcTTCgCrb3DRcl8ukMpn7ibsnVvtw2nG8,6250
23
+ p115client-0.0.5.11.dist-info/LICENSE,sha256=o5242_N2TgDsWwFhPn7yr8YJNF7XsJM5NxUMtcT97bc,1100
24
+ p115client-0.0.5.11.dist-info/METADATA,sha256=9HPewST9HgcH9KvyLMa7lDSh-8YJE8KsVcDUeTt-sBo,8236
25
+ p115client-0.0.5.11.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
26
+ p115client-0.0.5.11.dist-info/RECORD,,
@@ -1,26 +0,0 @@
1
- LICENSE,sha256=o5242_N2TgDsWwFhPn7yr8YJNF7XsJM5NxUMtcT97bc,1100
2
- p115client/__init__.py,sha256=1mx7njuAlqcuEWONTjSiiGnXyyNyqOcJyNX1FMHqQ-4,214
3
- p115client/_upload.py,sha256=DOckFLU_P7Fl0BNu_0-2od6pPsCnzroYY6zZE5_EMnM,30735
4
- p115client/client.py,sha256=PPKoMONdbGQ7FqH2a00QBNwAEcec6N4D1J6trWfvTdw,740587
5
- p115client/const.py,sha256=Ks8eYjHYApxlkelVCbSJlpmlCYtbk8fX80jETV72BTY,7754
6
- p115client/exception.py,sha256=O4SlfjbtI9GPjzbzJrFaFUZENJFz2qA3VDEKZfdhHbc,3590
7
- p115client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- p115client/tool/__init__.py,sha256=NjT9rroMhLwKI7UlpSCksSsnB3GexXzxvhfunNWzjY0,386
9
- p115client/tool/attr.py,sha256=9xN99lgFxE-48nqiIOSuuo3R0D9lcvuJvcRbJzPKKiw,2883
10
- p115client/tool/download.py,sha256=3zoxkLPf4Jya-wYowZJmZR65sR3GWNWNmnevKrrgvQY,60509
11
- p115client/tool/edit.py,sha256=eRlR1UZMpfGnoetpqSAAx5bPBOEiSlx7HPkpOSs5agk,17739
12
- p115client/tool/export_dir.py,sha256=iMnKtnESi8HKvW9WhIvOdEoMXSBpAnhFlGeyKXHpQbE,24545
13
- p115client/tool/fs_files.py,sha256=jY57L4nhB9t-2kT_1j3mdiwOdPZKsimN3eN5mUJAqMI,15745
14
- p115client/tool/history.py,sha256=2S26BH7uBNfVHlbYFNy-aNOLMcM-HrlR7TLHAZacUJI,7458
15
- p115client/tool/iterdir.py,sha256=IJdhOvccPHpkEQkBwuX5NA5jPEbqZ67VaBuIEP1XMrM,197491
16
- p115client/tool/life.py,sha256=X6Bp0GYKwnZeWlttE2DIVw5iOCXM5QzIkM6Zuj24c5Y,17323
17
- p115client/tool/pool.py,sha256=K-ALC-JEwik3DYCr5Eckok15oQnHRe6yznKIuJ9jyyM,13953
18
- p115client/tool/request.py,sha256=rjXuQwRganE5Z-4rfgnyPFjE4jzdQSLdIs9s0cIDshU,7043
19
- p115client/tool/upload.py,sha256=qK1OQYxP-Faq2eMDhc5sBXJiSr8m8EZ_gb0O_iA2TrI,15915
20
- p115client/tool/util.py,sha256=0o9TrXdoPcljgxDDRdxRon41bq1OjuUYCWsR0XLfmPo,3357
21
- p115client/tool/xys.py,sha256=WMTisCyN4eYyv4A14yYOpjud2mBhQvBcUHOp6pJUQeA,10140
22
- p115client/type.py,sha256=7kOp98uLaYqcTTCgCrb3DRcl8ukMpn7ibsnVvtw2nG8,6250
23
- p115client-0.0.5.10.8.dist-info/LICENSE,sha256=o5242_N2TgDsWwFhPn7yr8YJNF7XsJM5NxUMtcT97bc,1100
24
- p115client-0.0.5.10.8.dist-info/METADATA,sha256=o0xNuA8shlBXypTl1jBLay2nsh01W_I-zv5HhBhPdpo,8241
25
- p115client-0.0.5.10.8.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
26
- p115client-0.0.5.10.8.dist-info/RECORD,,