(self, cid: base.cid_t, new_data: utils.clean_file_t,
	                **kwargs: base.CommonArgs)
return self._client.request('/object/patch/append-data', args, decoder='json',
		                            data=body, headers=headers, **kwargs)
Creates a new merkledag object based on an existing one
		
		The new object will have the same links as the previous object, but with
		the provided data appended to it.
		
		.. code-block:: python
		
			>>> client.object.patch.append_data("QmZZmY … fTqm", io.BytesIO(b"bla"))
			{'Hash': 'QmR79zQQj2aDfnrNgczUhvf2qWapEfQ82YQRt3QjrbhSb2'}
		
		Parameters
		----------
		cid
			The hash of an ipfs object to modify
		new_data
			The data to append to the object's data section
		
		Returns
		-------
			dict
		
		+------+----------------------------------+
		| Hash | Hash of the newly derived object |
		+------+----------------------------------+
Creates a new merkledag object based on an existing one
		
		The new object will have the same links as the previous object, but with
		the provided data appended to it.
		
		.. code-block:: python
		
			>>> client.object.patch.append_data("QmZZmY … fTqm", io.BytesIO(b"bla"))
			{'Hash': 'QmR79zQQj2aDfnrNgczUhvf2qWapEfQ82YQRt3QjrbhSb2'}
		
		Parameters
		----------
		cid
			The hash of an ipfs object to modify
		new_data
			The data to append to the object's data section
		
		Returns
		-------
			dict
		
		+------+----------------------------------+
		| Hash | Hash of the newly derived object |
		+------+----------------------------------+
Creates a new merkledag object based on an existing one The new object will have the same links as the previous object but with the provided data appended to it . .. code - block :: python >>> client . object . patch . append_data ( QmZZmY … fTqm io . BytesIO ( b bla )) { Hash : QmR79zQQj2aDfnrNgczUhvf2qWapEfQ82YQRt3QjrbhSb2 } Parameters ---------- cid The hash of an ipfs object to modify new_data The data to append to the object s data section Returns ------- dict + ------ + ---------------------------------- + | Hash | Hash of the newly derived object | + ------ + ---------------------------------- +
def append_data(self, cid: base.cid_t, new_data: utils.clean_file_t,
	                **kwargs: base.CommonArgs):
		"""Creates a new merkledag object based on an existing one
		
		The new object will have the same links as the previous object, but with
		the provided data appended to it.
		
		.. code-block:: python
		
			>>> client.object.patch.append_data("QmZZmY … fTqm", io.BytesIO(b"bla"))
			{'Hash': 'QmR79zQQj2aDfnrNgczUhvf2qWapEfQ82YQRt3QjrbhSb2'}
		
		Parameters
		----------
		cid
			The hash of an ipfs object to modify
		new_data
			The data to append to the object's data section
		
		Returns
		-------
			dict
		
		+------+----------------------------------+
		| Hash | Hash of the newly derived object |
		+------+----------------------------------+
		"""
		args = (str(cid),)
		body, headers = multipart.stream_files(new_data, chunk_size=self.chunk_size)
		return self._client.request('/object/patch/append-data', args, decoder='json',
		                            data=body, headers=headers, **kwargs)
def append_data ( self , cid : base . cid_t , new_data : utils . clean_file_t , * * kwargs : base . CommonArgs ) : args = ( str ( cid ) , ) body , headers = multipart . stream_files ( new_data , chunk_size = self . chunk_size ) return self . _client . request ( '/object/patch/append-data' , args , decoder = 'json' , data = body , headers = headers , * * kwargs )