p115client 0.0.5.10.3__tar.gz → 0.0.5.10.5__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.3 → p115client-0.0.5.10.5}/PKG-INFO +1 -1
  2. {p115client-0.0.5.10.3 → p115client-0.0.5.10.5}/p115client/client.py +23 -3
  3. {p115client-0.0.5.10.3 → p115client-0.0.5.10.5}/p115client/tool/iterdir.py +563 -315
  4. {p115client-0.0.5.10.3 → p115client-0.0.5.10.5}/pyproject.toml +1 -1
  5. {p115client-0.0.5.10.3 → p115client-0.0.5.10.5}/LICENSE +0 -0
  6. {p115client-0.0.5.10.3 → p115client-0.0.5.10.5}/p115client/__init__.py +0 -0
  7. {p115client-0.0.5.10.3 → p115client-0.0.5.10.5}/p115client/_upload.py +0 -0
  8. {p115client-0.0.5.10.3 → p115client-0.0.5.10.5}/p115client/const.py +0 -0
  9. {p115client-0.0.5.10.3 → p115client-0.0.5.10.5}/p115client/exception.py +0 -0
  10. {p115client-0.0.5.10.3 → p115client-0.0.5.10.5}/p115client/py.typed +0 -0
  11. {p115client-0.0.5.10.3 → p115client-0.0.5.10.5}/p115client/tool/__init__.py +0 -0
  12. {p115client-0.0.5.10.3 → p115client-0.0.5.10.5}/p115client/tool/attr.py +0 -0
  13. {p115client-0.0.5.10.3 → p115client-0.0.5.10.5}/p115client/tool/download.py +0 -0
  14. {p115client-0.0.5.10.3 → p115client-0.0.5.10.5}/p115client/tool/edit.py +0 -0
  15. {p115client-0.0.5.10.3 → p115client-0.0.5.10.5}/p115client/tool/export_dir.py +0 -0
  16. {p115client-0.0.5.10.3 → p115client-0.0.5.10.5}/p115client/tool/fs_files.py +0 -0
  17. {p115client-0.0.5.10.3 → p115client-0.0.5.10.5}/p115client/tool/history.py +0 -0
  18. {p115client-0.0.5.10.3 → p115client-0.0.5.10.5}/p115client/tool/life.py +0 -0
  19. {p115client-0.0.5.10.3 → p115client-0.0.5.10.5}/p115client/tool/pool.py +0 -0
  20. {p115client-0.0.5.10.3 → p115client-0.0.5.10.5}/p115client/tool/request.py +0 -0
  21. {p115client-0.0.5.10.3 → p115client-0.0.5.10.5}/p115client/tool/upload.py +0 -0
  22. {p115client-0.0.5.10.3 → p115client-0.0.5.10.5}/p115client/tool/util.py +0 -0
  23. {p115client-0.0.5.10.3 → p115client-0.0.5.10.5}/p115client/tool/xys.py +0 -0
  24. {p115client-0.0.5.10.3 → p115client-0.0.5.10.5}/p115client/type.py +0 -0
  25. {p115client-0.0.5.10.3 → p115client-0.0.5.10.5}/readme.md +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: p115client
3
- Version: 0.0.5.10.3
3
+ Version: 0.0.5.10.5
4
4
  Summary: Python 115 webdisk client.
5
5
  Home-page: https://github.com/ChenyangGao/p115client
6
6
  License: MIT
@@ -1364,6 +1364,7 @@ class ClientRequestMixin:
1364
1364
  POST https://qrcodeapi.115.com/open/deviceCodeToToken
1365
1365
 
1366
1366
  .. admonition:: Reference
1367
+
1367
1368
  https://www.yuque.com/115yun/open/shtpzfhewv5nag11#QCCVQ
1368
1369
 
1369
1370
  :payload:
@@ -1415,6 +1416,7 @@ class ClientRequestMixin:
1415
1416
  POST https://qrcodeapi.115.com/open/refreshToken
1416
1417
 
1417
1418
  .. admonition:: Reference
1419
+
1418
1420
  https://www.yuque.com/115yun/open/shtpzfhewv5nag11#ve54x
1419
1421
 
1420
1422
  :payload:
