storage3-3.0.0a1
3.0.0a1
2.30.0
2.29.0
2.28.3
2.28.2
2.28.1
2.28.0
2.27.3
2.27.2
2.27.1
2.27.0
2.26.0
2.25.1
2.25.0
2.24.0
2.23.3
2.23.2
2.23.1
2.23.0
2.22.4
2.22.3
2.22.2
2.22.1
2.22.0
2.21.1
2.21.0
2.20.0
2.19.0
0.9.0
0.8.2
0.8.1
0.8.0
0.7.7
0.7.6
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.1
0.6.0
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.0
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.0
0.12.2
0.12.1
0.12.0
0.11.3
0.11.2
0.11.1
0.11.0
0.10.0
0.1.1
0.1.0
3.0.0a1
2.30.0
2.29.0
2.28.3
2.28.2
2.28.1
2.28.0
2.27.3
2.27.2
2.27.1
2.27.0
2.26.0
2.25.1
2.25.0
2.24.0
2.23.3
2.23.2
2.23.1
2.23.0
2.22.4
2.22.3
2.22.2
2.22.1
2.22.0
2.21.1
2.21.0
2.20.0
2.19.0
0.9.0
0.8.2
0.8.1
0.8.0
0.7.7
0.7.6
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.1
0.6.0
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.0
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.0
0.12.2
0.12.1
0.12.0
0.11.3
0.11.2
0.11.1
0.11.0
0.10.0
0.1.1
0.1.0
توضیحات
Supabase Storage client for Python.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | storage3-3.0.0a1 |
| نام | storage3 |
| نسخه کتابخانه | 3.0.0a1 |
| نگهدارنده | ['Leonardo Santiago'] |
| ایمیل نگهدارنده | ['Leonardo Santiago <leonardo.santiago@supabase.io>'] |
| نویسنده | Joel Lee, Leon Fedden, Daniel Reinón García, Leynier Gutiérrez González, Anand Krishna |
| ایمیل نویسنده | 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> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/storage3/ |
| مجوز | - |
# Storage-py
Python Client library to interact with Supabase Storage.
## How to use
As it takes some effort to get the headers. We suggest that you use the storage functionality through the main [Supabase Python Client](https://github.com/supabase-community/supabase-py)
```python3
from storage3 import AsyncStorageClient
url = "https://<your_supabase_id>.supabase.co/storage/v1"
key = "<your api key>"
headers = {"apiKey": key, "Authorization": f"Bearer {key}"}
storage_client = AsyncStorageClient(url, headers)
async def get_buckets():
await storage_client.list_buckets()
```
### Uploading files
When uploading files, make sure to set the correct mimetype by using the `file_options` argument:
```py
async def file_upload():
await storage_client.from_("bucket").upload("/folder/file.png", file_object, {"content-type": "image/png"})
```
If no mime type is given, the default `text/plain` will be used.
نیازمندی
| مقدار | نام |
|---|---|
| - | httpx[http2]<0.29,>=0.26 |
| - | deprecation>=2.1.0 |
| - | pydantic>=2.11.7 |
| - | yarl>=1.20.1 |
| - | pyiceberg>=0.10.0 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9 | Python |
نحوه نصب
نصب پکیج whl storage3-3.0.0a1:
pip install storage3-3.0.0a1.whl
نصب پکیج tar.gz storage3-3.0.0a1:
pip install storage3-3.0.0a1.tar.gz