(self, ipfs_path: str,
	            resolve: bool = True, lifetime: ty.Union[str, int] = "24h",
	            ttl: ty.Union[str, int] = None, key: str = None,
	            allow_offline: bool = False, **kwargs: base.CommonArgs)
return self._client.request('/name/publish', args, decoder='json', **kwargs)
Publishes an object to IPNS
		
		IPNS is a PKI namespace, where names are the hashes of public keys, and
		the private key enables publishing new (signed) values. In publish, the
		default value of *name* is your own identity public key.
		
		.. code-block:: python
		
			>>> client.name.publish('/ipfs/QmfZY61ukoQuCX8e5Pt7v8pRfhkyxwZK … GZ5d')
			{'Value': '/ipfs/QmfZY61ukoQuCX8e5Pt7v8pRfhkyxwZKZMTodAtmvyGZ5d',
			 'Name': 'QmVgNoP89mzpgEAAqK8owYoDEyB97MkcGvoWZir8otE9Uc'}
		
		Parameters
		----------
		ipfs_path
			IPFS path of the object to be published
		allow_offline
			 When offline, save the IPNS record to the the local
			 datastore without broadcasting to the network instead
			 of simply failing.
		lifetime
			Time duration that the record will be valid for
			
			Accepts durations such as ``"300s"``, ``"1.5h"`` or ``"2h45m"``.
			Valid units are:
			
			 * ``"ns"``
			 * ``"us"`` (or ``"µs"``)
			 * ``"ms"``
			 * ``"s"``
			 * ``"m"``
			 * ``"h"``
		resolve
			Resolve given path before publishing
		ttl
			Time duration this record should be cached for.
			Same syntax like 'lifetime' option. (experimental feature)
		key
			Name of the key to be used, as listed by 'ipfs key list'.
		
		Returns
		-------
			dict
		
		+-------+----------------------------------------------------------+
		| Name  | Key ID of the key to which the given value was published |
		+-------+----------------------------------------------------------+
		| Value | Value that was published                                 |
		+-------+----------------------------------------------------------+
Publishes an object to IPNS
		
		IPNS is a PKI namespace, where names are the hashes of public keys, and
		the private key enables publishing new (signed) values. In publish, the
		default value of *name* is your own identity public key.
		
		.. code-block:: python
		
			>>> client.name.publish('/ipfs/QmfZY61ukoQuCX8e5Pt7v8pRfhkyxwZK … GZ5d')
			{'Value': '/ipfs/QmfZY61ukoQuCX8e5Pt7v8pRfhkyxwZKZMTodAtmvyGZ5d',
			 'Name': 'QmVgNoP89mzpgEAAqK8owYoDEyB97MkcGvoWZir8otE9Uc'}
		
		Parameters
		----------
		ipfs_path
			IPFS path of the object to be published
		allow_offline
			 When offline, save the IPNS record to the the local
			 datastore without broadcasting to the network instead
			 of simply failing.
		lifetime
			Time duration that the record will be valid for
			
			Accepts durations such as ``"300s"``, ``"1.5h"`` or ``"2h45m"``.
			Valid units are:
			
			 * ``"ns"``
			 * ``"us"`` (or ``"µs"``)
			 * ``"ms"``
			 * ``"s"``
			 * ``"m"``
			 * ``"h"``
		resolve
			Resolve given path before publishing
		ttl
			Time duration this record should be cached for.
			Same syntax like 'lifetime' option. (experimental feature)
		key
			Name of the key to be used, as listed by 'ipfs key list'.
		
		Returns
		-------
			dict
		
		+-------+----------------------------------------------------------+
		| Name  | Key ID of the key to which the given value was published |
		+-------+----------------------------------------------------------+
		| Value | Value that was published                                 |
		+-------+----------------------------------------------------------+