@@ -1567,6 +1569,7 @@ class ClientRequestMixin:
1567
1569
  GET https://qrcodeapi.115.com/get/status/
1568
1570
 
1569
1571
  .. admonition:: Reference
1572
+
1570
1573
  https://www.yuque.com/115yun/open/shtpzfhewv5nag11#lAsp2
1571
1574
 
1572
1575
  :payload:
@@ -1653,6 +1656,7 @@ class ClientRequestMixin:
1653
1656
  POST https://qrcodeapi.115.com/open/authDeviceCode
1654
1657
 
1655
1658
  .. admonition:: Reference
1659
+
1656
1660
  https://www.yuque.com/115yun/open/shtpzfhewv5nag11#WzRhM
1657
1661
 
1658
1662
  .. note::
@@ -2464,6 +2468,7 @@ class P115OpenClient(ClientRequestMixin):
2464
2468
  """115 的客户端对象
2465
2469
 
2466
2470
  .. admonition:: Reference
2471
+
2467
2472
  https://www.yuque.com/115yun/open
2468
2473
 
2469
2474
  :param app_id_or_refresh_token: 申请到的 AppID 或 refresh_token
@@ -2747,6 +2752,7 @@ class P115OpenClient(ClientRequestMixin):
2747
2752
  相当于 `P115Client.download_url_app(app="chrome")`
2748
2753
 
2749
2754
  .. admonition:: Reference
2755
+
2750
2756
  https://www.yuque.com/115yun/open/um8whr91bxb5997o
2751
2757
 
2752
2758
  :payload:
@@ -2810,6 +2816,7 @@ class P115OpenClient(ClientRequestMixin):
2810
2816
  POST https://proapi.115.com/open/ufile/copy
2811
2817
 
2812
2818
  .. admonition:: Reference
2819
+
2813
2820
  https://www.yuque.com/115yun/open/lvas49ar94n47bbk
2814
2821
 
2815
2822
  :payload:
@@ -2866,6 +2873,7 @@ class P115OpenClient(ClientRequestMixin):
2866
2873
  POST https://proapi.115.com/open/ufile/delete
2867
2874
 
2868
2875
  .. admonition:: Reference
2876
+
2869
2877
  https://www.yuque.com/115yun/open/kt04fu8vcchd2fnb
2870
2878
 
2871
2879
  :payload:
@@ -2909,7 +2917,7 @@ class P115OpenClient(ClientRequestMixin):
2909
2917
  async_: Literal[False, True] = False,
2910
2918
  **request_kwargs,
2911
2919
  ) -> dict | Coroutine[Any, Any, dict]:
2912
- """更新文件或目录
2920
+ """获取目录中的文件列表和基本信息
2913
2921
 
2914
2922
  GET https://proapi.115.com/open/ufile/files
2915
2923
 
@@ -2917,6 +2925,7 @@ class P115OpenClient(ClientRequestMixin):
2917
2925
  相当于 `P115Client.fs_files_app`
2918
2926
 
2919
2927
  .. admonition:: Reference
2928
+
2920
2929
  https://www.yuque.com/115yun/open/kz9ft9a7s57ep868
2921
2930
 
2922
2931
  :payload:
@@ -3036,6 +3045,7 @@ class P115OpenClient(ClientRequestMixin):
3036
3045
  相当于 `P115Client.fs_category_get_app`
3037
3046
 
3038
3047
  .. admonition:: Reference
3048
+
3039
3049
  https://www.yuque.com/115yun/open/rl8zrhe2nag21dfw
3040
3050
 
3041
3051
  :payload:
@@ -3085,6 +3095,7 @@ class P115OpenClient(ClientRequestMixin):
3085
3095
  POST https://proapi.115.com/open/folder/add
3086
3096
 
3087
3097
  .. admonition:: Reference
3098
+
3088
3099
  https://www.yuque.com/115yun/open/qur839kyx9cgxpxi
3089
3100
 
3090
3101
  :payload:
@@ -3137,6 +3148,7 @@ class P115OpenClient(ClientRequestMixin):
3137
3148
  POST https://proapi.115.com/open/ufile/move
3138
3149
 
3139
3150
  .. admonition:: Reference
3151
+
3140
3152
  https://www.yuque.com/115yun/open/vc6fhi2mrkenmav2
3141
3153
 
3142
3154
  :payload:
@@ -3195,6 +3207,7 @@ class P115OpenClient(ClientRequestMixin):
3195
3207
  相当于 `P115Client.fs_search_app2`
3196
3208
 
3197
3209
  .. admonition:: Reference
3210
+
3198
3211
  https://www.yuque.com/115yun/open/ft2yelxzopusus38
3199
3212
 
3200
3213
  :payload:
@@ -3350,6 +3363,7 @@ class P115OpenClient(ClientRequestMixin):
3350
3363
  即使文件已经被删除,也可以操作成功
3351
3364
 
3352
3365
  .. admonition:: Reference
3366
+
3353
3367
  https://www.yuque.com/115yun/open/gyrpw5a0zc4sengm
3354
3368
 
3355
3369
  :payload:
@@ -3448,6 +3462,7 @@ class P115OpenClient(ClientRequestMixin):
3448
3462
  GET https://proapi.115.com/open/rb/list
3449
3463
 
3450
3464
  .. admonition:: Reference
3465
+
3451
3466
  https://www.yuque.com/115yun/open/bg7l4328t98fwgex
3452
3467
 
3453
3468
  :payload:
@@ -3497,6 +3512,7 @@ class P115OpenClient(ClientRequestMixin):
3497
3512
  POST https://proapi.115.com/open/rb/revert
3498
3513
 
3499
3514
  .. admonition:: Reference
3515
+
3500
3516
  https://www.yuque.com/115yun/open/gq293z80a3kmxbaq
3501
3517
 
3502
3518
  :payload:
@@ -3542,6 +3558,7 @@ class P115OpenClient(ClientRequestMixin):
3542
3558
  GET https://proapi.115.com/open/upload/get_token
3543
3559
 
3544
3560
  .. admonition:: Reference
3561
+
3545
3562
  https://www.yuque.com/115yun/open/kzacvzl0g7aiyyn4
3546
3563
  """
