theelous3 / asks

Async requests-like httplib for python.
MIT License
508 stars 63 forks source link

streaming upload #90

Open alekibango opened 6 years ago

alekibango commented 6 years ago

if i read the code correctly, it is not possible to make PUT request and stream data into it.

But that would be really nice to have. Streaming by chunks of data or from file-like object is really a must for uploading large files...

theelous3 commented 6 years ago

You are correct and this is something that needs to be addressed quite quickly. I'll handle it this weekend.

It's a surprisingly rare use case in terms of programmatic use! I have been long fingering this for a while. I'll make it a priority for you.

alekibango commented 6 years ago

Thanks!

You would be surprized how many libraries ignore such corner cases.

Uploading large files using PUT (which is the only sane method) is painfull or impossible also on server side. They usually think large file is around 100MB. Most pythonic web servers never try uploading file having size over 2 GB.

But i am uploading/accepting at least tens of TB daily.... :) it really makes a difference to me.

derfred commented 4 years ago

Is there any update on this? I have a similar use-case.