RUVIDEO
Поделитесь видео 🙏

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

📁 Обучение 👁️ 17 📅 01.12.2023

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: https://www.linkedin.com/in/c17hawke/
Medium: https://medium.com/@c17hawke

#python #asyncio #aiohttp

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «How to Use AsyncIO, Async/Await and Aiohttp for Asynchronous Programming in Python?», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.