PDA

View Full Version : Wich is best: urllib(2),httplib(2) ?



baskar007
January 13th, 2010, 01:43 PM
hi friends,
i have an idea to build an small web application in python, For the web interface python have these modules and so..

i want to know which module is fast and stable for download and parallel (thread) connections?

httplib,
httplib2,
urllib,
urllib2
or other that you know

friends give your opinion,

thanks in advance.

zippaplick
January 13th, 2010, 07:32 PM
urllib2 should do just fine. I use it to make many threaded/parallel requests.

This doc covers it nicely:

http://www.voidspace.org.uk/python/articles/urllib2.shtml

baskar007
January 15th, 2010, 10:58 AM
thanks

MOdMac
January 20th, 2010, 11:42 AM
httplib2 is the most feature rich lib.
Its particularly good if you want to interface with web sevices. Gives you support for different kinds of authentication, compression and supports client caching.

baskar007
January 20th, 2010, 02:00 PM
I am using httplib, because all of other modules are seemes to be little slow in threading connections.

thanks for your reply.