Library for Supabase Functions
Project Links
Meta
Author: Joel Lee, Andrew Smith
Maintainer: Leonardo Santiago
Requires Python: >=3.9
Classifiers
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
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-anon-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-anon-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}")
2.28.3
Mar 20, 2026
2.28.2
Mar 13, 2026
2.28.1
Mar 13, 2026
2.28.0
Feb 10, 2026
2.27.3
Feb 03, 2026
2.27.2
Jan 14, 2026
2.27.1
Jan 06, 2026
2.27.0
Dec 16, 2025
2.26.0
Dec 15, 2025
2.25.1
Dec 10, 2025
2.25.0
Dec 03, 2025
2.24.0
Nov 07, 2025
2.23.3
Nov 06, 2025
2.23.2
Nov 03, 2025
2.23.1
Nov 03, 2025
2.23.0
Oct 31, 2025
2.22.4
Oct 30, 2025
2.22.3
Oct 28, 2025
2.22.2
Oct 24, 2025
2.22.1
Oct 21, 2025
2.22.0
Oct 08, 2025
2.21.1
Oct 03, 2025
2.21.0
Oct 03, 2025
2.20.0
Sep 22, 2025
2.19.0
Sep 17, 2025
0.10.1
Jun 23, 2025
0.10.0
Jun 19, 2025
0.9.4
Mar 26, 2025
0.9.3
Jan 29, 2025
0.9.2
Jan 17, 2025
0.9.1
Jan 17, 2025
0.9.0
Nov 29, 2024
0.8.0
Nov 24, 2024
0.7.0
Oct 31, 2024
0.6.2
Oct 18, 2024
0.6.1
Oct 03, 2024
0.6.0
Sep 28, 2024
0.5.1
Jul 25, 2024
0.5.0
Jul 21, 2024
0.4.7
Jul 14, 2024
0.4.6
Jun 05, 2024
0.4.5
Mar 23, 2024
0.4.4
Mar 23, 2024
0.4.3
Mar 23, 2024
0.4.2
Mar 23, 2024
0.3.3
Jan 03, 2024
0.3.2
Jan 03, 2024
0.3.1
Nov 01, 2023