Make it possible to run fastapi run
with a module instead of a path
#167
Unanswered
barraponto
asked this question in
Questions
Replies: 2 comments
-
The mentioned code is from
|
Beta Was this translation helpful? Give feedback.
0 replies
-
FWIW, uvicorn has a very handy method to load the app from a |
Beta Was this translation helpful? Give feedback.
0 replies
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
Let's say you have your fastapi app packaged up and available in the awesomeapi package.
Wouldn't it be nice if you could run
fastapi run awesomeapi:app
just like you can do withuvicorn awesomeapi:app
?Operating System
Linux
Operating System Details
Python 3.12
Python Version
3.12
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions