Learn HTTPX
Modern HTTP client for Python with sync and async APIs and HTTP/2
HTTPX is a fully featured HTTP client for Python that offers both a synchronous API close to Requests and an async API for asyncio and Trio. It adds strict timeouts by default, HTTP/2 support, pluggable transports and the ability to call ASGI and WSGI apps directly, which makes it popular for modern services and for testing web frameworks such as FastAPI.
Before you start
How deep do you want to go?
1. EssentialsRead and write simple code, do the everyday basics
2. PracticalUse it productively at work, with the usual idioms
3. AdvancedThe less common features, performance and trade-offs
4. ExpertInternals and the edge cases experts know