← All projects
Project record2 mentions
Originally shared on Hacker News

pyreqwest

A high-performance Python HTTP client backed by Rust's reqwest. It offers async and sync APIs, an ergonomic interface similar to reqwest, full type hints, and built-in testing/mocking, with no unsafe code and no Python-side dependencies.

Last shared
01 / The problem

What it addresses

Started out of frustration with the many issues in the existing Python HTTP client httpx.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. pyreqwest

    A high-performance Python HTTP client backed by Rust's reqwest. It offers async and sync APIs, an ergonomic interface similar to reqwest, full type hints, and built-in testing/mocking, with no unsafe code and no Python-side dependencies.

    Problem: Started out of frustration with the many issues in the existing Python HTTP client httpx.

    Posted by @mmmaantu · Original source ↗

    Source text · @mmmaantu · · Source ↗

    Building pyreqwest, a high-performance Python HTTP client backed by Rust’s reqwest. It has gotten quite feature rich: async and sync APIs, similar ergonomic interface of reqwest, full type hints, and built-in testing/mocking. It has no unsafe code, and no Python-side dependencies.
  2. pyreqwest

    A Python HTTP client implemented 100% in Rust, supporting both sync and async usage. Built on reqwest, it exposes reqwest's full feature set to Python plus additional capabilities, and includes mocking functionality for testing.

    Problem: Existing Python HTTP clients are in a poor state (e.g., the neglected httpx with its performance issues) and the testing utilities available for them are poor.

    Posted by @mmmaantu · Original source ↗

    Source text · @mmmaantu · · Source ↗

    I have been working on a new Python HTTP client which is 100% Rust-based (sync+async). Using reqwest under the hood and providing everything it has to offer to Python land + much more. Also including mocking capabilities. Here: https://github.com/MarkusSintonen/pyreqwest