开发者

python library for file upload and persistent connections? [closed]

开发者 https://www.devze.com 2022-12-22 03:41 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

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 question

I 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消