HTTPX

A modern, async-capable HTTP client for Python — the natural successor to Requests with full HTTP/2 support

Visit HTTPX →
Tools & Libraries

HTTPX supports both sync and async clients with the same familiar, Requests-like API — httpx.get(...) works the same way you’d expect, but async with httpx.AsyncClient() is also available when you need it, plus HTTP/2 support Requests doesn’t have.

That dual sync/async support is the main reason to reach for it over Requests specifically: you get one library that works in both a plain script and an async codebase like a FastAPI app, rather than switching HTTP libraries depending on context.