storage3 2.28.2__tar.gz → 2.29.0__tar.gz
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.
- {storage3-2.28.2 → storage3-2.29.0}/PKG-INFO +1 -1
- {storage3-2.28.2 → storage3-2.29.0}/pyproject.toml +1 -1
- {storage3-2.28.2 → storage3-2.29.0}/src/storage3/_async/file_api.py +3 -1
- {storage3-2.28.2 → storage3-2.29.0}/src/storage3/_sync/file_api.py +3 -1
- {storage3-2.28.2 → storage3-2.29.0}/src/storage3/types.py +5 -5
- storage3-2.29.0/src/storage3/version.py +1 -0
- storage3-2.28.2/src/storage3/version.py +0 -1
- {storage3-2.28.2 → storage3-2.29.0}/README.md +0 -0
- {storage3-2.28.2 → storage3-2.29.0}/src/storage3/__init__.py +0 -0
- {storage3-2.28.2 → storage3-2.29.0}/src/storage3/_async/__init__.py +0 -0
- {storage3-2.28.2 → storage3-2.29.0}/src/storage3/_async/analytics.py +0 -0
- {storage3-2.28.2 → storage3-2.29.0}/src/storage3/_async/bucket.py +0 -0
- {storage3-2.28.2 → storage3-2.29.0}/src/storage3/_async/client.py +0 -0
- {storage3-2.28.2 → storage3-2.29.0}/src/storage3/_async/request.py +0 -0
- {storage3-2.28.2 → storage3-2.29.0}/src/storage3/_async/vectors.py +0 -0
- {storage3-2.28.2 → storage3-2.29.0}/src/storage3/_sync/__init__.py +0 -0
- {storage3-2.28.2 → storage3-2.29.0}/src/storage3/_sync/analytics.py +0 -0
- {storage3-2.28.2 → storage3-2.29.0}/src/storage3/_sync/bucket.py +0 -0
- {storage3-2.28.2 → storage3-2.29.0}/src/storage3/_sync/client.py +0 -0
- {storage3-2.28.2 → storage3-2.29.0}/src/storage3/_sync/request.py +0 -0
- {storage3-2.28.2 → storage3-2.29.0}/src/storage3/_sync/vectors.py +0 -0
- {storage3-2.28.2 → storage3-2.29.0}/src/storage3/constants.py +0 -0
- {storage3-2.28.2 → storage3-2.29.0}/src/storage3/exceptions.py +0 -0
- {storage3-2.28.2 → storage3-2.29.0}/src/storage3/py.typed +0 -0
- {storage3-2.28.2 → storage3-2.29.0}/src/storage3/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: storage3
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.29.0
|
|
4
4
|
Summary: Supabase Storage client for Python.
|
|
5
5
|
Author: Joel Lee, Leon Fedden, Daniel Reinón García, Leynier Gutiérrez González, Anand Krishna
|
|
6
6
|
Author-email: Joel Lee <joel@joellee.org>, Leon Fedden <leonfedden@gmail.com>, Daniel Reinón García <danielreinon@outlook.com>, Leynier Gutiérrez González <leynier41@gmail.com>, Anand Krishna <anand2312@proton.me>
|
|
@@ -201,8 +201,10 @@ class AsyncBucketActionsMixin:
|
|
|
201
201
|
return UploadResponse(path=path, Key=data["Key"])
|
|
202
202
|
|
|
203
203
|
def _make_signed_url(
|
|
204
|
-
self, signed_url: str, download_query: dict[str, str]
|
|
204
|
+
self, signed_url: Optional[str], download_query: dict[str, str]
|
|
205
205
|
) -> SignedUrlResponse:
|
|
206
|
+
if signed_url is None:
|
|
207
|
+
return {"signedURL": None, "signedUrl": None}
|
|
206
208
|
url = URL(signed_url[1:]) # ignore starting slash
|
|
207
209
|
signedURL = self._base_url.join(url).extend_query(download_query)
|
|
208
210
|
return {"signedURL": str(signedURL), "signedUrl": str(signedURL)}
|
|
@@ -201,8 +201,10 @@ class SyncBucketActionsMixin:
|
|
|
201
201
|
return UploadResponse(path=path, Key=data["Key"])
|
|
202
202
|
|
|
203
203
|
def _make_signed_url(
|
|
204
|
-
self, signed_url: str, download_query: dict[str, str]
|
|
204
|
+
self, signed_url: Optional[str], download_query: dict[str, str]
|
|
205
205
|
) -> SignedUrlResponse:
|
|
206
|
+
if signed_url is None:
|
|
207
|
+
return {"signedURL": None, "signedUrl": None}
|
|
206
208
|
url = URL(signed_url[1:]) # ignore starting slash
|
|
207
209
|
signedURL = self._base_url.join(url).extend_query(download_query)
|
|
208
210
|
return {"signedURL": str(signedURL), "signedUrl": str(signedURL)}
|
|
@@ -152,15 +152,15 @@ class UploadResponse:
|
|
|
152
152
|
|
|
153
153
|
|
|
154
154
|
class SignedUrlResponse(TypedDict):
|
|
155
|
-
signedURL: str
|
|
156
|
-
signedUrl: str
|
|
155
|
+
signedURL: Optional[str]
|
|
156
|
+
signedUrl: Optional[str]
|
|
157
157
|
|
|
158
158
|
|
|
159
159
|
class CreateSignedUrlResponse(TypedDict):
|
|
160
160
|
error: Optional[str]
|
|
161
161
|
path: str
|
|
162
|
-
signedURL: str
|
|
163
|
-
signedUrl: str
|
|
162
|
+
signedURL: Optional[str]
|
|
163
|
+
signedUrl: Optional[str]
|
|
164
164
|
|
|
165
165
|
|
|
166
166
|
class SignedUrlJsonResponse(BaseModel, extra="ignore"):
|
|
@@ -170,7 +170,7 @@ class SignedUrlJsonResponse(BaseModel, extra="ignore"):
|
|
|
170
170
|
class SignedUrlsJsonItem(BaseModel, extra="ignore"):
|
|
171
171
|
error: Optional[str]
|
|
172
172
|
path: str
|
|
173
|
-
signedURL: str
|
|
173
|
+
signedURL: Optional[str]
|
|
174
174
|
|
|
175
175
|
|
|
176
176
|
SignedUrlsJsonResponse = TypeAdapter(list[SignedUrlsJsonItem])
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.29.0" # {x-release-please-version}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.28.2" # {x-release-please-version}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|