pyzotero 1.6.8__py3-none-any.whl → 1.6.9__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/filetransport.py +3 -3
- pyzotero/zotero.py +317 -393
- pyzotero/zotero_errors.py +17 -17
- {pyzotero-1.6.8.dist-info → pyzotero-1.6.9.dist-info}/METADATA +3 -1
- pyzotero-1.6.9.dist-info/RECORD +11 -0
- pyzotero-1.6.8.dist-info/RECORD +0 -11
- {pyzotero-1.6.8.dist-info → pyzotero-1.6.9.dist-info}/AUTHORS +0 -0
- {pyzotero-1.6.8.dist-info → pyzotero-1.6.9.dist-info}/LICENSE.md +0 -0
- {pyzotero-1.6.8.dist-info → pyzotero-1.6.9.dist-info}/WHEEL +0 -0
- {pyzotero-1.6.8.dist-info → pyzotero-1.6.9.dist-info}/top_level.txt +0 -0
_version.py
CHANGED
pyzotero/filetransport.py
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
import asyncio
|
|
34
34
|
from pathlib import Path
|
|
35
|
-
from typing import Optional
|
|
35
|
+
from typing import Optional
|
|
36
36
|
|
|
37
37
|
import httpx
|
|
38
38
|
from httpx import (
|
|
@@ -65,7 +65,7 @@ httpx.URL.is_absolute_url = property(is_absolute_url) # type: ignore
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
class FileTransport(AsyncBaseTransport, BaseTransport):
|
|
68
|
-
def _handle(self, request: Request) ->
|
|
68
|
+
def _handle(self, request: Request) -> tuple[Optional[int], httpx.Headers]:
|
|
69
69
|
if request.url.host and request.url.host != "localhost":
|
|
70
70
|
raise NotImplementedError("Only local paths are allowed")
|
|
71
71
|
if request.method in {"PUT", "DELETE"}:
|
|
@@ -148,4 +148,4 @@ class AsyncClient(_AsyncClient):
|
|
|
148
148
|
self._mounts.update({URLPattern(protocol): transport})
|
|
149
149
|
|
|
150
150
|
|
|
151
|
-
__all__ = ["
|
|
151
|
+
__all__ = ["AsyncClient", "Client", "FileTransport"]
|