smartfile / client-python

SmartFile API Client (Python).
http://app.smartfile.com/api/
MIT License
20 stars 7 forks source link

Return a response object instead of response.raw #4

Closed travcunn closed 10 years ago

travcunn commented 11 years ago

Instead of returning Response.raw, return the Response object, in case we want to do other advanced things with Python Requests, such as those here: http://www.python-requests.org/en/latest/api/#requests.Response

I wanted to take advantage of Response.iter_content() so that I wouldn't have to load an entire file into memory before writing it to the disk. This wasn't possible before, as _do_request() was returning Response.raw.

coveralls commented 11 years ago

Coverage Status

Coverage remained the same when pulling eae16d3c63b4eb80079ab752feddfb37acb0ca32 on travcunn:master into 35303c700099e3b3db3b9b06a7337df0f435150f on smartfile:master.

coveralls commented 11 years ago

Coverage Status

Coverage remained the same when pulling b2b400ce4e024c4951e40fc23891419bba64f87c on travcunn:master into 35303c700099e3b3db3b9b06a7337df0f435150f on smartfile:master.

coveralls commented 10 years ago

Coverage Status

Coverage increased (+0.73%) when pulling 99105bfe7aefc6344921f97f49fde7d0b0aa6e7a on travcunn:master into 35303c700099e3b3db3b9b06a7337df0f435150f on smartfile:master.