Work In Progress, Not Production Ready!
from curio import run
from curethinkdb import r, set_loop_type_curio
async def main():
conn = await r.connect('127.0.0.1', 28015)
ret = await r.db("test").table_list().run(conn)
print(ret)
set_loop_type_curio()
run(main)
pip install curethinkdb
Just call them as coroutine await xxx()
.
Not Support.
from curio import run
from curethinkdb import ConnectionPool, r, set_loop_type_curio
async def main():
pool = ConnectionPool(host='127.0.0.1', port=28015)
conn = await pool.get()
ret = await r.db("test").table_list().run(conn)
print(ret)
await pool.put(conn)
set_loop_type_curio()
run(main)
- Open issues for any Questions/Bugs/Features
- Pull Requests are welcome