Re: Python + PostgreSQL

From: Antonio Navarro Navarro <hostmaster(at)bemarnet(dot)es>
To: Karl Thomas Diedrich <died9501(at)uidaho(dot)edu>
Cc: pgsql-interfaces(at)hub(dot)org
Subject: Re: Python + PostgreSQL
Date: 2000-08-03 07:02:43
Message-ID: 4.1.20000803090050.00c9adb0@pop3.bemarnet.es
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

At 14.48 2/8/00 -0700, Karl Thomas Diedrich wrote:

>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.

Hi Karl !

Yes, this works for localhost and for servers that don't need user
authentication, but I need to connect to a remote server using an specific
username and password... Anyone can help ?

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

Browse pgsql-interfaces by date

  From Date Subject
Next Message Ulf Mehlig 2000-08-03 11:00:03 field sep in psql
Previous Message Peter Mount 2000-08-03 06:42:06 RE: JDBC driver writes binary data ONLY as Large Obj ect