Spaces:
Runtime error
Runtime error
Download team_framework/supabase_cli.py from airsltd/base-teams: direct link, hf CLI and curl.
- Browser
- Download file 390 Bytes
-
https://huggingface.co/spaces/airsltd/base-teams/resolve/main/team_framework/supabase_cli.py
- Command line
-
hf download hf://spaces/airsltd/base-teams/team_framework/supabase_cli.py
-
curl -L -o supabase_cli.py https://huggingface.co/spaces/airsltd/base-teams/resolve/main/team_framework/supabase_cli.py
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) |