(self, template: ty.Optional[str] = None, **kwargs: base.CommonArgs)
return self._client.request('/object/new', args, decoder='json', **kwargs)
Creates a new object from an IPFS template
		
		By default this creates and returns a new empty merkledag node, but you
		may pass an optional template argument to create a preformatted node.
		
		.. code-block:: python
		
			>>> client.object.new()
			{'Hash': 'QmdfTbBqBPQ7VNxZEYEj14VmRuZBkqFbiwReogJgS1zR1n'}
		
		Parameters
		----------
		template
			Blueprints from which to construct the new object. Possible values:
			
			 * ``"unixfs-dir"``
			 * ``None``
		
		Returns
		-------
			dict
		
		+-------+----------------------------------------+
		| Hash  | The hash of the requested empty object |
		+-------+----------------------------------------+
Creates a new object from an IPFS template
		
		By default this creates and returns a new empty merkledag node, but you
		may pass an optional template argument to create a preformatted node.
		
		.. code-block:: python
		
			>>> client.object.new()
			{'Hash': 'QmdfTbBqBPQ7VNxZEYEj14VmRuZBkqFbiwReogJgS1zR1n'}
		
		Parameters
		----------
		template
			Blueprints from which to construct the new object. Possible values:
			
			 * ``"unixfs-dir"``
			 * ``None``
		
		Returns
		-------
			dict
		
		+-------+----------------------------------------+
		| Hash  | The hash of the requested empty object |
		+-------+----------------------------------------+
Creates a new object from an IPFS template By default this creates and returns a new empty merkledag node but you may pass an optional template argument to create a preformatted node . .. code - block :: python >>> client . object . new () { Hash : QmdfTbBqBPQ7VNxZEYEj14VmRuZBkqFbiwReogJgS1zR1n } Parameters ---------- template Blueprints from which to construct the new object . Possible values : * unixfs - dir * None Returns ------- dict + ------- + ---------------------------------------- + | Hash | The hash of the requested empty object | + ------- + ---------------------------------------- +
def new(self, template: ty.Optional[str] = None, **kwargs: base.CommonArgs):
		"""Creates a new object from an IPFS template
		
		By default this creates and returns a new empty merkledag node, but you
		may pass an optional template argument to create a preformatted node.
		
		.. code-block:: python
		
			>>> client.object.new()
			{'Hash': 'QmdfTbBqBPQ7VNxZEYEj14VmRuZBkqFbiwReogJgS1zR1n'}
		
		Parameters
		----------
		template
			Blueprints from which to construct the new object. Possible values:
			
			 * ``"unixfs-dir"``
			 * ``None``
		
		Returns
		-------
			dict
		
		+-------+----------------------------------------+
		| Hash  | The hash of the requested empty object |
		+-------+----------------------------------------+
		"""
		args = (template,) if template is not None else ()
		return self._client.request('/object/new', args, decoder='json', **kwargs)
def new ( self , template : ty . Optional [ str ] = None , * * kwargs : base . CommonArgs ) : args = ( template , ) if template is not None else ( ) return self . _client . request ( '/object/new' , args , decoder = 'json' , * * kwargs )