pyzotero 1.6.4__py3-none-any.whl → 1.6.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.
- _version.py +2 -2
- pyzotero/zotero.py +5 -3
- {pyzotero-1.6.4.dist-info → pyzotero-1.6.5.dist-info}/METADATA +3 -2
- pyzotero-1.6.5.dist-info/RECORD +10 -0
- {pyzotero-1.6.4.dist-info → pyzotero-1.6.5.dist-info}/WHEEL +1 -1
- pyzotero-1.6.4.dist-info/RECORD +0 -10
- {pyzotero-1.6.4.dist-info → pyzotero-1.6.5.dist-info}/AUTHORS +0 -0
- {pyzotero-1.6.4.dist-info → pyzotero-1.6.5.dist-info}/LICENSE.md +0 -0
- {pyzotero-1.6.4.dist-info → pyzotero-1.6.5.dist-info}/top_level.txt +0 -0
_version.py
CHANGED
pyzotero/zotero.py
CHANGED
|
@@ -305,7 +305,7 @@ class Zotero:
|
|
|
305
305
|
else:
|
|
306
306
|
self.endpoint = "http://localhost:23119/api"
|
|
307
307
|
self.local = True
|
|
308
|
-
if library_id and library_type:
|
|
308
|
+
if library_id is not None and library_type:
|
|
309
309
|
self.library_id = library_id
|
|
310
310
|
# library_type determines whether query begins w. /users or /groups
|
|
311
311
|
self.library_type = library_type + "s"
|
|
@@ -2016,7 +2016,9 @@ class Zupload:
|
|
|
2016
2016
|
upload_pairs = tuple(upload_list)
|
|
2017
2017
|
try:
|
|
2018
2018
|
self.zinstance._check_backoff()
|
|
2019
|
-
|
|
2019
|
+
# We use a fresh httpx POST because we don't want our existing Pyzotero headers
|
|
2020
|
+
# for a call to the storage upload URL (currently S3)
|
|
2021
|
+
upload = httpx.post(
|
|
2020
2022
|
url=authdata["url"],
|
|
2021
2023
|
files=upload_pairs,
|
|
2022
2024
|
headers={"User-Agent": f"Pyzotero/{pz.__version__}"},
|
|
@@ -2043,7 +2045,7 @@ class Zupload:
|
|
|
2043
2045
|
}
|
|
2044
2046
|
reg_data = {"upload": authdata.get("uploadKey")}
|
|
2045
2047
|
self.zinstance._check_backoff()
|
|
2046
|
-
upload_reg = self.
|
|
2048
|
+
upload_reg = self.zinstance.client.post(
|
|
2047
2049
|
url=build_url(
|
|
2048
2050
|
self.zinstance.endpoint,
|
|
2049
2051
|
"/{t}/{u}/items/{i}/file".format(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: pyzotero
|
|
3
|
-
Version: 1.6.
|
|
3
|
+
Version: 1.6.5
|
|
4
4
|
Summary: Python wrapper for the Zotero API
|
|
5
5
|
Author-email: Stephan Hügel <urschrei@gmail.com>
|
|
6
6
|
License: # Blue Oak Model License
|
|
@@ -63,6 +63,7 @@ Requires-Dist: feedparser>=6.0.11
|
|
|
63
63
|
Requires-Dist: pytz
|
|
64
64
|
Requires-Dist: bibtexparser
|
|
65
65
|
Requires-Dist: httpx>=0.28.1
|
|
66
|
+
Requires-Dist: sphinx-rtd-theme>=3.0.2
|
|
66
67
|
Provides-Extra: test
|
|
67
68
|
Requires-Dist: pytest>=7.4.2; extra == "test"
|
|
68
69
|
Requires-Dist: httpretty; extra == "test"
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
_version.py,sha256=Wh1l7lDfih75U-G0ME9gZnLgLqWtgspc0mVEOcWQpQ8,411
|
|
2
|
+
pyzotero/__init__.py,sha256=5QI4Jou9L-YJAf_oN9TgRXVKgt_Unc39oADo2Ch8bLI,243
|
|
3
|
+
pyzotero/zotero.py,sha256=9mwSEa3Z97Bdni9p_yMqeKBEYQFUvRdwFJAIaf0gg5A,76539
|
|
4
|
+
pyzotero/zotero_errors.py,sha256=UPhAmf2K05cnoeIl2wjufWQedepg7vBKb-ShU0TdlL4,2582
|
|
5
|
+
pyzotero-1.6.5.dist-info/AUTHORS,sha256=ZMicxg7lRScOYbxzMPznlzMbmrFIUIHwg-NvljEMbRQ,110
|
|
6
|
+
pyzotero-1.6.5.dist-info/LICENSE.md,sha256=bhy1CPMj1zWffD9YifFmSeBzPylsrhb1qP8OCEx5Etw,1550
|
|
7
|
+
pyzotero-1.6.5.dist-info/METADATA,sha256=WbXMwEG7mx08InP9iDe7ui0GG-2TzY53-ls0B-pn5Qg,7329
|
|
8
|
+
pyzotero-1.6.5.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
9
|
+
pyzotero-1.6.5.dist-info/top_level.txt,sha256=BOPNkPk5VtNDCy_li7Xftx6k0zG8STGxh-KgckcxLEw,18
|
|
10
|
+
pyzotero-1.6.5.dist-info/RECORD,,
|
pyzotero-1.6.4.dist-info/RECORD
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
_version.py,sha256=nUUf9xc-xNn7sMTK7c2rpMt1p2OZlNNmLiVGIkTETu8,411
|
|
2
|
-
pyzotero/__init__.py,sha256=5QI4Jou9L-YJAf_oN9TgRXVKgt_Unc39oADo2Ch8bLI,243
|
|
3
|
-
pyzotero/zotero.py,sha256=bPWHCgUbom96ijwM-ImEMtN91A6YajlmZHyx4I8GYPU,76374
|
|
4
|
-
pyzotero/zotero_errors.py,sha256=UPhAmf2K05cnoeIl2wjufWQedepg7vBKb-ShU0TdlL4,2582
|
|
5
|
-
pyzotero-1.6.4.dist-info/AUTHORS,sha256=ZMicxg7lRScOYbxzMPznlzMbmrFIUIHwg-NvljEMbRQ,110
|
|
6
|
-
pyzotero-1.6.4.dist-info/LICENSE.md,sha256=bhy1CPMj1zWffD9YifFmSeBzPylsrhb1qP8OCEx5Etw,1550
|
|
7
|
-
pyzotero-1.6.4.dist-info/METADATA,sha256=Lft4hiPbO-zeImbXKm38aBGcxo2DnU6ue36j5UAwpN4,7290
|
|
8
|
-
pyzotero-1.6.4.dist-info/WHEEL,sha256=A3WOREP4zgxI0fKrHUG8DC8013e3dK3n7a6HDbcEIwE,91
|
|
9
|
-
pyzotero-1.6.4.dist-info/top_level.txt,sha256=BOPNkPk5VtNDCy_li7Xftx6k0zG8STGxh-KgckcxLEw,18
|
|
10
|
-
pyzotero-1.6.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|