Project: supafunc

Library for Supabase Functions

Project Details

Latest version
0.3.1
Home Page
https://github.com/supabase-community/functions-py
PyPI Page
https://pypi.org/project/supafunc/

Project Popularity

PageRank
0.0023931730374154654
Number of downloads
251121

Functions-py

Installation

pip3 install supafunc

Usage

Deploy your function as per documentation.

import asyncio
from supafunc import AsyncFunctionsClient
async def run_func():
    fc = AsyncFunctionsClient("https://<project_ref>.functions.supabase.co", {})
    res = await fc.invoke("payment-sheet", {"responseType": "json"})

if __name__ == "__main__":
    asyncio.run(run_func())