Comparison
mock vs mockito
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Rolling backport of unittest.mock for all Pythons
Low maintenance activity. Last release 21 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases. It brings a standard-library module to older Pythons: on current versions, use the built-in one.
$
pip install mockSpying framework
Maintained. Last release 8 months ago.
$
pip install mockitoIn short
- mock is the most used: 21M downloads a month, 16× more than mockito.
- mockito is better maintained: Pythie’s Index 67 against 29.
Side by side
| Metric | mock | mockito |
|---|---|---|
| Pythie’s Index | Pythie’s Index: 29 | Pythie’s Index: 67 |
| Verdict | Low maintenance activity | Maintained |
| Downloads / month | 21M | 1.3M |
| Downloads, month over month | +1% | -13% |
| GitHub stars | 537 | – |
| Stars, last 7 days | – | – |
| Direct dependents | 708 | 12 |
| Last release | Mar 3, 2025 | Apr 15, 2026 |
| Releases, 12 months | 0 | 10 |
| Weeks with commits | 0 / 26 | – |
| Recent contributors | 31 | – |
| First release | Oct 2008 | Feb 2010 |
| Python versions | 3.6 – 3.13 | – |
| License | BSD-2-Clause | MIT |
| Known vulnerabilities | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.