def result(rows):
    for row in rows:
        print(row)
reactor.stop()

def fail(err):
    err.printDetailedTraceback()
reactor.stop()
pool = adbapi.ConnectionPool('sqlite3', 'animals.db')
d = pool.runQuery('SELECT * FROM animals', ())
d.addCallbacks(result, fail)
reactor.run()
Does anyone know of a asynchronous mysql lib for python?