kulpa / google-api-python-client

Automatically exported from code.google.com/p/google-api-python-client
Other
0 stars 0 forks source link

MediaIOBaseDownload readable IOBase alternative #177

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the product are you using? On what operating system?
1.0c2 Ubuntu/Mac

Please provide any additional information below.
Instead of or in addition to the current MediaIOBaseDownload that takes a 
writable IOBase object in its constructor and then the developer must manually 
call next_chunk() to "pump" the download, it would be nice if there was one 
that just had a method that returned a readable IOBase object that reported 
seekable() and would issue the necessary requests to the cached service / http 
objects to get the data, potentially (1) reading multiple chunks, (2) buffering 
according to a policy, (3) retrying the download in the case of refreshing the 
access token or retryable errors, (4) locking to the current version (using 
ETag/last modified time) and throwing IOError if the version changes, or 
locking to the latest version according to a policy.

Original issue reported on code.google.com by nherr...@google.com on 17 Aug 2012 at 1:28

GoogleCodeExporter commented 9 years ago
The Java edition of this issue is 
http://code.google.com/p/google-api-java-client/issues/detail?id=580

Original comment by nherr...@google.com on 17 Aug 2012 at 1:31

GoogleCodeExporter commented 9 years ago

Original comment by jcgregorio@google.com on 21 Aug 2012 at 6:08

GoogleCodeExporter commented 9 years ago
The Java edition of this issue is (now) 
http://code.google.com/p/google-api-java-client/issues/detail?id=633

Original comment by nherr...@google.com on 16 Oct 2012 at 8:55