How to Use AsyncIO, Async/Await and Aiohttp for Asynchronous Programming in Python?

Publié le: 01 janvier 1970
sur la chaîne: SUNNY BHAVEEN CHANDRA
3,525
76

In this video, you will learn how to use asyncio, await, asyncio.run method and aiohttp.ClientSession class for downloading images from pexels.com given URLs asynchronously. You will also compare the speed of execution in the asynchronous way and the normal synchronous or sequential way of coding in Python.

Resources:-
Project Repository: https://github.com/c17hawke/asyncio-demo
Base Template: https://github.com/c17hawke/base_repo

You will learn:

Introduction: What is the goal of this video and what are the tools and libraries you will use

Theory: What is asynchronous programming and how it differs from synchronous or sequential programming

Coding the synchronous or sequential way: How to write a simple Python script that downloads images from pexels.com given URLs synchronously or sequentially and measures the time it takes

Coding the asynchronous way: How to write a similar Python script that downloads images from pexels.com given URLs in an asynchronous way using asyncio, await, asyncio.run method and aiohttp.ClientSession class and measures the time it takes

Comparison: How to compare the speed of execution of the two scripts and see the difference

By the end of this video, you will have a clear understanding of how to use asyncio, await, asyncio.run method and aiohttp.ClientSession class for downloading images from pexels.com given URLs asynchronously. You will also see how much faster and smoother the asynchronous way is compared to the synchronous or sequential way.

If you enjoyed this video, please like, share, and subscribe to my channel. Also, don’t forget to check out my other videos on Python programming. Thanks for watching!

Follow me for more updates:
Github: https://github.com/c17hawke
LinkedIn:   / c17hawke  
Medium:   / c17hawke  

#python #asyncio #aiohttp


Sur cette page du site, vous pouvez voir la vidéo en ligne How to Use AsyncIO, Async/Await and Aiohttp for Asynchronous Programming in Python? durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur SUNNY BHAVEEN CHANDRA 01 janvier 1970, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 3,525 fois et il a aimé 76 téléspectateurs. Bon visionnage!