Functions-py
Installation
The package can be installed using pip, uv or poetry:
Pip
pip install supabase_functions
UV
uv add supabase_functions
Poetry
poetry add supabase_functions
Supabase Service Compatibility
supabase_functions only guarantees compatibility with the latest Supabase Edge Runtime release. Older Supabase Edge Runtime releases are supported on a best-effort basis, but compatibility is not guaranteed.
If you self-host the Supabase Edge Runtime, we recommend upgrading to the latest release when upgrading this SDK.
Usage
Deploy your Edge Function following the Supabase Functions documentation.
Asynchronous Client
import asyncio
from supabase_functions import AsyncFunctionsClient
async def run_func():
# Initialize the client with your project URL and optional headers
headers = {
"Authorization": "Bearer your-publishable-key",
# Add any other headers you might need
}
fc = AsyncFunctionsClient("https://<project_ref>.functions.supabase.co", headers)
try:
# Invoke your Edge Function
res = await fc.invoke("payment-sheet", {
"responseType": "json",
"body": {"amount": 1000, "currency": "usd"}
})
print("Response:", res)
except Exception as e:
print(f"Error: {e}")
if __name__ == "__main__":
asyncio.run(run_func())
Synchronous Client
from supabase_functions import SyncFunctionsClient
# Initialize the client
headers = {"Authorization": "Bearer your-publishable-key"}
fc = SyncFunctionsClient("https://<project_ref>.functions.supabase.co", headers)
# Invoke your Edge Function
try:
res = fc.invoke("payment-sheet", {
"responseType": "json",
"body": {"amount": 1000, "currency": "usd"}
})
print("Response:", res)
except Exception as e:
print(f"Error: {e}")
Metadata
Release files for supabase-functions 2.34.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 | Provenance | Actions |
|---|---|---|---|---|
| supabase_functions-2.34.0.tar.gz | 5.5 kB | Without provenance | Details for supabase_functions-2.34.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| supabase_functions-2.34.0-py3-none-any.whl | Python 3 | none | any | Details for supabase_functions-2.34.0-py3-none-any.whl |
Total release size: 15.8 kB
Release files / supabase_functions-2.34.0.tar.gz
| Download URL | supabase_functions-2.34.0.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91738fade68088efa36190ab2890c1596702b31ace46215573e3a2ed77dcc53f
|
|
BLAKE2b-256 checksum How to use checksums |
cddd75256db14975ffddfecbd844842351722c0f349d39c7d86c456928f41377
|
| 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 / supabase_functions-2.34.0-py3-none-any.whl
| Download URL | supabase_functions-2.34.0-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a2b302de8b46dff00f451b9844167fd10d675b424167167c11cb430f3d3a7d9d
|
|
BLAKE2b-256 checksum How to use checksums |
9e16f7334dbd3f2a8a7c577045166eb6210283f338ca0f488fa15b9eaf6fc93c
|
| 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 supabase-functions 2.34.0
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.