[DB-SIG] Connecting to PoPy via Python

Nides Nides" <Nides@mediaone.net
Mon, 26 Mar 2001 22:15:03 -0600


This is a multi-part message in MIME format.

------=_NextPart_000_0022_01C0B642.346C8D80
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello!

I am attempting to connect to PoPy via Python.. However I don't think I =
am making a connection.

The following is the code that I am using to connect to PoPy in Python:

import PoPy

db =3D PoPy.connect('dbname=3Dsupplydb host=3Dthales port=3D5432 =
user=3Ddavid')

cr =3D db.cursor()
cr.execute('::::whatever:::')

...Thats what I am doing. If you have any comments, or suggestions I =
would highly appreciate them!!!

Thank You,

David

Nides@mediaone.net

------=_NextPart_000_0022_01C0B642.346C8D80
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello!</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am attempting to connect to PoPy via =
Python..=20
However I don't think I am making a connection.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The following is the code that I am =
using to=20
connect to PoPy in Python:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>import PoPy</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>db =3D PoPy.connect('dbname=3Dsupplydb =
host=3Dthales=20
port=3D5432 user=3Ddavid')</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>cr =3D db.cursor()</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2>cr.execute('::::whatever:::')</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>...Thats what I am doing. If you have =
any comments,=20
or suggestions I would highly appreciate them!!!</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thank You,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>David</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"mailto:Nides@mediaone.net">Nides@mediaone.net</A></FONT></DIV></B=
ODY></HTML>

------=_NextPart_000_0022_01C0B642.346C8D80--