Lukasa / requests-ftp

An FTP transport adapter for use with the Python Requests library.
Other
69 stars 25 forks source link

fetches entire content into memory first even with stream=True? (via BytesIO etc) #24

Open yarikoptic opened 8 years ago

yarikoptic commented 8 years ago

didn't dig inside but my requests-based code [1] has failed while I was accessing ftp url and expected the requests.models.Response.raw having .stream method (since apparently for http it provided by requests.packages.urllib3.response.HTTPResponse). With requests_ftp, I just got BytesIO object, which was apparently downloaded in full while establishing the session using FTPSession.get(url, stream=True). So, streaming of the content is not "supported" (yet)? FWIW requests_ftp v 0.3.1 installed from pip

[1] if not scared, check it here

Lukasa commented 8 years ago

Yup, there is no stream support here.