Motor wraps almost all of PyMongo’s API and makes it non-blocking. For the few PyMongo features not implemented in Motor, see Differences between Motor and PyMongo.
Convenient With tornado.gen¶
tornado.gen module lets you use coroutines to simplify asynchronous
code. Motor methods return Futures that are convenient to use with coroutines.