Comparison
cassetter vs pytest_httpserver vs pytest-localserver 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 cassetterpytest-httpserver is a httpserver for pytest
Actively maintained. Last release 3 weeks ago, commits in 14 of the last 26 weeks. A safe choice.
pip install pytest-httpserverpytest plugin to test server connections locally.
Maintained. Last release 8 weeks ago, commits in 9 of the last 26 weeks. Weaker on release cadence and contributor spread.
pip install pytest-localserverA 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, 16× more than pytest_httpserver.
- Maintenance is comparable: pytest_httpserver 80, cassetter 79, responses 76, pytest-localserver 67 on Pythie’s Index.
- pytest_httpserver is growing fastest: downloads +16% over the last month.
- cassetter is the newcomer: first released Feb 2026.
- Safe default for a new project: responses.
Side by side
| Metric | cassetter | pytest_httpserver | pytest-localserver | responses |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 79 | 80 |