Introduction
This lab will guide you through the process of using async
and await
in Flask, a popular Python web framework. You will learn how to define asynchronous views and handlers, understand the performance implications of using async code, and explore background tasks in Flask.
Note: You need to create the code file yourself and run it in the environment. You can preview the Flask service status on Web 5000.
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
flask(("Flask")) -.-> flask/DataHandlingGroup(["Data Handling"])
flask(("Flask")) -.-> flask/CoreConceptsGroup(["Core Concepts"])
flask(("Flask")) -.-> flask/DevelopmentToolsGroup(["Development Tools"])
flask/DataHandlingGroup -.-> flask/incoming_request_data("Incoming Request Data")
flask/DataHandlingGroup -.-> flask/response_objects("Response Objects")
flask/CoreConceptsGroup -.-> flask/application_object("Application Object")
flask/CoreConceptsGroup -.-> flask/useful_internals("Useful Internals")
flask/DevelopmentToolsGroup -.-> flask/blueprint_objects("Blueprint Objects")
flask/DevelopmentToolsGroup -.-> flask/command_line_interface("Command Line Interface")
subgraph Lab Skills
flask/incoming_request_data -.-> lab-136110{{"Using Async and Await in Flask"}}
flask/response_objects -.-> lab-136110{{"Using Async and Await in Flask"}}
flask/application_object -.-> lab-136110{{"Using Async and Await in Flask"}}
flask/useful_internals -.-> lab-136110{{"Using Async and Await in Flask"}}
flask/blueprint_objects -.-> lab-136110{{"Using Async and Await in Flask"}}
flask/command_line_interface -.-> lab-136110{{"Using Async and Await in Flask"}}
end