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

Upcoming sessions on this topic

Open session

World Congress 2026 North America

September 25, 2026 · 10:20–10:50

Stage 2

API = Some REST and HTTP, right? RIGHT?!

Rustam Mehmandarov

Passionate computer scientist

Rustam Mehmandarov
Open session

World Congress 2026 North America

September 25, 2026 · 12:20–12:50

Stage 9

Designing APIs That Survive AI Agents at Scale

Phani Pendurthi

Mastercard, Principal Software Engineer

Phani Pendurthi
Open session

World Congress 2026 North America

September 24, 2026 · 14:10–14:40

Stage 7

Designing High-Performance AI APIs: Lessons from Serving Millions of Real-Time Requests

Wayne Liu

Chief Growth Officer and Americas President of Perfect Corp.

Wayne Liu
Open session

World Congress 2026 North America

September 25, 2026 · 11:40–12:10

Stage 7

x402: Building Pay-Per-Request APIs for AI Agents

Brian Whippo

Senior Director Integrations and Developer Tooling, Algorand Foundation

Brian Whippo
Open session

World Congress 2026 North America

September 24, 2026 · 12:00–12:05

Outdoor Stage

Production runtime for Enterprise AI agents

Aditya Rohit

Swytchcode, Aditya, Founder and CEO

Aditya Rohit
Open session

World Congress 2026 North America

September 24, 2026 · 14:10–14:40

Stage 1

Anatomy of an AI Request: Where Latency and Cost Are Really Born

Dan Fu

VP of Kernels at Together AI

Dan Fu