Comparison
flexmock vs kgb vs mockito
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
flexmock is a testing library for Python that makes it easy to create mocks, stubs and fakes.
Maintained. Last release 3 weeks ago, commits in 4 of the last 26 weeks. Weaker on commit activity and release cadence.
$
pip install flexmockUtilities for spying on function calls in unit tests.
Low maintenance activity. Last release 12 months ago, commits in 1 of the last 26 weeks. Weaker on commit activity and release cadence.
$
pip install kgbSpying framework
Maintained. Last release 8 months ago.
$
pip install mockitoIn short
- kgb is the most used: 1.6M downloads a month.
- mockito is better maintained: Pythie’s Index 67 against 31.
- flexmock is growing fastest: downloads +24% over the last month.