pyzotero 1.7.6__py3-none-any.whl → 1.9.0__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.
- pyzotero/__init__.py +60 -0
- pyzotero/_client.py +1402 -0
- pyzotero/_decorators.py +195 -0
- pyzotero/_search.py +190 -0
- pyzotero/_upload.py +241 -0
- pyzotero/_utils.py +86 -0
- pyzotero/cli.py +789 -4
- pyzotero/errors.py +185 -0
- pyzotero/filetransport.py +2 -2
- pyzotero/semantic_scholar.py +441 -0
- pyzotero/zotero.py +62 -2035
- pyzotero/zotero_errors.py +53 -136
- {pyzotero-1.7.6.dist-info → pyzotero-1.9.0.dist-info}/METADATA +3 -3
- pyzotero-1.9.0.dist-info/RECORD +16 -0
- pyzotero-1.7.6.dist-info/RECORD +0 -9
- {pyzotero-1.7.6.dist-info → pyzotero-1.9.0.dist-info}/WHEEL +0 -0
- {pyzotero-1.7.6.dist-info → pyzotero-1.9.0.dist-info}/entry_points.txt +0 -0
pyzotero/__init__.py
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
"""Pyzotero - Python wrapper for the Zotero API."""
|
|
2
|
+
|
|
1
3
|
import importlib.metadata
|
|
2
4
|
|
|
3
5
|
try:
|
|
@@ -5,3 +7,61 @@ try:
|
|
|
5
7
|
__version__ = importlib.metadata.version(__package__ or __name__)
|
|
6
8
|
except importlib.metadata.PackageNotFoundError:
|
|
7
9
|
__version__ = "0.0.0"
|
|
10
|
+
|
|
11
|
+
# Public API exports
|
|
12
|
+
from pyzotero._client import Zotero
|
|
13
|
+
from pyzotero._search import SavedSearch
|
|
14
|
+
from pyzotero._upload import Zupload
|
|
15
|
+
from pyzotero._utils import chunks
|
|
16
|
+
from pyzotero.errors import (
|
|
17
|
+
CallDoesNotExistError,
|
|
18
|
+
ConflictError,
|
|
19
|
+
CouldNotReachURLError,
|
|
20
|
+
FileDoesNotExistError,
|
|
21
|
+
HTTPError,
|
|
22
|
+
InvalidItemFieldsError,
|
|
23
|
+
MissingCredentialsError,
|
|
24
|
+
ParamNotPassedError,
|
|
25
|
+
PreConditionFailedError,
|
|
26
|
+
PreConditionRequiredError,
|
|
27
|
+
PyZoteroError,
|
|
28
|
+
RequestEntityTooLargeError,
|
|
29
|
+
ResourceNotFoundError,
|
|
30
|
+
TooManyItemsError,
|
|
31
|
+
TooManyRequestsError,
|
|
32
|
+
TooManyRetriesError,
|
|
33
|
+
UnsupportedParamsError,
|
|
34
|
+
UploadError,
|
|
35
|
+
UserNotAuthorisedError,
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
__all__ = [
|
|
39
|
+
# Exceptions
|
|
40
|
+
"CallDoesNotExistError",
|
|
41
|
+
"ConflictError",
|
|
42
|
+
"CouldNotReachURLError",
|
|
43
|
+
"FileDoesNotExistError",
|
|
44
|
+
"HTTPError",
|
|
45
|
+
"InvalidItemFieldsError",
|
|
46
|
+
"MissingCredentialsError",
|
|
47
|
+
"ParamNotPassedError",
|
|
48
|
+
"PreConditionFailedError",
|
|
49
|
+
"PreConditionRequiredError",
|
|
50
|
+
"PyZoteroError",
|
|
51
|
+
"RequestEntityTooLargeError",
|
|
52
|
+
"ResourceNotFoundError",
|
|
53
|
+
"SavedSearch",
|
|
54
|
+
"TooManyItemsError",
|
|
55
|
+
"TooManyRequestsError",
|
|
56
|
+
"TooManyRetriesError",
|
|
57
|
+
"UnsupportedParamsError",
|
|
58
|
+
"UploadError",
|
|
59
|
+
"UserNotAuthorisedError",
|
|
60
|
+
# Main classes
|
|
61
|
+
"Zotero",
|
|
62
|
+
"Zupload",
|
|
63
|
+
# Version
|
|
64
|
+
"__version__",
|
|
65
|
+
# Utilities
|
|
66
|
+
"chunks",
|
|
67
|
+
]
|