qmetrics.net

HTTPX

Full-featured synchronous and async HTTP client for Python

HTTPX screenshot

HTTPX is a Python HTTP client with sync and async APIs, HTTP/1.1 and HTTP/2, and an optional command-line client. It targets Python 3.9 and later and installs via pip.

Overview

HTTPX is a Python library for issuing HTTP requests and handling responses in application code. It offers a familiar request-oriented API alongside support for asynchronous workflows, so the same package can serve both traditional scripts and async services.

The client speaks HTTP/1.1 and HTTP/2 and can talk directly to WSGI or ASGI applications without going over the network. It includes strict timeout handling, type annotations, and many behaviors found in popular HTTP clients, such as connection pooling, cookie sessions, proxy support, streaming downloads, and common authentication modes.

Optional extras add HTTP/2, SOCKS proxies, Brotli and Zstd decoding, and a CLI built on Click with Rich terminal output. Install the base package with pip, or add bracket extras for those capabilities.

Documentation covers quick start, advanced usage, async patterns, HTTP/2, and a full developer API reference. Third-party packages can integrate with HTTPX as noted in the project docs.

Key features

  • Sync and async request APIs
  • HTTP/1.1 and HTTP/2 support
  • Requests-compatible API shape
  • Optional command-line client
  • WSGI and ASGI direct calls
  • Connection pooling and cookies
  • Proxy and SOCKS support
  • Strict timeouts and type hints

Use cases

  • HTTP calls in Python applications
  • Async web service outbound requests
  • Testing ASGI apps in-process
  • Quick requests from the terminal
  • Scripts needing HTTP/2 or compression extras

Tags

Similar software

axios

Promise-based HTTP client for browser and Node.js

Axios is a promise-based HTTP client for JavaScript environments in the browser and Node.js. It supports common request methods, configurable defaults, and interceptors for request and response handling.

★ 109.5k⟳ 2 days agoMIT

FastAPI

Python web framework for building APIs with type hints

FastAPI is a Python web framework for building APIs using standard type hints. It builds on Starlette and Pydantic and generates interactive OpenAPI documentation for the endpoints you define.

★ 105.1k⟳ 9 days agoMIT

OmniRoute

OpenAI-compatible AI gateway with provider routing

OmniRoute exposes one endpoint that routes chat requests across many LLM providers with quota-aware fallback and compression.

★ 90.7k⟳ todayMIT

Hoppscotch

Web, desktop and CLI API development ecosystem

Hoppscotch lets developers send HTTP, WebSocket, GraphQL, and related API requests from a lightweight client. Collections, environments, teams, and sync help organize testing across devices.

★ 81k⟳ 5 days agoMIT
Open Source Alternative to:Postman

NestJS

Progressive TypeScript framework for Node.js backends

Nest organizes Node server apps with modules, dependency injection, and first-party packages for auth, data, queues, and observability.

★ 77.2k⟳ todayMIT

JSON Server

Zero-code mock REST API from JSON data files

JSON Server turns a JSON or JSON5 database file into a REST API for local prototyping. It supports filtering, sorting, pagination, embedding relations, and static assets.

★ 75.7k⟳ 8 months agoMIT