Re: Python + PostgreSQL

From: Karl Thomas Diedrich <died9501(at)uidaho(dot)edu>
To: Antonio Navarro Navarro <hostmaster(at)bemarnet(dot)es>
Cc: pgsql-interfaces(at)hub(dot)org
Subject: Re: Python + PostgreSQL
Date: 2000-08-02 21:48:51
Message-ID: Pine.GHP.4.21.0008021440410.10797-100000@raptor.csrv.uidaho.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

I used the Postgresql python package to write a program. I couldn't find
any documentation either. Examples come in the RedHat package.

I used qit like this:
from pg import DB
cnx = DB("database-name")
cnx.query("""CREATE TABLE ...""")

You can see the full application at http://deodas.sourceforge.net/. Thqe
parts in the the file DEODAS/deodas/src/deodas_mod.py under CVS web.

Karl Diedrich
died9501(at)uidaho(dot)edu
http://www.uidaho.edu/~died9501/
http://deodas.sourceforge.net/

On Wed, 2 Aug 2000, Antonio Navarro Navarro wrote:

> Hi All !
>
> I have installed postgresql-python-7.0.2-2.i386.rpm in a RedHat 6.2 box.
> Where can I find documentation for this module ? I'm trying to connect to a
> server but the python says 'no password supplied'
>
> import pg
>
> dg = pg.connect("template1", "localhost", 5432)
>
> Regards,
>
> Antonio Navarro Navarro
> BemarNet Management
> http://www.bemarnet.es
> hostmaster(at)bemarnet(dot)es
> Tlf. +34-96-1656644
> Fax. +34-96-1656514
>

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message tomas 2000-08-03 05:08:18 Re: [OT] init.d [was: Re: And Furthermore. Was: PSQL Working, but PGAccess Not Connecting.]
Previous Message Chris Ryan 2000-08-02 21:03:26 PgSql ODBC + Coldfusion + Solaris