Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

storage3-3.0.0a1.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

storage3-3.0.0a1-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file storage3-3.0.0a1.tar.gz.

File metadata

  • Download URL: storage3-3.0.0a1.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"26.05","id":"yarara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for storage3-3.0.0a1.tar.gz
Algorithm Hash digest
SHA256 1e55f195c9eca63ecfe5f0c3a260c7da6761cd540aa889db6637ee363c4c630f
MD5 968c9786a7cf4c326603cc34bae69a03
BLAKE2b-256 ffce5226ee62582bc667211f0b33ae715d9778d7890dbf1dc933119ff6d2f5d3

See more details on using hashes here.

File details

Details for the file storage3-3.0.0a1-py3-none-any.whl.

File metadata

  • Download URL: storage3-3.0.0a1-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"26.05","id":"yarara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for storage3-3.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 302e210536e09d23a7f780371246d78da4abd527aeee7fa1c1565c499b4ebf4b
MD5 48c7e2a4d27088fd92315c7e69738b0c
BLAKE2b-256 e4da98046cbf8dca4c43175dd29635ce0636b821d9a54fb99f2ce1cc1c1b9c4a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page