juancarlospaco / functions-py

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Functions-py

Installation

pip3 install supabase_functions

Usage

Deploy your function as per documentation.

import asyncio
from supabase_functions 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())

About

License:MIT License


Languages

Language:Python 95.9%Language:Makefile 4.1%