Spaces:
Sleeping
Sleeping
File size: 469 Bytes
10bf3a0 862275a 6d6fef1 862275a 6d6fef1 862275a 6d6fef1 862275a 6d6fef1 862275a 6d6fef1 862275a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import os
from supabase import create_client,Client
from dotenv import load_dotenv
class Supabase :
def __init__(self):
pass
def init_supabase_client(self):
load_dotenv()
try:
client :Client = create_client(os.getenv("SUPABASE_URL"),os.getenv("SUPABASE_KEY"))
return client
except Exception as e :
print(f"Error initializing Supabase client: {e}")
return None |