Received: from dns.bemarnet.es (dns.bemarnet.es [212.87.192.226]) by hub.org (8.10.1/8.10.1) with SMTP id e7373WG19308 for ; Thu, 3 Aug 2000 03:03:33 -0400 (EDT) Received: (qmail 16765 invoked from network); 3 Aug 2000 07:03:31 -0000 Received: from server.bemarnet.es (HELO hera) (212.87.192.187) by dns.bemarnet.es with SMTP; 3 Aug 2000 07:03:31 -0000 Message-Id: <4.1.20000803090050.00c9adb0@pop3.bemarnet.es> X-Sender: antonio%bemarnet.es@pop3.bemarnet.es X-Mailer: QUALCOMM Windows Eudora Pro Versión 4.1 Date: Thu, 03 Aug 2000 09:02:43 +0200 To: Karl Thomas Diedrich From: Antonio Navarro Navarro Subject: Re: Python + PostgreSQL Cc: pgsql-interfaces@hub.org In-Reply-To: References: <4.1.20000802123207.00c22a20@pop3.bemarnet.es> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Archive-Number: 200008/32 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@bemarnet.es Tlf. +34-96-1656644 Fax. +34-96-1656514