How to Connect to PostgreSQL from Python with psycopg2?

How to Connect to PostgreSQL from Python with psycopg2?