WeAreDevelopers LIVE • Mar 2, 2022

Devouring APIs with Python

Shweta Palande

Are synchronous requests choking your Python application? Stop blocking vital server processes. Master asyncio, aiohttp, and Flask to efficiently build and consume powerful REST APIs.

Pause
Mute Enter Fullscreen
#1 about 3 min

Understanding APIs and how applications communicate data

How interfaces enable different software applications to exchange data seamlessly.

#2 about 1 min

Core principles of the REST architectural style

How Representational State Transfer enforces standard communication protocols over HTTP.

#3 about 4 min

Breaking down the components of HTTP request URLs

Anatomy of API endpoints including domains, paths, parameters, and headers.

#4 about 2 min

Overview of Python client libraries and API frameworks

The difference between executing HTTP requests and building abstract web application boilerplate.

#5 about 5 min

Executing GET and POST requests with the requests module

How to extract JSON content, headers, and status codes from server responses.

#6 about 7 min

Using PycURL for multiprotocol file transfer operations

Configuring a Python wrapper over libcurl to stream request outputs to byte buffer inputs.

#7 about 5 min

Creating custom API endpoints using the Flask framework

Writing mapped routing paths to expose internal Python functions as accessible data endpoints.

#8 about 3 min

Structuring modular APIs using the Flask-RESTful extension

Leveraging object-oriented classes to organize web routes with cleaner abstraction layers.

#9 about 3 min

Differences between synchronous and asynchronous program execution

How linear function dependence compares to background task delegation.

#10 about 6 min

Measuring execution time for repeated synchronous API calls

Utilizing the timeit module wrapped across a session executing serial HTTP fetches.

#11 about 3 min

Parallel execution through multiprocessing and multithreading concepts

Achieving parallel workload processing while addressing limitations of Python's global interpreter lock.

#12 about 4 min

Managing concurrent task execution using the asyncio module

Configuring a single event thread to manually switch context while waiting on network operations.

#13 about 10 min

Implementing asynchronous API calls utilizing the aiohttp framework

Replacing inherently synchronous remote fetch libraries to drastically diminish cumulative network wait times.

#14 about 2 min

Exploring developer resources for further API automation learning

Where to discover code repositories and sandbox environments for continued scripting education.

#15 about 7 min

Answering questions on architecture choices and editor plugins

Tips for deciding between concurrency paradigms and leveraging AI tooling for grammar evaluation.

Matching moments

1:42 min

Introduction to the fast API web framework

Sebastián Ramírez · World Congress 2022

1:40 min

Summarizing key engineering lessons for platform API development

Anto Anto · World Congress 2024

3:35 min

Evaluating benefits and drawbacks of common API formats

Alexis Yushin Alexis Yushin · World Congress 2024

1:48 min

Core benefits of using application programming interfaces

Alexis Yushin Alexis Yushin · World Congress 2024

57 sec

Choosing the right API protocol today

Simon Auer Simon Auer · World Congress 2025

3:10 min

Understanding the core concepts of API design

Alen Pokos · LIVE