(self, peer: str, *peers: str, count: int = 10,
	         **kwargs: base.CommonArgs)
return self._client.request('/ping', args, decoder='json', **kwargs)
Provides round-trip latency information for the routing system.
		
		Finds nodes via the routing system, sends pings, waits for pongs,
		and prints out round-trip latency information.
		
		.. code-block:: python
		
			>>> client.ping("QmTzQ1JRkWErjk39mryYw2WVaphAZNAREyMchXzYQ7c15n")
			[{'Success': True,  'Time': 0,
			  'Text': 'Looking up peer QmTzQ1JRkWErjk39mryYw2WVaphAZN … c15n'},
			 {'Success': False, 'Time': 0,
			  'Text': 'Peer lookup error: routing: not found'}]
		
		.. hint::
		
			Pass ``stream=True`` to receive ping progress reports as they
			arrive.
		
		Parameters
		----------
		peer
			ID of peer(s) to be pinged
		count
			Number of ping messages to send
		
		Returns
		-------
			list
				Progress reports from the ping
Provides round-trip latency information for the routing system.
		
		Finds nodes via the routing system, sends pings, waits for pongs,
		and prints out round-trip latency information.
		
		.. code-block:: python
		
			>>> client.ping("QmTzQ1JRkWErjk39mryYw2WVaphAZNAREyMchXzYQ7c15n")
			[{'Success': True,  'Time': 0,
			  'Text': 'Looking up peer QmTzQ1JRkWErjk39mryYw2WVaphAZN … c15n'},
			 {'Success': False, 'Time': 0,
			  'Text': 'Peer lookup error: routing: not found'}]
		
		.. hint::
		
			Pass ``stream=True`` to receive ping progress reports as they
			arrive.
		
		Parameters
		----------
		peer
			ID of peer(s) to be pinged
		count
			Number of ping messages to send
		
		Returns
		-------
			list
				Progress reports from the ping
Provides round - trip latency information for the routing system . Finds nodes via the routing system sends pings waits for pongs and prints out round - trip latency information . .. code - block :: python >>> client . ping ( QmTzQ1JRkWErjk39mryYw2WVaphAZNAREyMchXzYQ7c15n ) [ { Success : True Time : 0 Text : Looking up peer QmTzQ1JRkWErjk39mryYw2WVaphAZN … c15n } { Success : False Time : 0 Text : Peer lookup error : routing : not found } ] .. hint :: Pass stream = True to receive ping progress reports as they arrive . Parameters ---------- peer ID of peer ( s ) to be pinged count Number of ping messages to send Returns ------- list Progress reports from the ping
def ping(self, peer: str, *peers: str, count: int = 10,
	         **kwargs: base.CommonArgs):
		"""Provides round-trip latency information for the routing system.
		
		Finds nodes via the routing system, sends pings, waits for pongs,
		and prints out round-trip latency information.
		
		.. code-block:: python
		
			>>> client.ping("QmTzQ1JRkWErjk39mryYw2WVaphAZNAREyMchXzYQ7c15n")
			[{'Success': True,  'Time': 0,
			  'Text': 'Looking up peer QmTzQ1JRkWErjk39mryYw2WVaphAZN … c15n'},
			 {'Success': False, 'Time': 0,
			  'Text': 'Peer lookup error: routing: not found'}]
		
		.. hint::
		
			Pass ``stream=True`` to receive ping progress reports as they
			arrive.
		
		Parameters
		----------
		peer
			ID of peer(s) to be pinged
		count
			Number of ping messages to send
		
		Returns
		-------
			list
				Progress reports from the ping
		"""
		kwargs.setdefault("opts", {})["count"] = count
		
		args = (peer,) + peers
		return self._client.request('/ping', args, decoder='json', **kwargs)
def ping ( self , peer : str , * peers : str , count : int = 10 , * * kwargs : base . CommonArgs ) : kwargs . setdefault ( "opts" , { } ) [ "count" ] = count args = ( peer , ) + peers return self . _client . request ( '/ping' , args , decoder = 'json' , * * kwargs )