Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(1)  |  Derive(0)  |  Import(2)
Run a query over the given source data structure.

query_str is the query to be executed and is compiled each time this
function is called.

source is the object to be queried.

raises QueryParseException if query_str is not valid.

returns the results of the query.

        def query(query_str, source):
    """ Run a query over the given source data structure.

        query_str is the query to be executed and is compiled each time this
        function is called.

        source is the object to be queried.

        raises QueryParseException if query_str is not valid.

        returns the results of the query.
    """
    return compiled(query_str)(source)
        


src/c/l/cloudcast-0.0.8/cloudcast/iscm/__init__.py   cloudcast(Download)
    def resolve(self, context):
        from dq import query
        return query(self.q, context)
 
class IscmDictsExpr(IscmExpr):

src/d/q/dq-0.1.2/dq/test/test_integration.py   dq(Download)
import unittest
from dq import query
 
class IntegrationTest(unittest.TestCase):
    def setUp(self):