niming_backend/supaclient.py

13 lines
265 B
Python
Raw Normal View History

2024-11-07 02:19:53 +08:00
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)