Supabase Storage client for Python.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file storage3-2.27.0.tar.gz.
File metadata
- Download URL: storage3-2.27.0.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d07e7cba570edb94055da90857e8a17920def4fea06dcdc5d89ee090bdc7bf5
|
|
| MD5 |
131e66af10541bbae10429245b0a32d9
|
|
| BLAKE2b-256 |
916f6dcecd2edccd604321763e7e191bb3fa31364327662607e4c5f17d1e46fc
|
File details
Details for the file storage3-2.27.0-py3-none-any.whl.
File metadata
- Download URL: storage3-2.27.0-py3-none-any.whl
- Upload date:
- Size: 27.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c943b6240451607597eb4a4aa0cd31b3008e4d53c15d8089cd1a3f61fcbba68
|
|
| MD5 |
bf3268b2ee265be9cea5007b1c226407
|
|
| BLAKE2b-256 |
a6e48e8e81a1577551283626efed3381d680fc621e32c7a8fe6425292924babc
|