Add a --factory
parameter like in uvicorn to run FastAPI applications not only through variables but also through functions
#45
Unanswered
ivankarmanow
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
In uvicorn there is a
--factory
parameter that allows you to pass as ASGI app not only variables, but also functions that return an ASGI app. I suggest adding the same parameter to fastapi-cli or changing the process of searching for a variable with FastAPI app so that factory functions are also foundOperating System
Linux, Windows
Operating System Details
No details
Python Version
3.12
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions