def get_urls():
 try:
  (__, __, port) = get_pid()
  urls = []
  for addr in get_ip_addresses():
   urls.append('http://{}:{}/'.format(addr, port))
  return (STATUS_RUNNING, urls)
 except NotRunning as e:
  return (e.status_code, [])

def get_urls ( ) : try : ( __ , __ , port ) = get_pid ( ) urls = [ ] for addr in get_ip_addresses ( ) : urls . append ( 'http://{}:{}/' . format ( addr , port ) ) return ( STATUS_RUNNING , urls ) except NotRunning as e : return ( e . status_code , [ ] )
fetch a list of urls :returns: status_code .