Publishes an object to IPNS IPNS is a PKI namespace where names are the hashes of public keys and the private key enables publishing new ( signed ) values . In publish the default value of * name * is your own identity public key . .. code - block :: python >>> client . name . publish ( / ipfs / QmfZY61ukoQuCX8e5Pt7v8pRfhkyxwZK … GZ5d ) { Value : / ipfs / QmfZY61ukoQuCX8e5Pt7v8pRfhkyxwZKZMTodAtmvyGZ5d Name : QmVgNoP89mzpgEAAqK8owYoDEyB97MkcGvoWZir8otE9Uc } Parameters ---------- ipfs_path IPFS path of the object to be published allow_offline When offline save the IPNS record to the the local datastore without broadcasting to the network instead of simply failing . lifetime Time duration that the record will be valid for Accepts durations such as 300s 1 . 5h or 2h45m . Valid units are : * ns * us ( or µs ) * ms * s * m * h resolve Resolve given path before publishing ttl Time duration this record should be cached for . Same syntax like lifetime option . ( experimental feature ) key Name of the key to be used as listed by ipfs key list . Returns ------- dict + ------- + ---------------------------------------------------------- + | Name | Key ID of the key to which the given value was published | + ------- + ---------------------------------------------------------- + | Value | Value that was published | + ------- + ---------------------------------------------------------- +
def publish(self, ipfs_path: str,
	            resolve: bool = True, lifetime: ty.Union[str, int] = "24h",
	            ttl: ty.Union[str, int] = None, key: str = None,
	            allow_offline: bool = False, **kwargs: base.CommonArgs):
		"""Publishes an object to IPNS
		
		IPNS is a PKI namespace, where names are the hashes of public keys, and
		the private key enables publishing new (signed) values. In publish, the
		default value of *name* is your own identity public key.
		
		.. code-block:: python
		
			>>> client.name.publish('/ipfs/QmfZY61ukoQuCX8e5Pt7v8pRfhkyxwZK … GZ5d')
			{'Value': '/ipfs/QmfZY61ukoQuCX8e5Pt7v8pRfhkyxwZKZMTodAtmvyGZ5d',
			 'Name': 'QmVgNoP89mzpgEAAqK8owYoDEyB97MkcGvoWZir8otE9Uc'}
		
		Parameters
		----------
		ipfs_path
			IPFS path of the object to be published
		allow_offline
			 When offline, save the IPNS record to the the local
			 datastore without broadcasting to the network instead
			 of simply failing.
		lifetime
			Time duration that the record will be valid for
			
			Accepts durations such as ``"300s"``, ``"1.5h"`` or ``"2h45m"``.
			Valid units are:
			
			 * ``"ns"``
			 * ``"us"`` (or ``"µs"``)
			 * ``"ms"``
			 * ``"s"``
			 * ``"m"``
			 * ``"h"``
		resolve
			Resolve given path before publishing
		ttl
			Time duration this record should be cached for.
			Same syntax like 'lifetime' option. (experimental feature)
		key
			Name of the key to be used, as listed by 'ipfs key list'.
		
		Returns
		-------
			dict
		
		+-------+----------------------------------------------------------+
		| Name  | Key ID of the key to which the given value was published |
		+-------+----------------------------------------------------------+
		| Value | Value that was published                                 |
		+-------+----------------------------------------------------------+
		"""
		opts = {"lifetime": str(lifetime),
		        "resolve": resolve,
		        "allow-offline": allow_offline}
		if ttl:
			opts["ttl"] = str(ttl)
		if key:
			opts["key"] = key
		kwargs.setdefault("opts", {}).update(opts)
		
		args = (ipfs_path,)
		return self._client.request('/name/publish', args, decoder='json', **kwargs)
def publish ( self , ipfs_path : str , resolve : bool = True , lifetime : ty . Union [ str , int ] = "24h" , ttl : ty . Union [ str , int ] = None , key : str = None , allow_offline : bool = False , * * kwargs : base . CommonArgs ) : opts = { "lifetime" : str ( lifetime ) , "resolve" : resolve , "allow-offline" : allow_offline } if ttl : opts [ "ttl" ] = str ( ttl ) if key : opts [ "key" ] = key kwargs . setdefault ( "opts" , { } ) . update ( opts ) args = ( ipfs_path , ) return self . _client . request ( '/name/publish' , args , decoder = 'json' , * * kwargs )