Re: Python + PostgreSQL

From: Antonio Navarro Navarro <hostmaster(at)bemarnet(dot)es>
To: pgsql-interfaces(at)hub(dot)org
Cc: darcy(at)druid(dot)net
Subject: Re: Python + PostgreSQL
Date: 2000-08-04 07:01:47
Message-ID: 4.1.20000804085946.00ca5f00@pop3.bemarnet.es
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

At 10.05 3/8/00 -0400, darcy(at)druid(dot)net (D'Arcy J.M. Cain) wrote:

>Thus spake Antonio Navarro Navarro
>> 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)
>
>If the server requires a password then you need to supply one here. If
>you don't need a password (i.e. "psql template1" works) then try this.

Hi again !

How must I add the password to the call , maybe

dg = pg.connect("template1", "10.0.0.1", 5432,"username", "password") ?

and where could I find documentation for the different functions supplied
in the package ?

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 David Lloyd-Jones 2000-08-04 07:33:08 Re: Python + PostgreSQL
Previous Message Peter Mount 2000-08-04 06:42:52 RE: JDBC driver writes binary data ONLY as Large Obj ect