--- id: supabase-functions version: "2.31.0" license: MIT license_treatment: permissive maintenance: active --- # supabase-functions — Library for Supabase Functions License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install supabase-functions uv add supabase-functions poetry add supabase-functions ## Description # Functions-py ## Installation The package can be installed using pip, uv or poetry: ### Pip ```bash pip install supabase_functions ``` ### UV ```bash uv add supabase_functions ``` ### Poetry ```bash poetry add supabase_functions ``` ## Usage Deploy your Edge Function following the [Supabase Functions documentation](https://supabase.com/docs/guides/functions). ### Asynchronous Client ```python 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://.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 ```python from supabase_functions import... ## AI interpretation — verify before relying Provides Python clients (async and sync) to invoke Supabase Edge Functions over HTTP, with support for custom headers and JSON request/response handling. Verdict: Lightweight, actively maintained library for calling Supabase Edge Functions from Python with both async and sync APIs. No known vulnerabilities, permissive MIT license, and minimal dependencies make it a low-risk choice for Supabase-integrated applications. [View on SkillFed](https://skillfed.io/packages/supabase-functions) · [View on PyPI](https://pypi.org/project/supabase-functions/)