3 ms·
Quart is pretty much "async flask". So you would do it exactly the same as you do for a flask app. ie a recipe like this should work just fine https://www.digi
by seanhunter 3y ago
Quart is pretty much "async flask". So you would do it exactly the same as you do for a flask app. ie a recipe like this should work just fine https://www.digitalocean.com/community/tutorials/how-to-build-and-deploy-a-flask-application-using-docker-on-ubuntu-20-04 https://www.digitalocean.com/community/tutorials/how-to-buil...
That said I've not done it myself (yet). It's literally something I'm doing this week.
Edit to add:
Here's a template that looks promising actually https://github.com/cellerich/docker-quart https://github.com/cellerich/docker-quart
- trolan 3y agoI had a project which was making API calls that could take 90 seconds to generate a response from external services. My flask API was obviously blocked and when I started letting other users on I fixed the bottleneck by updating (I think) 3-5 lines of code and adding an asyncio loop. From my limited use it does seem like a drop in replacement for 'async flask'