[DB-SIG] pypg pure Python db driver for Postgresql

Marcos Sánchez Provencio marcos at burke.ath.cx
Tue Jul 12 09:16:29 CEST 2005


Of course, there is an obvious question: How is performance?


El lun, 11-07-2005 a las 22:59 -0500, Randall Smith escribió:
> I've been toying with the idea of pure Python database drivers such as 
> Java jdbc type 4 drivers.
> 
> I replaced the C portion of PyGreSQL to form a Python driver I'm calling 
> pypg.  You can download it from the location below.
> 
> http://www.tnr.cc/pypg.html
> 
> It's alpha so expect problems, but in my testing it works fine for 
> normal operations.
> 
> It speaks PG v3 protocol directly and it was easier to get working than 
> I expected.  I'm new to sockets and would really appreciate feedback on 
> the networking portion of the code.
> 
> Many will probably ask me why not just use the existing drivers?   The 
> same reasons pure Java drivers exist.  They're ultra portable and 
> eliminate dependencies.  Ever used Oracle with Python?  It sucks having 
> to install those dependencies, especially on Linux.  I use an 
> application called Aqua Data Studio that ships with type 4 java drivers 
> and that is very nice.  I too would like to be able to include db 
> drivers with an app.  Another reason I'm doing it is because it is fun 
> and educational.
> 
> I look forward to constructive criticism.
> 
> Randall
> 
> 
> _______________________________________________
> DB-SIG maillist  -  DB-SIG at python.org
> http://mail.python.org/mailman/listinfo/db-sig
-- 
Marcos Sánchez Provencio <marcos at burke.ath.cx>



More information about the DB-SIG mailing list