3547
3564
  api = complete_proapi("/open/upload/get_token", base_url)
@@ -3583,6 +3600,7 @@ class P115OpenClient(ClientRequestMixin):
3583
3600
  POST https://proapi.115.com/open/upload/init
3584
3601
 
3585
3602
  .. admonition:: Reference
3603
+
3586
3604
  https://www.yuque.com/115yun/open/ul4mrauo5i2uza0q
3587
3605
 
3588
3606
  :payload:
@@ -3641,6 +3659,7 @@ class P115OpenClient(ClientRequestMixin):
3641
3659
  POST https://proapi.115.com/open/upload/resume
3642
3660
 
3643
3661
  .. admonition:: Reference
3662
+
3644
3663
  https://www.yuque.com/115yun/open/tzvi9sbcg59msddz
3645
3664
 
3646
3665
  :payload:
@@ -4131,6 +4150,7 @@ class P115OpenClient(ClientRequestMixin):
4131
4150
  GET https://proapi.115.com/open/user/info
4132
4151
 
4133
4152
  .. admonition:: Reference
4153
+
4134
4154
  https://www.yuque.com/115yun/open/ot1litggzxa1czww
4135
4155
  """
4136
4156
  api = complete_proapi("/open/user/info", base_url)
@@ -9057,9 +9077,9 @@ class P115Client(P115OpenClient):
9057
9077
  4. show_dir=0 且 cur=0(或不指定 cur)
9058
9078
 
9059
9079
  .. hint::
9060
- 如果仅指定 natsort=1&show_dir=1,以及一个可选的 cid,则当文件数不大于 1150 时可仅统计某个目录内的文件或目录总数,而不返回具体的文件信息,超过那个数值时,则会返回完整的文件列表
9080
+ 如果不指定或者指定的 cid 不存在,则会视为 cid=0 进行处理
9061
9081
 
9062
- 但如果不指定或者指定的 cid 不存在,则会视为 cid=0 进行处理
9082
+ 当指定 natsort=1 时,如果里面的数量较少时,可仅统计某个目录内的文件或目录总数,而不返回具体的文件信息
9063
9083
 
9064
9084
  .. hint::
9065
9085
  当一个 cookies 被另一个更新的登录所失效,并不意味着这个 cookies 就直接不可用了。