Comparison
cassetter vs httpretty vs mocket vs responses
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Rust-powered HTTP cassette recorder for Python tests. Safe by default.
Actively maintained. Last release 5 weeks ago, commits in 11 of the last 26 weeks. A safe choice.
pip install cassetterHTTP client mock for Python
Low maintenance activity. Last release over 5 years ago, commits in 1 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install httprettySocket Mock Framework - for all kinds of socket animals, web-clients included - with gevent/asyncio/SSL support
Actively maintained. Last release 4 weeks ago, commits in 7 of the last 26 weeks. A safe choice.
pip install mocketA utility library for mocking out the `requests` Python library.
Actively maintained. Last release 3 months ago, commits in 12 of the last 26 weeks. A safe choice.
pip install responsesIn short
- responses is the most used: 74.5M downloads a month, 106× more than httpretty.
- Maintenance is comparable: cassetter 79, mocket 77, responses 76, httpretty 14 on Pythie’s Index.
- responses is growing fastest: downloads +15% over the last month.
- cassetter is the newcomer: first released Feb 2026.
- Safe default for a new project: responses.
Side by side
| Metric | cassetter | httpretty | mocket | responses |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 79 | Pythie’s Index: 14 | Pythie’s Index: 77 | Pythie’s Index: 76 |
| Verdict | Actively maintained | Low maintenance activity | Actively maintained | Actively maintained |
| Downloads / month | 602.8K | 699.8K | 154K | 74.5M |
| Downloads, month over month | -10% | -10% | -38% | +15% |
| GitHub stars | 27 | 2.1K | 315 | 4.3K |
| Stars, last 7 days | +0 | +0 | +1 | +1 |
| Direct dependents | 0 | 30 | 2 | 195 |
| Last release | Oct 29, 2026 | Aug 16, 2021 | Nov 3, 2026 | Aug 26, 2026 |
| Releases, 12 months | 22 | 0 | 7 | 4 |
| Weeks with commits | 11 / 26 | 1 / 26 | 7 / 26 | 12 / 26 |
| Recent contributors | 2 | 9 | 11 | 39 |
| First release | Feb 2026 | May 2011 | Jul 2013 | Nov 2013 |
| Python versions | – | 3.6 – 3.9 | 3.8 – 3.15 | 3.8 – 3.13 |
| License | MIT | MIT | BSD-3-Clause | Apache-2.0 |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.