pyzotero 1.7.5__py3-none-any.whl → 1.8.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 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
+ ]