storage3 2.28.3__tar.gz → 2.30.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.
Files changed (25) hide show
  1. {storage3-2.28.3 → storage3-2.30.0}/PKG-INFO +1 -1
  2. {storage3-2.28.3 → storage3-2.30.0}/pyproject.toml +1 -1
  3. {storage3-2.28.3 → storage3-2.30.0}/src/storage3/_async/file_api.py +3 -1
  4. {storage3-2.28.3 → storage3-2.30.0}/src/storage3/_sync/file_api.py +3 -1
  5. {storage3-2.28.3 → storage3-2.30.0}/src/storage3/types.py +5 -5
  6. storage3-2.30.0/src/storage3/version.py +1 -0
  7. storage3-2.28.3/src/storage3/version.py +0 -1
  8. {storage3-2.28.3 → storage3-2.30.0}/README.md +0 -0
  9. {storage3-2.28.3 → storage3-2.30.0}/src/storage3/__init__.py +0 -0
  10. {storage3-2.28.3 → storage3-2.30.0}/src/storage3/_async/__init__.py +0 -0
  11. {storage3-2.28.3 → storage3-2.30.0}/src/storage3/_async/analytics.py +0 -0
  12. {storage3-2.28.3 → storage3-2.30.0}/src/storage3/_async/bucket.py +0 -0
  13. {storage3-2.28.3 → storage3-2.30.0}/src/storage3/_async/client.py +0 -0
  14. {storage3-2.28.3 → storage3-2.30.0}/src/storage3/_async/request.py +0 -0
  15. {storage3-2.28.3 → storage3-2.30.0}/src/storage3/_async/vectors.py +0 -0
  16. {storage3-2.28.3 → storage3-2.30.0}/src/storage3/_sync/__init__.py +0 -0
  17. {storage3-2.28.3 → storage3-2.30.0}/src/storage3/_sync/analytics.py +0 -0
  18. {storage3-2.28.3 → storage3-2.30.0}/src/storage3/_sync/bucket.py +0 -0
  19. {storage3-2.28.3 → storage3-2.30.0}/src/storage3/_sync/client.py +0 -0
  20. {storage3-2.28.3 → storage3-2.30.0}/src/storage3/_sync/request.py +0 -0
  21. {storage3-2.28.3 → storage3-2.30.0}/src/storage3/_sync/vectors.py +0 -0
  22. {storage3-2.28.3 → storage3-2.30.0}/src/storage3/constants.py +0 -0
  23. {storage3-2.28.3 → storage3-2.30.0}/src/storage3/exceptions.py +0 -0
  24. {storage3-2.28.3 → storage3-2.30.0}/src/storage3/py.typed +0 -0
  25. {storage3-2.28.3 → storage3-2.30.0}/src/storage3/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: storage3
3
- Version: 2.28.3
3
+ Version: 2.30.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>
@@ -18,7 +18,7 @@ classifiers = [
18
18
  ]
19
19
  license = "MIT"
20
20
  readme = "README.md"
21
- version = "2.28.3" # {x-release-please-version}
21
+ version = "2.30.0" # {x-release-please-version}
22
22
  requires-python = ">=3.9"
23
23
 
24
24
  dependencies = [
@@ -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.30.0" # {x-release-please-version}
@@ -1 +0,0 @@
1
- __version__ = "2.28.3" # {x-release-please-version}
File without changes