We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 开发者_开发问答years ago.
Improve this questionI tried urllib{2}, pycurl and I'm looking at twisted's new http client. But:
- I found urllib2 difficult to perform a file upload
- pycurl multi looks right but unpythonic
- twisted's http client does not support persistent connection (didn't check the file upload capability)
Is there any other alternative?
PiCloud's library uses urllib2_file which easily does upload via multipart data. I forget where we got the module (we later modified it). the urllib2_file is covered under a BSD license.
I rolled my own on top of httplib
before discovering urllib3, which does both of these things.
精彩评论