Is there an equivalent way to connect to a postgres database in a similar way that sqlite connects to a database using python?
For example, in sqlite, a connection will be defined by conn = sqlite3.connect(curruser.dbname). What is the similar connection syntax for postgres?