niming_backend/supaclient.py
2024-11-07 02:19:53 +08:00

13 lines
265 B
Python

from supabase import Client, create_client
from dotenv import load_dotenv
import os
load_dotenv()
URL = os.getenv("SUPABASE_IP")
# service key
KEY = os.getenv("SUPABASE_KEY")
class supaClient:
def __init__(self):
self.client = create_client(URL, KEY)