Suggest a tool

Responses

Metrics as of , from the GitHub or GitLab API of each repository. Refreshed monthly.

What Responses is

Responses is a Python utility library for mocking the requests library in tests. Mock responses are registered by URL and HTTP method and activated with a decorator or a context manager. Requests that match no registered response raise a ConnectionError. Matchers filter requests by body, query parameters, keyword arguments, multipart data, fragment identifiers and headers. Registries return responses in default, ordered or custom order. Callbacks produce dynamic responses. The separate pytest-responses package exposes it as a pytest fixture. Assertions check call counts and request data. A beta feature records responses to files and replays them. It requires Python 3.8 or newer and requests 2.30.0 or later.

Written from the project's README, read .

Category
Test data and mocking
License
Apache-2.0
Language
Python
Changelog
Releases on GitHub

Repository metrics

Repository metrics
Stars4,3421
Forks3821
Open issues and PRs431
Contributors1551
Commits in the last 90 days161
Last commit2026-09-161
Last release0.26.3, 2026-08-261
Fetched

1 Fetched from the GitHub or GitLab API on . Hover a value for its own date.

Status

activeLast commit within 90 days of the fetch date.

Computed from the last commit date and the archive flag on the fetch date. See the status rules.

Alternatives

Listed test data and mocking tools, same primary language first, then by GitHub stars. Each line gives one fact from the tool's documentation where it differs from Responses's, with its source.

How to install

pip install responses
From README, read .

Questions

Is Responses open source?

Yes. Responses is released under Apache-2.0, an OSI-approved license, as reported by the GitHub API on 2026-09-22.

Is Responses maintained?

On 2026-09-22, the last commit to the default branch was on 2026-09-16, so the listed status is active. Rule: Last commit within 90 days of the fetch date.

How many GitHub stars does Responses have?

4,342 stars on 2026-09-22, from the GitHub API. The number is refreshed at each monthly update.

What language is Responses written in?

The repository's primary language, as reported by the GitHub API, is Python.

How do I install Responses?

The README gives this command: pip install responses

Sources

  1. GitHub REST API: repository, read
  2. GitHub REST API: commits, read
  3. GitHub REST API: latest release, read
  4. GitHub REST API: contributors, read
  5. README, read