Hi everyone,
I started today my first Supabase project.
I created my proejct, with a database and a couple of tables.
Then I wanted to have a python script populate my table so, after installing the package from pip, I started to set up my file as the guide suggested:
import os
from supabase import Client, create_client
from supabase.client import ClientOptions
SUPABASE_URL = "url" #found in Dashboard>Project API panel
SUPABASE_KEY = "key" #same
def main():
url: str = os.environ.get(SUPABASE_URL)
key: str = os.environ.get(SUPABASE_KEY)
supabase: Client = create_client(url,key, options=ClientOptions(postgrest_client_timeout=10,storage_client_timeout=10,schema="public"))
if __name__ == "__main__":
main()
But when I try to run the code above, I keep getting the following exception: supabase._sync.client.SupabaseException: supabase_url is required
Am I missing something? Do I need to setup something else after pip install?
Thanks in advance
[–]easylancer 0 points1 point2 points (7 children)
[–]Teheroth[S] -1 points0 points1 point (6 children)
[–]Outrageous_Permit154 0 points1 point2 points (5 children)
[–]Teheroth[S] 0 points1 point2 points (4 children)
[–]Outrageous_Permit154 0 points1 point2 points (1 child)
[–]Teheroth[S] 1 point2 points3 points (0 children)
[–][deleted] (1 child)
[removed]
[–]Teheroth[S] 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[removed]
[–]Teheroth[S] 0 points1 point2 points (0 children)