getsentry/responses
A utility for mocking out the Python Requests library. observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 99
- Release rhythm 87
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 56
- age_days: 4674
- days_rel: 7
- days_push: 7
- n_releases_24m: 8
Adoption not part of the score
4345 stars · 374 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Python library for mocking out the `requests` HTTP library in tests. It lets you register fake responses with matching on method, URL, headers, and body via a decorator-based API.
Use cases
- mock http requests in python unit tests
- fake responses for the requests library
- test code that calls external apis without network
- simulate http error responses like 404 or 500 in tests
- match request bodies and query params in mocked requests
- pytest fixture for mocking requests
When to choose
- your code uses the requests library and you need deterministic tests
- you want to simulate api failures, status codes, and payloads without a real server
- you need fine-grained request matching (headers, bodies, query params)
When to avoid
- your code uses httpx or aiohttp instead of requests
- you need integration tests against real or spun-up servers
- you need mocking for async http clients
Facets
library · maturity active
mocking testing http-client testing developer-tools apis python cross-platform requests-mock http-mocking unit-testing pytest
2 sources
- readme: https://github.com/getsentry/responses · fetched 2026-08-28 · eca1d27bf7b6
- registry_pypi: https://pypi.org/pypi/responses/json · fetched 2026-08-29 · b52fdf232f7f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| getsentry/responses | main | 95 |
For agents
markdown · JSON · MCP: product_card(name="getsentry/responses")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem