code: def object_put(self, file, **kwargs):
          
          body, headers = multipart.stream_files(file, self.chunk_size)
          return self._client.request('/object/put', decoder='json',
                                      data=body, headers=headers, **kwargs)
docs: Stores input as a DAG object and returns its key.
  
          .. code-block:: python
  
              >>> c.object_put(io.BytesIO(b'''
              ...       {
              ...           "Data": "another",
              ...           "Links": [ {
              ...               "Name": "some link",
              ...               "Hash": "QmXg9Pp2ytZ14xgmQjYEiHjVjMFXzCV … R39V",
              ...               "Size": 8
              ...           } ]
              ...       }'''))
              {'Hash': 'QmZZmY4KCu9r3e7M2Pcn46Fc5qbn6NpzaAGaYb22kbfTqm',
               'Links': [
                  {'Hash': 'QmXg9Pp2ytZ14xgmQjYEiHjVjMFXzCVVEcRTWJBmLgR39V',
                   'Size': 8, 'Name': 'some link'}
               ]
              }
  
          Parameters
          ----------
          file : io.RawIOBase
              (JSON) object from which the DAG object will be created
  
          Returns
          -------
              dict : Hash and links of the created DAG object
  
                     See :meth:`~ipfsapi.Object.object_links`