(self, data: bytes, **kwargs)
return self._client.request('/add', decoder='json',
		                            data=body, headers=headers, **kwargs)
Adds a set of bytes as a file to IPFS.

		.. code-block:: python

			>>> client.add_bytes(b"Mary had a little lamb")
			'QmZfF6C9j4VtoCsTp4KSrhYH47QMd3DNXVZBKaxJdhaPab'

		Also accepts and will stream generator objects.

		Parameters
		----------
		data
			Content to be added as a file

		Returns
		-------
			str
				Hash of the added IPFS object
Adds a set of bytes as a file to IPFS.
Adds a set of bytes as a file to IPFS .
def add_bytes(self, data: bytes, **kwargs):
		"""Adds a set of bytes as a file to IPFS.

		.. code-block:: python

			>>> client.add_bytes(b"Mary had a little lamb")
			'QmZfF6C9j4VtoCsTp4KSrhYH47QMd3DNXVZBKaxJdhaPab'

		Also accepts and will stream generator objects.

		Parameters
		----------
		data
			Content to be added as a file

		Returns
		-------
			str
				Hash of the added IPFS object
		"""
		body, headers = multipart.stream_bytes(data, chunk_size=self.chunk_size)
		return self._client.request('/add', decoder='json',
		                            data=body, headers=headers, **kwargs)
def add_bytes ( self , data : bytes , * * kwargs ) : body , headers = multipart . stream_bytes ( data , chunk_size = self . chunk_size ) return self . _client . request ( '/add' , decoder = 'json' , data = body , headers = headers , * * kwargs )