parameters: (self, command, params)
return_statement: return self._request(url, method=command_info[0], data=data)
docstring: Send a command to the remote server.
  
          Any path subtitutions required for the URL mapped to the command should be
          included in the command parameters.
  
          :Args:
           - command - A string specifying the command to execute.
           - params - A dictionary of named parameters to send with the command as
             its JSON payload.
docstring_summary: Send a command to the remote server.
docstring_tokens: Send a command to the remote server .
function: def execute(self, command, params):
          """
          Send a command to the remote server.
  
          Any path subtitutions required for the URL mapped to the command should be
          included in the command parameters.
  
          :Args:
           - command - A string specifying the command to execute.
           - params - A dictionary of named parameters to send with the command as
             its JSON payload.
          """
          command_info = self._commands[command]
          assert command_info is not None, 'Unrecognised command %s' % command
          data = utils.dump_json(params)
          path = string.Template(command_info[1]).substitute(params)
          url = '%s%s' % (self._url, path)
          return self._request(url, method=command_info[0], data=data)
function_tokens: def execute ( self , command , params ) : command_info = self . _commands [ command ] assert command_info is not None , 'Unrecognised command %s' % command data = utils . dump_json ( params ) path = string . Template ( command_info [ 1 ] ) . substitute ( params ) url = '%s%s' % ( self . _url , path ) return self . _request ( url , method = command_info [ 0 ] , data = data )