-
Notifications
You must be signed in to change notification settings - Fork 27
Closed
Description
Can we add FastAPI support in the same way that Flask is supported? We really don't use Flask, because FastAPI is so much easier, even compared to Flask-RESTX, etc, and converting all our API's over to an entire other framework really isn't an option. Obviously this limits the usefulness of R Studio Connect.
I'm not sure how R Studio Connect runs a Flask app under the hood, but running a FastAPI instance is almost identical to running a Flask instance with gunicorn, so maybe this is actually pretty easy? Here are two commands that are effectively equivalent for running FastAPI normally and running it with gunicorn.
Is this an option? This would be incredibly helpful.
uvicorn main:app --host super_server.theolinnemann.com --port 8080
gunicorn main:app -b super_server.theolinnemann.com:8080 -k uvicorn.workers.UvicornWorkerkengelm, lmeninato, BrandonJenkins0, samesense, hhoeflin and 8 moreZeroCool2u
Metadata
Metadata
Assignees
Labels
No labels