Comparison
aresponses vs httpretty vs mocket vs pook
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Asyncio response mocking. Similar to the responses library used for 'requests'
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install aresponsesHTTP 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 5 weeks ago, commits in 8 of the last 26 weeks. A safe choice.
pip install mocketHTTP traffic mocking and expectations made easy
Maintained. Last release 2 days ago, commits in 1 of the last 26 weeks. Weaker on commit activity and security practices.
pip install pookIn short
- aresponses is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- httpretty is the most used: 658.6K downloads a month, 1.6× more than pook.
- mocket is better maintained: Pythie’s Index 78 against 14.
Side by side
| Metric | aresponses | httpretty | mocket | pook |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 18 | Pythie’s Index: 14 | Pythie’s Index: 78 | Pythie’s Index: 56 |
| Verdict | Slowing down | Low maintenance activity | Actively maintained | Maintained |
| Downloads / month | 81.5K | 658.6K | 152.6K | 400.6K |
| Downloads, month over month | -22% | -17% | -37% | +0% |
| GitHub stars | 106 | 2.1K | 315 | 376 |
| Stars, last 7 days | +0 | +0 | +1 | +0 |
| Direct dependents | 2 | 30 | 2 | 3 |
| Last release | Jan 12, 2024 | Aug 16, 2021 | Nov 3, 2026 | Dec 4, 2026 |
| Releases, 12 months | 0 | 0 | 7 | 3 |
| Weeks with commits | 0 / 26 | 1 / 26 | 8 / 26 | 1 / 26 |
| Recent contributors | 11 | 9 | 11 | 17 |
| First release | Sep 2017 | May 2011 | Jul 2013 | Oct 2016 |
| Python versions | 3.7 – 3.12 | 3.6 – 3.9 | 3.8 – 3.15 | 3.10 – 3.15 |
| License | MIT | MIT | BSD-3-Clause | MIT |
| 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.