getsentry/responses
A utility for mocking out the Python Requests library. observed · 2026-10-15
Health v2 · maintenance only
92/100
- Activity 98
- Release rhythm 80
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 56
- age_days: 4722
- days_rel: 55
- days_push: 14
- n_releases_24m: 8
Adoption not part of the score
4342 stars · 390 forks observed · 2026-10-15
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-10-15 · eca1d27bf7b6
- registry_pypi: https://pypi.org/pypi/responses/json · fetched 2026-08-29 · b52fdf232f7f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| getsentry/responses | main | 92 |
For agents
markdown · JSON · MCP: product_card(name="getsentry/responses")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem