Re:Growler: Asyncio Micro-Framework in Python
by zeemonkee3 on Wednesday May 04, 2016 @06:58PM
(#11632650)
How well would it work with, say, PostgreSQL? Would you need to use async wrappers like aiopg in your views?
[ Parent
| on HN ]
Re:Growler: Asyncio Micro-Framework in Python
by akubera on Wednesday May 04, 2016 @07:14PM
(#11632745)
For optimal performance, yes use aiopg or equivalent (it looks like there is an asyncio sqlalchemy project which might be nice.)
Any middleware may be a coroutine object, so it's as easy as `await res.render("whatever")` in an async function
Re:Growler: Asyncio Micro-Framework in Python
by ssahoo on Wednesday May 04, 2016 @07:08PM
(#11632712)
https://github.com/aio-libs/aiopg should work.