python and Postgresq

Diez B. Roggisch deets at
Mon Nov 23 11:22:15 CET 2009

Andy dixon wrote:

> Hi,
> Does anyone have a link to, or can provide an example script for using
> python-pgsql ( or if someone can
> recommend an alternative, that would be fantastic.

I'd recommend psycopg2. 

This is an introduction:

But google yields tons more. And make sure you read the python db api 2.0
spec, this should give you the general idea on how to work with Python &
RDBMS, which is nicely abstracted away from the actual database.


More information about the Python-list mailing list