Comparison
aresponses vs httpretty vs pook vs urllib3-mock
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 httprettyHTTP 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 pookA utility library for mocking out the `urllib3` Python library.
Likely abandoned. No release or commit for years (last release over 11 years ago).
pip install urllib3-mockIn short
- aresponses is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- urllib3-mock looks abandoned: avoid it for new projects.
- httpretty is the most used: 658.6K downloads a month, 1.6× more than pook.
- pook is better maintained: Pythie’s Index 56 against 14.
Side by side
| Metric | aresponses | httpretty | pook | urllib3-mock |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 18 | Pythie’s Index: 14 | Pythie’s Index: 56 | Pythie’s Index: 21 |
| Verdict | Slowing down | Low maintenance activity | Maintained | Likely abandoned |
| Downloads / month | 81.5K | 658.6K | 400.6K | 75.4K |
| Downloads, month over month | -22% | -17% | +0% | -49% |
| GitHub stars | 106 | 2.1K | 376 | 13 |
| Stars, last 7 days | +0 | +0 | +0 | +0 |
| Direct dependents | 2 | 30 | 3 | 2 |
| Last release | Jan 12, 2024 | Aug 16, 2021 | Dec 4, 2026 | Apr 16, 2015 |
| Releases, 12 months | 0 | 0 | 3 | 0 |
| Weeks with commits | 0 / 26 | 1 / 26 | 1 / 26 | 0 / 26 |
| Recent contributors | 11 | 9 | 17 | 19 |
| First release | Sep 2017 | May 2011 | Oct 2016 | Nov 2014 |
| Python versions | 3.7 – 3.12 | 3.6 – 3.9 | 3.10 – 3.15 | – |
| License | MIT | MIT | MIT | 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.