DBAPI 2: PostgreSQL

DBAPI 2 Example: Postgres

import psycopg2
connection = psycopg2.connect(
    host='localhost',
    dbname='schwammerldb',
    user='ich',
    password='secret')