Forums

Python App with Async functions using aiohttp

Hi, I want to host a web app on pythonanywhere which is based on aiohttp. I have experience of hosting cherrypy and flask apps but not one with async operations. Need help Thanks

Unfortunately we don't support async websites right now :-(

Is this still the case? Are there any plans to support asynchronous page loading in the future? (I'm not leaving, I love it here). Are you referring to the async library itself, or to any asynchronous page support whatsoever? Is there an established method of asynchronously loading data into a portion of a web page that is supported and suggested by PythonAnywhere? I want to create a "real-time" stock chart, that asynchronously loads a data point once per second... I have the chart library, but the method I was going to use isn't supported on this platform... Any suggestions, alternatives, ideas?

Yes, that still holds. We have a help page with some suggestions: https://help.pythonanywhere.com/pages/AsyncInWebApps/.