(self, data: utils.clean_file_t, format: str = 'cbor',
	        input_enc: str = 'json', **kwargs: base.CommonArgs)
return self._client.request('/dag/put', decoder='json', data=body,
		                            headers=headers, **kwargs)
Decodes the given input file as a DAG object and returns their key

		.. code-block:: python

			>>> client.dag.put(io.BytesIO(b'''
			...       {
			...           "Data": "another",
			...           "Links": [ {
			...               "Name": "some link",
			...               "Hash": "QmXg9Pp2ytZ14xgmQjYEiHjVjMFXzCV … R39V",
			...               "Size": 8
			...           } ]
			...       }'''))
			{'Cid': {
					'/': 'bafyreifgjgbmtykld2e3yncey3naek5xad3h4m2pxmo3of376qxh54qk34'
				}
			}

		Parameters
		----------
		data
			IO stream object of path to a file containing the data to put
		format
			Format that the object will be added as. Default: cbor
		input_enc
			Format that the input object will be. Default: json

		Returns
		-------
			dict
				Cid with the address of the dag object
Decodes the given input file as a DAG object and returns their key
Decodes the given input file as a DAG object and returns their key
def put(self, data: utils.clean_file_t, format: str = 'cbor',
	        input_enc: str = 'json', **kwargs: base.CommonArgs):
		"""Decodes the given input file as a DAG object and returns their key

		.. code-block:: python

			>>> client.dag.put(io.BytesIO(b'''
			...       {
			...           "Data": "another",
			...           "Links": [ {
			...               "Name": "some link",
			...               "Hash": "QmXg9Pp2ytZ14xgmQjYEiHjVjMFXzCV … R39V",
			...               "Size": 8
			...           } ]
			...       }'''))
			{'Cid': {
					'/': 'bafyreifgjgbmtykld2e3yncey3naek5xad3h4m2pxmo3of376qxh54qk34'
				}
			}

		Parameters
		----------
		data
			IO stream object of path to a file containing the data to put
		format
			Format that the object will be added as. Default: cbor
		input_enc
			Format that the input object will be. Default: json

		Returns
		-------
			dict
				Cid with the address of the dag object
		"""
		opts = {'format': format, 'input-enc': input_enc}
		kwargs.setdefault('opts', {}).update(opts)
		body, headers = multipart.stream_files(data, chunk_size=self.chunk_size)
		return self._client.request('/dag/put', decoder='json', data=body,
		                            headers=headers, **kwargs)
def put ( self , data : utils . clean_file_t , format : str = 'cbor' , input_enc : str = 'json' , * * kwargs : base . CommonArgs ) : opts = { 'format' : format , 'input-enc' : input_enc } kwargs . setdefault ( 'opts' , { } ) . update ( opts ) body , headers = multipart . stream_files ( data , chunk_size = self . chunk_size ) return self . _client . request ( '/dag/put' , decoder = 'json' , data = body , headers = headers , * * kwargs )