How to Create an Async API Call with asyncio | Python

Опубликовано: 22 Февраль 2021
на канале: CBT Nuggets
26,934
312

Start learning cybersecurity with CBT Nuggets. https://courses.cbt.gg/security

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.

Ben jumps right into the action, displaying the Python code that he’ll begin with. One of the tools you’ll see in this video is a reference to httpbin.org, a publicly available site that allows you to hit several endpoints to test out http calls.

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.

🤖 Download the Ultimate DevOps Cert Guide: https://blog.cbt.gg/coeo

⬇️ 6-Week Study Plan: DevNet Associate: https://blog.cbt.gg/23hj


Start learning with CBT Nuggets:

• Python | https://courses.cbt.gg/036


Смотрите видео How to Create an Async API Call with asyncio | Python онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь CBT Nuggets 22 Февраль 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 26,934 раз и оно понравилось 312 людям.