def clientFromString(reactor, description):
 (args, kwargs) = _parse(description)
 aname = args.pop(0)
 name = aname.upper()
 if (name not in _clientParsers):
  plugin = _matchPluginToPrefix(getPlugins(IStreamClientEndpointStringParserWithReactor), name)
  return plugin.parseStreamClient(reactor, *args, **kwargs)
 kwargs = _clientParsers[name](*args, **kwargs)
 return _endpointClientFactories[name](reactor, **kwargs)

def clientFromString ( reactor , description ) : ( args , kwargs ) = _parse ( description ) aname = args . pop ( 0 ) name = aname . upper ( ) if ( name not in _clientParsers ) : plugin = _matchPluginToPrefix ( getPlugins ( IStreamClientEndpointStringParserWithReactor ) , name ) return plugin . parseStreamClient ( reactor , * args , ** kwargs ) kwargs = _clientParsers [ name ] ( * args , ** kwargs ) return _endpointClientFactories [ name ] ( reactor , ** kwargs )
construct a client endpoint from a description string .