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

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

        def write_to_db(name, data):
    print os.path.exists("." + name + "_meta")
    if os.path.exists("." + name + "_meta"):
        number = os.popen("cat ." + name + "_meta").read()
        number = int(number) + 1
        result = os.popen("echo " + str(number) + " > ." + name + "_meta").read()
        string = 'echo "' + str(number) + "; " + str(data) + '" >> ' + name
        result = os.popen(string).read()
        return number
    else:
        return "The database has not been created yet. Please use method create_stack()"
        


src/s/i/simple-nosql-db-HEAD/stacks.py   simple-nosql-db(Download)
        if id_ == None:
            register = property_ + ":" + value
            id_ = backend.write_to_db(self.name, register)
            return db_object(id_ + "; " + register, self)
        else:

src/s/i/simple-nosql-db-HEAD/property_level.py   simple-nosql-db(Download)
        if id_ == None:
            register = property_ + ":" + value
            id_ = backend.write_to_db(self.name, register)
            return id_
        else:

src/s/i/simple-nosql-db-HEAD/main.py   simple-nosql-db(Download)
    for number in range(100):
        number = str(number) * 5
        backend.write_to_db(number)