Comparison
mongomock vs mongomock-ng vs pymongo_inmemory
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Fake pymongo stub for testing simple MongoDB-dependent code
Low maintenance activity. Last release over 2 years ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install mongomockReplacement fake pymongo stub for testing simple MongoDB-dependent code
Maintained. Last release 4 months ago, commits in 4 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install mongomock-ngA mongo mocking library with an ephemeral MongoDB running in memory.
Low maintenance activity. Last release 21 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install pymongo-inmemoryIn short
- mongomock is the most used: 9.7M downloads a month, 64× more than mongomock-ng.
- mongomock-ng is better maintained: Pythie’s Index 63 against 17.
- mongomock-ng is growing fastest: downloads +100% over the last month.
Side by side
| Metric | mongomock | mongomock-ng | pymongo_inmemory |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 17 | 63 |