hemlock_rest/hemlock_rest.py
def POST(self):
        """
        POSTs the authentication for the query and returns the query respond
        specific to the user credentials provided.

        :return: returns the results of the query
        """
        try:
            self.data = ast.literal_eval(self.data)
            # !! TODO add no_couchbase flag
            cmd = "hemlock query-data --user "+self.data['user']+" --query "+self.data['query']
            child = pexpect.spawn(cmd)
            child.expect('Password:')
            child.sendline(self.data['password'])
            return child.read()
        except:
            return ""

        POSTs the authentication for the query and returns the query respond
        specific to the user credentials provided.

        :return: returns the results of the query
        
POSTs the authentication for the query and returns the query respond
specific to the user credentials provided.
POSTs the authentication for the query and returns the query respond specific to the user credentials provided .
def POST(self):
        try:
            self.data = ast.literal_eval(self.data)
            cmd = "hemlock query-data --user "+self.data['user']+" --query "+self.data['query']
            child = pexpect.spawn(cmd)
            child.expect('Password:')
            child.sendline(self.data['password'])
            return child.read()
        except:
            return ""
def POST ( self ) : try : self . data = ast . literal_eval ( self . data ) cmd = "hemlock query-data --user " + self . data [ 'user' ] + " --query " + self . data [ 'query' ] child = pexpect . spawn ( cmd ) child . expect ( 'Password:' ) child . sendline ( self . data [ 'password' ] ) return child . read ( ) except : return ""
POSTs the authentication for the query and returns the query respond
specific to the user credentials provided.
POSTs the authentication for the query and returns the query respond specific to the user credentials provided .
"""
        POSTs the authentication for the query and returns the query respond
        specific to the user credentials provided.

        :return: returns the results of the query
        """ # !! TODO add no_couchbase flag
returns the results of the query
returns the results of the query
self