Spaces:
Paused
Paused
Download check_user.py from paras9909/opticparse-python: direct link, hf CLI and curl.
- Browser
- Download file 376 Bytes
-
https://huggingface.co/spaces/paras9909/opticparse-python/resolve/main/check_user.py
- Command line
-
hf download hf://spaces/paras9909/opticparse-python/check_user.py
-
curl -L -o check_user.py https://huggingface.co/spaces/paras9909/opticparse-python/resolve/main/check_user.py
376 Bytes
| import psycopg2 | |
| conn = psycopg2.connect("postgresql://postgres:9876607718Ppp@db.xxmvhvxeglsjbewlouqg.supabase.co:5432/postgres") | |
| cur = conn.cursor() | |
| try: | |
| cur.execute("SELECT id FROM auth.users LIMIT 1;") | |
| user = cur.fetchone() | |
| if user: | |
| print(f"User ID: {user[0]}") | |
| else: | |
| print("No users found") | |
| except Exception as e: | |
| print(f"Error: {e}") | |