(self, file: utils.clean_file_t,
	        **kwargs: base.CommonArgs)
return self._client.request('/block/put', decoder='json', data=body,
		                            headers=headers, **kwargs)
Stores the contents of the given file object as an IPFS block
		
		.. code-block:: python
		
			>>> client.block.put(io.BytesIO(b'Mary had a little lamb'))
				{'Key':  'QmeV6C6XVt1wf7V7as7Yak3mxPma8jzpqyhtRtCvpKcfBb',
				 'Size': 22}
		
		Parameters
		----------
		file
			The data to be stored as an IPFS block
		
		Returns
		-------
			dict
				Information about the new block
				
				See :meth:`~ipfshttpclient.Client.block.stat`
Stores the contents of the given file object as an IPFS block
		
		.. code-block:: python
		
			>>> client.block.put(io.BytesIO(b'Mary had a little lamb'))
				{'Key':  'QmeV6C6XVt1wf7V7as7Yak3mxPma8jzpqyhtRtCvpKcfBb',
				 'Size': 22}
		
		Parameters
		----------
		file
			The data to be stored as an IPFS block
		
		Returns
		-------
			dict
				Information about the new block
				
				See :meth:`~ipfshttpclient.Client.block.stat`
Stores the contents of the given file object as an IPFS block .. code - block :: python >>> client . block . put ( io . BytesIO ( b Mary had a little lamb )) { Key : QmeV6C6XVt1wf7V7as7Yak3mxPma8jzpqyhtRtCvpKcfBb Size : 22 } Parameters ---------- file The data to be stored as an IPFS block Returns ------- dict Information about the new block See : meth : ~ipfshttpclient . Client . block . stat
def put(self, file: utils.clean_file_t,
	        **kwargs: base.CommonArgs):
		"""Stores the contents of the given file object as an IPFS block
		
		.. code-block:: python
		
			>>> client.block.put(io.BytesIO(b'Mary had a little lamb'))
				{'Key':  'QmeV6C6XVt1wf7V7as7Yak3mxPma8jzpqyhtRtCvpKcfBb',
				 'Size': 22}
		
		Parameters
		----------
		file
			The data to be stored as an IPFS block
		
		Returns
		-------
			dict
				Information about the new block
				
				See :meth:`~ipfshttpclient.Client.block.stat`
		"""
		body, headers = multipart.stream_files(file, chunk_size=self.chunk_size)
		return self._client.request('/block/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 ( '/block/put' , decoder = 'json' , data = body , headers = headers , * * kwargs )