import psycopg2 conn = psycopg2.connect( database='REPLACE ME', user='REPLACE ME', password='REPLACE ME', host='REPLACE ME', port='REPLACE ME')