p115client 0.0.5.11.3__py3-none-any.whl → 0.0.5.11.5__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/client.py +3 -3
- p115client/tool/edit.py +1 -1
- {p115client-0.0.5.11.3.dist-info → p115client-0.0.5.11.5.dist-info}/METADATA +2 -2
- {p115client-0.0.5.11.3.dist-info → p115client-0.0.5.11.5.dist-info}/RECORD +6 -6
- {p115client-0.0.5.11.3.dist-info → p115client-0.0.5.11.5.dist-info}/LICENSE +0 -0
- {p115client-0.0.5.11.3.dist-info → p115client-0.0.5.11.5.dist-info}/WHEEL +0 -0
p115client/client.py
CHANGED
@@ -6495,7 +6495,7 @@ class P115Client(P115OpenClient):
|
|
6495
6495
|
lock = self.request_lock
|
6496
6496
|
if is_open_api:
|
6497
6497
|
if "authorization" not in headers:
|
6498
|
-
yield lock.acquire
|
6498
|
+
yield lock.acquire()
|
6499
6499
|
try:
|
6500
6500
|
yield self.login_another_open(
|
6501
6501
|
async_=async_, # type: ignore
|
@@ -6534,7 +6534,7 @@ class P115Client(P115OpenClient):
|
|
6534
6534
|
cert_headers = yield fetch_cert_headers()
|
6535
6535
|
headers.update(cert_headers)
|
6536
6536
|
elif is_open_api:
|
6537
|
-
yield lock.acquire
|
6537
|
+
yield lock.acquire()
|
6538
6538
|
try:
|
6539
6539
|
if cert != self.access_token:
|
6540
6540
|
continue
|
@@ -6550,7 +6550,7 @@ class P115Client(P115OpenClient):
|
|
6550
6550
|
finally:
|
6551
6551
|
lock.release()
|
6552
6552
|
else:
|
6553
|
-
yield lock.acquire
|
6553
|
+
yield lock.acquire()
|
6554
6554
|
try:
|
6555
6555
|
cookies_new: str = self.cookies_str
|
6556
6556
|
if cookies_equal(cert, cookies_new):
|
p115client/tool/edit.py
CHANGED
@@ -74,7 +74,7 @@ def update_abstract(
|
|
74
74
|
if max_workers is None or max_workers <= 0:
|
75
75
|
max_workers = 20 if async_ else None
|
76
76
|
def gen_step():
|
77
|
-
setter = getattr(client, method)
|
77
|
+
setter = partial(getattr(client, method), async_=async_, **request_kwargs)
|
78
78
|
def call(batch, /):
|
79
79
|
return check_response(setter(batch, value))
|
80
80
|
if max_workers == 1:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: p115client
|
3
|
-
Version: 0.0.5.11.
|
3
|
+
Version: 0.0.5.11.5
|
4
4
|
Summary: Python 115 webdisk client.
|
5
5
|
Home-page: https://github.com/ChenyangGao/p115client
|
6
6
|
License: MIT
|
@@ -33,7 +33,7 @@ Requires-Dist: posixpatht (>=0.0.3)
|
|
33
33
|
Requires-Dist: python-argtools (>=0.0.1)
|
34
34
|
Requires-Dist: python-asynctools (>=0.1.2)
|
35
35
|
Requires-Dist: python-concurrenttools (>=0.0.8.2)
|
36
|
-
Requires-Dist: python-cookietools (>=0.0.2.
|
36
|
+
Requires-Dist: python-cookietools (>=0.0.2.2)
|
37
37
|
Requires-Dist: python-dictattr (>=0.0.4)
|
38
38
|
Requires-Dist: python-encode_uri (>=0.0.1)
|
39
39
|
Requires-Dist: python-filewrap (>=0.2.8)
|
@@ -1,14 +1,14 @@
|
|
1
1
|
LICENSE,sha256=o5242_N2TgDsWwFhPn7yr8YJNF7XsJM5NxUMtcT97bc,1100
|
2
2
|
p115client/__init__.py,sha256=1mx7njuAlqcuEWONTjSiiGnXyyNyqOcJyNX1FMHqQ-4,214
|
3
3
|
p115client/_upload.py,sha256=RTYpM_EDFuI3O7yf08f13NdeG0iD03o_V4H6Je6Nsr8,30754
|
4
|
-
p115client/client.py,sha256=
|
4
|
+
p115client/client.py,sha256=MoMylxmwDAWeJ-y06mCaKRVR0NjgUD24I_2_azJmH5k,770974
|
5
5
|
p115client/const.py,sha256=Ks8eYjHYApxlkelVCbSJlpmlCYtbk8fX80jETV72BTY,7754
|
6
6
|
p115client/exception.py,sha256=O4SlfjbtI9GPjzbzJrFaFUZENJFz2qA3VDEKZfdhHbc,3590
|
7
7
|
p115client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
8
|
p115client/tool/__init__.py,sha256=NjT9rroMhLwKI7UlpSCksSsnB3GexXzxvhfunNWzjY0,386
|
9
9
|
p115client/tool/attr.py,sha256=rSnmVXhIqkUJ7NmwTo0LR76ZC2bOh1qaZkQok10Pzt8,2899
|
10
10
|
p115client/tool/download.py,sha256=-iq2JOolc4uba00wsp-Z_I03ZTFgqM4UKrfHAWpH2QA,61368
|
11
|
-
p115client/tool/edit.py,sha256=
|
11
|
+
p115client/tool/edit.py,sha256=kRz-Ee7KuNNlHhcVi4uHdh9DSfF1ZxUREIhK9x4hNIE,17771
|
12
12
|
p115client/tool/export_dir.py,sha256=1r2qDuYIirtDkCBQfYXh6lbm06IStRpiom-ZjtIYdbo,24502
|
13
13
|
p115client/tool/fs_files.py,sha256=XTG12a_MVwYI4p1hs-xMol-AQsa8C9pWFt0BUzlQCws,15634
|
14
14
|
p115client/tool/history.py,sha256=qquCiiOIRpxOqmyXbmdwS_qpfPkduJilM6AGuOufrYU,7462
|
@@ -20,7 +20,7 @@ p115client/tool/upload.py,sha256=i6laoeG7GdNO7hvCDVBy8Yv2Is800wL7O5na6a3v70g,159
|
|
20
20
|
p115client/tool/util.py,sha256=0o9TrXdoPcljgxDDRdxRon41bq1OjuUYCWsR0XLfmPo,3357
|
21
21
|
p115client/tool/xys.py,sha256=vU28Px2yeQzIxxGkopJIpvV6TdOnWJ5xB6NPXpTgM0Y,10306
|
22
22
|
p115client/type.py,sha256=7kOp98uLaYqcTTCgCrb3DRcl8ukMpn7ibsnVvtw2nG8,6250
|
23
|
-
p115client-0.0.5.11.
|
24
|
-
p115client-0.0.5.11.
|
25
|
-
p115client-0.0.5.11.
|
26
|
-
p115client-0.0.5.11.
|
23
|
+
p115client-0.0.5.11.5.dist-info/LICENSE,sha256=o5242_N2TgDsWwFhPn7yr8YJNF7XsJM5NxUMtcT97bc,1100
|
24
|
+
p115client-0.0.5.11.5.dist-info/METADATA,sha256=RirgNDYN_DAJFrEnfBxNsOc6np0vQKltnUXSEo8i4og,8240
|
25
|
+
p115client-0.0.5.11.5.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
26
|
+
p115client-0.0.5.11.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|