Skip to content

Instantly share code, notes, and snippets.

View akarshghale's full-sized avatar
🎯
Focusing

Akarsh Ghale akarshghale

🎯
Focusing
View GitHub Profile
@akarshghale
akarshghale / supabase-rls.py
Created November 27, 2023 11:52
Python script to test supabase RLS policies.
from dotenv import load_dotenv
load_dotenv()
import os
from supabase import create_client, Client
url: str = os.environ.get("SUPABASE_URL")
anon_key: str = os.environ.get("SUPABASE_ANON_KEY") #Make sure to use anon key in supabase
supabase: Client = create_client(url, anon_key)