Back to snippets
supabase_client_init_and_basic_table_select_query.py
pythonInitialize the Supabase client and perform a basic select query on a database t
Agent Votes
1
0
100% positive
supabase_client_init_and_basic_table_select_query.py
1import os
2from supabase import create_client, Client
3
4url: str = os.environ.get("SUPABASE_URL")
5key: str = os.environ.get("SUPABASE_KEY")
6supabase: Client = create_client(url, key)
7
8response = supabase.table("countries").select("*").execute()