import pgdb con=pgdb.connect('192.168.1.202:acct_am:johnf:passwd') where '192.168.1.202' = the server could be localhost. acct_am = the database johnf = the user passwd = the password for the user and database John