--- id: respx version: "0.23.1" license: BSD-3-Clause license_treatment: permissive maintenance: active --- # respx — A utility for mocking out the Python HTTPX and HTTP Core libraries. License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install respx uv add respx poetry add respx ## Description

RESPX

RESPX - Mock HTTPX with awesome request patterns and response side effects.

--- [![tests](https://img.shields.io/github/actions/workflow/status/lundberg/respx/test.yml?branch=master&label=tests&logo=github&logoColor=white&style=for-the-badge)](https://github.com/lundberg/respx/actions/workflows/test.yml) [![codecov](https://img.shields.io/codecov/c/github/lundberg/respx?logo=codecov&logoColor=white&style=for-the-badge)](https://codecov.io/gh/lundberg/respx) [![PyPi Version](https://img.shields.io/pypi/v/respx?logo=pypi&logoColor=white&style=for-the-badge)](https://pypi.org/project/respx/) [![PyPI Downloads](https://img.shields.io/pypi/dm/respx?style=for-the-badge&logo=pypi&logoColor=white&color=mediumpurple)](https://pypi.org/project/respx/) [![Python Versions](https://img.shields.io/pypi/pyversions/respx?logo=python&logoColor=white&style=for-the-badge)](https://pypi.org/project/respx/) ## Documentation Full documentation is... ## AI interpretation — verify before relying respx mocks the httpx HTTP client library for testing, letting you define request patterns and stub responses without hitting real servers. Verdict: respx is a stable, well-maintained mocking utility for httpx with no known vulnerabilities, permissive licensing, and low install friction. It is suitable for test suites that need to stub HTTP interactions without external dependencies. [View on SkillFed](https://skillfed.io/packages/respx) · [View on PyPI](https://pypi.org/project/respx/)