Spaces:
Paused
Paused
Download create_user.py from paras9909/opticparse-python: direct link, hf CLI and curl.
- Browser
- Download file 452 Bytes
-
https://huggingface.co/spaces/paras9909/opticparse-python/resolve/main/create_user.py
- Command line
-
hf download hf://spaces/paras9909/opticparse-python/create_user.py
-
curl -L -o create_user.py https://huggingface.co/spaces/paras9909/opticparse-python/resolve/main/create_user.py
452 Bytes
| import psycopg2 | |
| conn = psycopg2.connect("postgresql://postgres:9876607718Ppp@db.xxmvhvxeglsjbewlouqg.supabase.co:5432/postgres") | |
| cur = conn.cursor() | |
| try: | |
| cur.execute("INSERT INTO users (id, email, tier, monthly_limit, current_usage) VALUES ('97232518-5451-48b5-9201-6b86f5a4afb3', 'benchmark@test.com', 'enterprise', 100000, 0) ON CONFLICT DO NOTHING;") | |
| conn.commit() | |
| print("User created") | |
| except Exception as e: | |
| print(f"Error: {e}") | |