(self, file: utils.clean_file_t, **kwargs: base.CommonArgs)
return self._client.request('/object/put', decoder='json', data=body,
		                            headers=headers, **kwargs)
Stores input as a DAG object and returns its key.
		
		.. code-block:: python
		
			>>> client.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
			(JSON) object from which the DAG object will be created
		
		Returns
		-------
			dict
				Hash and links of the created DAG object
				
				See the :meth:`~ipfshttpclient.Client.object.links` method for
				details.
Stores input as a DAG object and returns its key.
		
		.. code-block:: python
		
			>>> client.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
			(JSON) object from which the DAG object will be created
		
		Returns
		-------
			dict
				Hash and links of the created DAG object
				
				See the :meth:`~ipfshttpclient.Client.object.links` method for
				details.
Stores input as a DAG object and returns its key . .. code - block :: python >>> client . 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 ( JSON ) object from which the DAG object will be created Returns ------- dict Hash and links of the created DAG object See the : meth : ~ipfshttpclient . Client . object . links method for details .
def put(self, file: utils.clean_file_t, **kwargs: base.CommonArgs):
		"""Stores input as a DAG object and returns its key.
		
		.. code-block:: python
		
			>>> client.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
			(JSON) object from which the DAG object will be created
		
		Returns
		-------
			dict
				Hash and links of the created DAG object
				
				See the :meth:`~ipfshttpclient.Client.object.links` method for
				details.
		"""
		body, headers = multipart.stream_files(file, chunk_size=self.chunk_size)
		return self._client.request('/object/put', decoder='json', data=body,
		                            headers=headers, **kwargs)
def put ( self , file : utils . clean_file_t , * * kwargs : base . CommonArgs ) : body , headers = multipart . stream_files ( file , chunk_size = self . chunk_size ) return self . _client . request ( '/object/put' , decoder = 'json' , data = body , headers = headers , * * kwargs )