How to Create an Async API Call with asyncio | Python

preview_player
Показать описание

In this video, Ben Finkel covers how to create an asynchronous API call in Python. A lot of internet resources have detailed articles that discuss all the ins and outs of synchronous and asynchronous programming, but Ben believes it’s more helpful to see it in action and learn how it can improve the responsiveness of your software.

You’ll watch as he combines Python’s built-in http request library with httpbin to define a function he wants to execute, then explain how each piece of it works. The first example is with a synchronous function, and Ben will repeat the process as he creates an asynchronous function to show you how they play out and the advantages they each bring to the table.

Start learning with CBT Nuggets:

Рекомендации по теме
Комментарии
Автор

dude... you made me to crack up... you voice reminds me the software engineer, "Peter", from the movie "The Office Space"

manoelramon
Автор

Great tutorial, make more videos ..thank 👍

RN-ermz
Автор

Thanks for the great video, it is really clear and helpful for understanding.

junjieli
Автор

was looking for a site like httpbin! Thanks a lot!

ionutmuntean
Автор

Sir, It was an awesome explanation Keep it Up.

zameerahmed
Автор

Great video, thanks! If I was handling pagination (i.e. make 4-5 calls like ?page=3, ?page=4 in the url), where would that loop go? Should that logic be handled inside the "async with session" block?

ejwhite
Автор

Great video, but one thing: requests is NOT in standard library, it's 3rd party library. Built-in module for dealing with web data is urllib.

dstinYwOw
Автор

Hello, thanks for the great video - however I am getting an error - "AttributeError: 'ClientSession' object has no attribute '_connector' "

stevenlevittt
Автор

requests library are not builtin its built on top of urrlib3

smiley
welcome to shbcf.ru