HTTPX is an open-source client library for sending HTTP requests from Python programs. It provides both synchronous and asynchronous APIs and supports HTTP/1.1 and HTTP/2. It is developed by Encode, the open-source organization led by Tom Christie, and was first released in 2019.
Its API closely follows that of the older Requests library while adding asynchronous support. A number of libraries, including the Python SDKs from OpenAI and Anthropic, use HTTPX for their HTTP communication.