Show HN: Xhttpy – unified HTTP API request tool (sync/async, stream/non‑stream)

  • Posted 4 hours ago by evil_yam
  • 1 points
https://github.com/hscspring/xhttpy
Hi HN — I built xhttpy, a small Python library that provides a unified interface for HTTP API requests across sync/async and streaming/non‑streaming modes.

Why

- Dealing with different HTTP libraries (requests, httpx, aiohttp, etc.) and switching between sync/async or stream/non‑stream can be tedious. - xhttpy aims to give a single consistent API so you can switch modes with minimal code changes and share logic between sync and async paths.

Key features

- Unified API surface for sync and async requests - Support for streaming and non‑streaming responses - Lightweight and focused on HTTP request ergonomics - Designed to integrate easily in scripts, services, and async apps

If you try it, please let me know what you think — usage notes, missing features, or surprising behavior. Thanks!

0 comments