def non_structured_query(table, query=None, **kwargs):
 client = _get_client()
 client.table = table
 if (query is None):
  query_parts = []
  for (key, value) in kwargs.items():
   query_parts.append('{0}={1}'.format(key, value))
  query = '^'.join(query_parts)
 query = str(query)
 response = client.get(query)
 return response

def non_structured_query ( table , query = None , ** kwargs ) : client = _get_client ( ) client . table = table if ( query is None ) : query_parts = [ ] for ( key , value ) in kwargs . items ( ) : query_parts . append ( '{0}={1}' . format ( key , value ) ) query = '^' . join ( query_parts ) query = str ( query ) response = client . get ( query ) return response
run a non-structed query on a servicenow table .