Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for __main__ (0.07 sec)

  1. 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)
  2. docs/lambda/README.md

    		resp = make_response(transformed_object, 200)
    		resp.headers['x-amz-request-route'] = request_route
    		resp.headers['x-amz-request-token'] = request_token
    		return resp
    
    	else:
    		abort(400)
    
    if __name__ == '__main__':
    	app.run()
    ```
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Aug 12 18:20:36 UTC 2025
    - 7.7K bytes
    - Viewed (0)
Back to top