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

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

        def query_db(name, query):
    result = os.popen("grep " + str(query) + " " + name).read()
    if "\n" in result:
        results_list = result.split("\n")
        results_list = results_list[:-1] #leave outside the ''
        return results_list
    else:
        return result
        


src/s/i/simple-nosql-db-HEAD/stacks.py   simple-nosql-db(Download)
    def query_property(self, property_, value):
        property_ = str(property_)
        value = str(value)
        results = backend.query_db(self.name, property_ + ":" + value)
        for result in results:

src/s/i/simple-nosql-db-HEAD/property_level.py   simple-nosql-db(Download)
    def query_property(self, property_, value):
        property_ = str(property_)
        value = str(value)
        results = backend.query_db(self.name, property_ + ":" + value)
        return results