--- id: responses version: "0.26.2" license: Apache-2.0 license_treatment: permissive maintenance: active --- # responses — A utility library for mocking out the `requests` Python library. License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install responses uv add responses poetry add responses ## Description Responses ========= .. image:: https://img.shields.io/pypi/v/responses.svg :target: https://pypi.python.org/pypi/responses/ .. image:: https://img.shields.io/pypi/pyversions/responses.svg :target: https://pypi.org/project/responses/ .. image:: https://img.shields.io/pypi/dm/responses :target: https://pypi.python.org/pypi/responses/ .. image:: https://codecov.io/gh/getsentry/responses/branch/master/graph/badge.svg :target: https://codecov.io/gh/getsentry/responses/ A utility library for mocking out the ``requests`` Python library. .. note:: Responses requires Python 3.8 or newer, and requests >= 2.30.0 Table of Contents ----------------- .. contents:: Installing ---------- ``pip install responses`` Deprecations and Migration Path ------------------------------- Here you will find a list of deprecated functionality and a migration path for each. Please ensure to update your code according to the guidance. .. list-table:: Deprecation and Migration :widths: 50 25 50 :header-rows: 1 * - Deprecated Functionality - Deprecated in Version - Migration Path * - ``responses.json_params_matcher`` - 0.14.0 -... ## AI interpretation — verify before relying Responses is a mocking library that intercepts requests made by the requests library, allowing you to register mock HTTP responses for testing without hitting real servers. Verdict: Responses is a well-maintained, actively developed mocking utility for the requests library with low install friction and a permissive Apache-2.0 license. It has no known vulnerabilities, strong community adoption (top 1000 PyPI packages), and clear, straightforward API design. A solid choice for testing HTTP interactions in Python projects. [View on SkillFed](https://skillfed.io/packages/responses) · [View on PyPI](https://pypi.org/project/responses/)