General WSGI/ASGI interactive app

I wonder if there is an existing OnDemand interactive app that could be used to launch Python web apps by running say an ASGI server. If not, I might be able to find time to write one. I want an app that isn’t tied to a specific web application and instead is flexible enough to run basically anything Python, so that users can use it for hosting web apps on Slurm.

I’m imagining that you would provide the app either as an HPC filesystem path, or a GitHub repository, or a URL, and the app would clone it and launch the server. Would this be useful to others? Are there any particular security risks posed by this flexibility?