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
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:
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.
Metadata
Release files for storage3 2.32.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| storage3-2.32.0.tar.gz | 20.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| storage3-2.32.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 48.6 kB
Release files / storage3-2.32.0.tar.gz
| Download URL | storage3-2.32.0.tar.gz |
|---|---|
| Size | 20.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9188dfe6931f3366fd9740d21f737bf969dbbd69f9ecb97746dbb7eeb5f01731
|
|
BLAKE2b-256 checksum How to use checksums |
af073afbc26ea08193de9f4915b14058cb4aab5d29de314320601603b2d4dd12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.8.2
|
Release files / storage3-2.32.0-py3-none-any.whl
| Download URL | storage3-2.32.0-py3-none-any.whl |
|---|---|
| Size | 28.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a72109e4223b461488ad338ada324c27380dda0be3a8928498f19ec3b8946c98
|
|
BLAKE2b-256 checksum How to use checksums |
61ac9d26f000790935c6982b5a6ac30f28caeefb9517101f9911055bfd37ef33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.8.2
|