Information Technology
Hands on Training icon
Hands On Training
Hands on Training icon

Asynchronous Python Programming with Asyncio and Async/await: Learn to Write Robust and Modern Asynchronous Code

Course Cover
compare button icon

Course Features

icon

Duration

1.4 hour

icon

Delivery Method

Online

icon

Available on

Limited Access

icon

Accessibility

Desktop, Laptop

icon

Language

English

icon

Subtitles

English

icon

Level

Intermediate

icon

Teaching Type

Self Paced

icon

Video Content

1.4 hour

Course Description

Asyncio, async/await allow you to write code that runs multiple processes simultaneously using synchronous Python Programming. It makes your code more responsive, and it stops it from waiting for slow files and internet access. It is easier to write, more efficient to reason about, and requires less memory than processes and threads. We start the video by giving an overview of asyncio and showing the core syntax and building blocks in a few examples. Next, you'll see how to make normal Python codes work in an asynchronous environment to minimize blocking and facilitate cooperative multitasking. We also cover an asyncio use case that uses asynio streams API to connect to web servers. Next, we will discuss communication between coroutines as well as synchronization of coroutines. We will also discuss how to use the asyncio libraries to wrap blocking code into threads and process, as well as non-blocking replacement library libraries that are used with asyncio like aiohttp or aiofiles. Asyncio's uvloop, unsync and other libraries will be discussed. This section will cover writing robust asyncio codes to debug and test your code, and how to use the low-level functions for fine-grain control. This video will walk you through an example of an event loop (the heart of asyncio), a review of the different types and functions of awaitables, and how to use them to control fine grain control.

Course Overview

projects-img

International Faculty

projects-img

Post Course Interactions

projects-img

Instructor-Moderated Discussions

Skills You Will Gain

What You Will Learn

You will see how to make normal python code work in an asynchronous environment, to minimize blocking and facilitate cooperative multi-tasking

Target Students

Intermediate to experienced Python programmers who want to speed up existing Python code and make it more responsive by using async/await and asyncio

Course Cover