base-team-v1 / team_framework /supabase_cli.py
geqintan's picture
update
d87d194
raw
history blame contribute delete
390 Bytes
from supabase import create_client, Client
import os
def get_supabase_client() -> Client:
"""Initializes and returns a Supabase client."""
url: str = os.environ.get("SUPABASE_URL")
key: str = os.environ.get("SUPABASE_KEY")
if not url or not key:
print("Supabase URL or Key not found in environment variables.")
return None
return create_client(url, key)