parameters: (self, fp, headers=None,
                               cb=None, num_cb=10,
                               torrent=False,
                               version_id=None,
                               res_download_handler=None,
                               response_headers=None)
docstring: Retrieve an object from S3 using the name of the Key object as the
          key in S3.  Write the contents of the object to the file pointed
          to by 'fp'.
  
          :type fp: File -like object
          :param fp:
  
          :type headers: dict
          :param headers: additional HTTP headers that will be sent with
              the GET request.
  
          :type cb: function
          :param cb: a callback function that will be called to report
              progress on the upload.  The callback should accept two
              integer parameters, the first representing the number of
              bytes that have been successfully transmitted to S3 and
              the second representing the size of the to be transmitted
              object.
  
          :type cb: int
          :param num_cb: (optional) If a callback is specified with the
              cb parameter this parameter determines the granularity of
              the callback by defining the maximum number of times the
              callback will be called during the file transfer.
  
          :type torrent: bool
          :param torrent: If True, returns the contents of a torrent
              file as a string.
  
          :type res_upload_handler: ResumableDownloadHandler
          :param res_download_handler: If provided, this handler will
              perform the download.
  
          :type response_headers: dict
          :param response_headers: A dictionary containing HTTP
              headers/values that will override any headers associated
              with the stored object in the response.  See
              http://goo.gl/EWOPb for details.
  
          :type version_id: str
          :param version_id: The ID of a particular version of the object.
              If this parameter is not supplied but the Key object has
              a ``version_id`` attribute, that value will be used when
              retrieving the object.  You can set the Key object's
              ``version_id`` attribute to None to always grab the latest
              version from a version-enabled bucket.
docstring_summary: Retrieve an object from S3 using the name of the Key object as the
          key in S3.  Write the contents of the object to the file pointed
          to by 'fp'.
docstring_tokens: Retrieve an object from S3 using the name of the Key object as the key in S3 . Write the contents of the object to the file pointed to by fp .
function: def get_contents_to_file(self, fp, headers=None,
                               cb=None, num_cb=10,
                               torrent=False,
                               version_id=None,
                               res_download_handler=None,
                               response_headers=None):
          """
          Retrieve an object from S3 using the name of the Key object as the
          key in S3.  Write the contents of the object to the file pointed
          to by 'fp'.
  
          :type fp: File -like object
          :param fp:
  
          :type headers: dict
          :param headers: additional HTTP headers that will be sent with
              the GET request.
  
          :type cb: function
          :param cb: a callback function that will be called to report
              progress on the upload.  The callback should accept two
              integer parameters, the first representing the number of
              bytes that have been successfully transmitted to S3 and
              the second representing the size of the to be transmitted
              object.
  
          :type cb: int
          :param num_cb: (optional) If a callback is specified with the
              cb parameter this parameter determines the granularity of
              the callback by defining the maximum number of times the
              callback will be called during the file transfer.
  
          :type torrent: bool
          :param torrent: If True, returns the contents of a torrent
              file as a string.
  
          :type res_upload_handler: ResumableDownloadHandler
          :param res_download_handler: If provided, this handler will
              perform the download.
  
          :type response_headers: dict
          :param response_headers: A dictionary containing HTTP
              headers/values that will override any headers associated
              with the stored object in the response.  See
              http://goo.gl/EWOPb for details.
  
          :type version_id: str
          :param version_id: The ID of a particular version of the object.
              If this parameter is not supplied but the Key object has
              a ``version_id`` attribute, that value will be used when
              retrieving the object.  You can set the Key object's
              ``version_id`` attribute to None to always grab the latest
              version from a version-enabled bucket.
          """
          if self.bucket is not None:
              if res_download_handler:
                  res_download_handler.get_file(self, fp, headers, cb, num_cb,
                                                torrent=torrent,
                                                version_id=version_id)
              else:
                  self.get_file(fp, headers, cb, num_cb, torrent=torrent,
                                version_id=version_id,
                                response_headers=response_headers)
function_tokens: def get_contents_to_file ( self , fp , headers = None , cb = None , num_cb = 10 , torrent = False , version_id = None , res_download_handler = None , response_headers = None ) : if self . bucket is not None : if res_download_handler : res_download_handler . get_file ( self , fp , headers , cb , num_cb , torrent = torrent , version_id = version_id ) else : self . get_file ( fp , headers , cb , num_cb , torrent = torrent , version_id = version_id , response_headers = response_headers )