- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for __main__ (0.07 sec)
-
docs/en/docs/tutorial/debugging.md
## Call `uvicorn` { #call-uvicorn } In your FastAPI application, import and run `uvicorn` directly: {* ../../docs_src/debugging/tutorial001.py hl[1,15] *} ### About `__name__ == "__main__"` { #about-name-main } The main purpose of the `__name__ == "__main__"` is to have some code that is executed when your file is called with: <div class="termy"> ```console $ python myapp.py ``` </div>Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 2.5K bytes - Viewed (0)