Mount Examples - Repository #38
hasansezertasan
started this conversation in
Show and tell
Replies: 1 comment 5 replies
-
Great work, but I remember that aiohttp does not support ASGI or WSGI protocols, and it may not be mounted under fastapi now. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone, hope you're doing well. 😊
I'd like to introduce a small project I've been playing with. 🌱 a2wsgi-examples🚀 has a collection of examples showing how to mount applications built with ASGI/WSGI web frameworks to a FastAPI application.
I successfully mounted applications built with these frameworks: FastAPI, Starlette, Flask, Django, Bottle, Litestar, GradIO, PyWebIO and Flet. 💪
I failed attempting to mount applications built with these frameworks: Quart, Robyn, Falcon, Hug, Tornado, aiohttp... 😢
Check out the repository for more information 🤓.
A little backstory: I'm fascinated by Starlette and its features. I met with it this year thanks to FastAPI. I was planning to switch from Flask to FastAPI and I had an Admin Panel built with Flask Admin. I discovered this feature of Starlette and just mounted it into a dummy application, it worked! At first, I was using the same routes from Flask, but slowly I rewrote those with FastAPI. The day came, and I finished the migration. I can say that it indeed helped me a lot. Switching from a backend that has +20K lines of code was intimidating, but with less than 10 lines of code, I was able to start my migration process. I started migration and line by line, here I am! 🚀 (My code base is now less than 15K)
Beta Was this translation helpful? Give feedback.
All reactions