Skip to main content

Storage-py

Python Client library to interact with Supabase Storage.

Supabase Service Compatibility

storage3 only guarantees compatibility with the latest Supabase Storage release. Older Supabase Storage releases are supported on a best-effort basis, but compatibility is not guaranteed.

If you self-host Supabase Storage, we recommend upgrading to the latest release when upgrading this SDK.

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.34.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for storage3 2.34.1
File Size Uploaded Provenance Actions
storage3-2.34.1.tar.gz 20.5 kB Without provenance Details for storage3-2.34.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for storage3 2.34.1
File Interpreter ABI Platform Actions
storage3-2.34.1-py3-none-any.whl Python 3 none any Details for storage3-2.34.1-py3-none-any.whl

Total release size: 49.1 kB

Release files / storage3-2.34.1.tar.gz

Download URL storage3-2.34.1.tar.gz
Size 20.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e5462b05f095ba6ea59d95f70c5841dfc67922401aa7f9570e151e9df96c05bd
BLAKE2b-256 checksum
How to use checksums
e8b21fdee833f9d3db231feda833c6969b876ac31e64bcd42cb2cd102596c3f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.3 {"installer":{"name":"uv","version":"0.13.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / storage3-2.34.1-py3-none-any.whl

Download URL storage3-2.34.1-py3-none-any.whl
Size 28.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f2615d75bd9415b804274a430bb89ee0bead1bec0c0a26717aecbdb0ee05b30
BLAKE2b-256 checksum
How to use checksums
b2fa194142a00be8cc39329991d648d3418e12a8939296366164dab7424d0931
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.3 {"installer":{"name":"uv","version":"0.13.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for storage3 2.34.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.34.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page