

@assure_container
def fetch_object(self, container, obj, include_meta=False, chunk_size=None, size=None, extra_info=None):
    "\n        Fetches the object from storage.\n\n        If 'include_meta' is False, only the bytes representing the\n        stored object are returned.\n\n        Note: if 'chunk_size' is defined, you must fully read the object's\n        contents before making another request.\n\n        If 'size' is specified, only the first 'size' bytes of the object will\n        be returned. If the object if smaller than 'size', the entire object is\n        returned.\n\n        When 'include_meta' is True, what is returned from this method is a\n        2-tuple:\n            Element 0: a dictionary containing metadata about the file.\n            Element 1: a stream of bytes representing the object's contents.\n\n        The 'extra_info' parameter is included for backwards compatibility. It\n        is no longer used at all, and will not be modified with swiftclient\n        info, since swiftclient is not used any more.\n        "
    return container.fetch(obj, include_meta=include_meta, chunk_size=chunk_size, size=size)

dataset/ETHPy150Open rackspace/pyrax/pyrax/object_storage.py ContainerManager.fetch_object/original