summaryrefslogtreecommitdiff
path: root/swiftclient/shell.py
diff options
context:
space:
mode:
authorStuart McLaren <stuart.mclaren@hp.com>2015-02-12 12:34:07 +0000
committerAlistair Coles <alistair.coles@hp.com>2015-03-24 10:45:33 +0000
commitb6457e0f95c2563f745bbfb64c739929bc0dc901 (patch)
tree5dbd15c4261828b691ae097088f41450a8319573 /swiftclient/shell.py
parent925c01ebfbdfb6478a3786f24a9572deae40f8f8 (diff)
downloadpython-swiftclient-b6457e0f95c2563f745bbfb64c739929bc0dc901.tar.gz
Allow reading from object body on download
Currently, get_object returns a generator. This allows access to the object's data in multiples of 'resp_chunk_size'. This patch adds a read function to also allow accessing the object data using read(size). This allows, for example, the consumer of an object (where no byte range has been specified) to read up to certain boundaries while streaming to a new Large Object with segments of a specified size. Reading and chunking can be safely mixed. Related-Bug: 1367925 Co-Authored-By: Clay Gerrard <clay.gerrard@gmail.com> Change-Id: I1cfb67f45afc7015fd896f1a89bebae048871769
Diffstat (limited to 'swiftclient/shell.py')
0 files changed, 0 insertions, 0 deletions