(self, data: utils.clean_file_t, **kwargs: base.CommonArgs)
return self._client.request('/dag/import', decoder='json', data=body,
		                            headers=headers, **kwargs)
Imports a .car file with a DAG into IPFS

		.. code-block:: python

			>>> with open('data.car', 'rb') as file
			...     client.dag.imprt(file)
			{'Root': {
					'Cid': {
						'/': 'bafyreidepjmjhvhlvp5eyxqpmyyi7rxwvl7wsglwai3cnvq63komq4tdya'
					}
				}
			}

		*Note*: This method is named ``.imprt`` (rather than ``.import``) to avoid causing a Python
		:exc:`SyntaxError` due to ``import`` being global keyword in Python.

		Parameters
		----------
		data
			IO stream object with data that should be imported

		Returns
		-------
			dict
				Dictionary with the root CID of the DAG imported
Imports a .car file with a DAG into IPFS
Imports a . car file with a DAG into IPFS
def imprt(self, data: utils.clean_file_t, **kwargs: base.CommonArgs):
		"""Imports a .car file with a DAG into IPFS

		.. code-block:: python

			>>> with open('data.car', 'rb') as file
			...     client.dag.imprt(file)
			{'Root': {
					'Cid': {
						'/': 'bafyreidepjmjhvhlvp5eyxqpmyyi7rxwvl7wsglwai3cnvq63komq4tdya'
					}
				}
			}

		*Note*: This method is named ``.imprt`` (rather than ``.import``) to avoid causing a Python
		:exc:`SyntaxError` due to ``import`` being global keyword in Python.

		Parameters
		----------
		data
			IO stream object with data that should be imported

		Returns
		-------
			dict
				Dictionary with the root CID of the DAG imported
		"""
		body, headers = multipart.stream_files(data, chunk_size=self.chunk_size)
		return self._client.request('/dag/import', decoder='json', data=body,
		                            headers=headers, **kwargs)
def imprt ( self , data : utils . clean_file_t , * * kwargs : base . CommonArgs ) : body , headers = multipart . stream_files ( data , chunk_size = self . chunk_size ) return self . _client . request ( '/dag/import' , decoder = 'json' , data = body , headers = headers , * * kwargs )