Advice for PostgreSQL

Gerhard Häring gh at ghaering.de
Tue Dec 16 03:01:51 EST 2003


Steve wrote:
> Hi,
> 
> Can someone please point me out to some module/library for using 
> PostgreSQL from python? 

Either one of these will do fine:

- http://pypgsql.sourceforge.net/
- http://initd.org/software/initd/psycopg

Both contain documentation, but not tutorial-like, AFAIK.

> Perhaps a tutorial as wel? Thanks!

http://www.linuxjournal.com/article.php?sid=2605

It uses soliddb as a module, but all these modules implement the Python DB-API 
2.0, so the major differences are the import statement and the call to .connect().

-- Gerhard









More information about the Python-list mailing list