• Home
  • Raw
  • Download

Lines Matching full:download

17 """Upload and download support for apitools."""
39 'Download',
55 """Print download progress based on response."""
63 """Print information about a completed download."""
64 print('Download complete')
138 """Initialize this download by setting self.http and self.url.
184 class Download(_Transfer): class
186 """Data for a single download.
203 super(Download, self).__init__(stream, **kwds)
222 """Create a new download object from a filename."""
232 """Create a new Download object from a stream."""
239 """Create a new Download object from a stream and serialized data."""
246 download = cls.FromStream(stream, **kwds)
248 download.auto_transfer = auto_transfer
250 download.auto_transfer = info['auto_transfer']
251 setattr(download, '_Download__progress', info['progress'])
252 setattr(download, '_Download__total_size', info['total_size'])
253 download._Initialize( # pylint: disable=protected-access
255 return download
273 return 'Download (uninitialized)'
274 return 'Download with %d/%s bytes transferred from url %s' % (
281 # httplib2's download method (as gsutil does) so that this is not
298 """Initialize this download by making a request.
301 http_request: The HttpRequest to use to initialize this download.
428 # download.
432 # of a 0-byte download to a file, as otherwise python won't
439 """Retrieve a given byte range from this download, inclusive.
482 'Zero bytes unexpectedly returned in download response')
486 """Stream the entire download in chunks."""
493 """Stream the entire download.
499 download is complete.
503 and stream this download in a single request.