Non-blocking ORM for Tornado?

Nikolay Fominyh picture Nikolay Fominyh · May 28, 2012 · Viewed 12k times · Source

Is there any asynchronous Python ORM other than Twistar?

I'm looking for lightweight ORM for non-blocking API, built on top of tornado. Of course, I can write raw SQL queries using momoko, but I'd like to work with objects.

Answer

rudyryk picture rudyryk · Oct 30, 2014

Sure, it is! Look at peewee and peewee-async extension. Disclaimer: extension is only for PostgreSQL at the moment and I'm an author of extension :)

It's not specifically for Tornado, but Tornado can run on asyncio event loop.