NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI
PyPI, #1331 most downloaded on PyPI
Fake pymongo stub for testing simple MongoDB-dependent code
Latest stable
4.3.0
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 2.2 years
Most releases are documented
notes for 32 of 44 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
45 releases · first in 2012
Drag across the ruler to compare, or tap a release to open it.
Fix collection.find_one(...) sorting using dicts by @santiagopardal in https://github.com/mongomock/mongomock/pull/897
collection.find_one(...) sorting using dicts by @santiagopardal in https://github.com/mongomock/mongomock/pull/897Full Changelog: https://github.com/mongomock/mongomock/compare/4.2.0...4.3.0
pyupgrade --py38-plusgridfs implementation, so that the patched code had to
be adapted.Your coding agent can read these notes before it upgrades. Set up the MCP server →
Use importlib.metadata.version instead of deprecated pkg_resources call by @ml-evs in https://github.com/mongomock/mongomock/pull/834
$ifNull multi field support, $isNumber, $isArray by @David-Taub in https://github.com/mongomock/mongomock/pull/749read_concern kwarg to get_database. by @pcorpet in https://github.com/mongomock/mongomock/pull/790$isNumber and $isArray (added on v4.4). by @pcorpet in https://github.com/mongomock/mongomock/pull/789$dateFromParts aggregation command by @maximkir-fl in https://github.com/mongomock/mongomock/pull/796importlib.metadata.version instead of deprecated pkg_resources call by @ml-evs in https://github.com/mongomock/mongomock/pull/834setup.cfg and setup.py have
been removed in the scope of the switch to hatch.The previous CI/CD solution (Travis CI) was refusing to run the publish pipelines due to usage quota issues.
Full Changelog: https://github.com/mongomock/mongomock/compare/4.1.2...4.2.0-post.1
Full support (CI) of Python 3.10 and MongoDB v5.
Full support (CI) of Python 3.10 and MongoDB v5.
Fix deployment authentication.
Fix deployment authentication.
This release mainly brings support for pymongo v4. It is still compatible with pymongo v3 and despite the major version, in most cases it should be an
This release mainly brings support for pymongo v4. It is still compatible with pymongo v3 and despite the major version, in most cases it should be an easy upgrade.
pymongo is installed at runtime, uses pymongo v4 interfaceAdd default and options to get_default_database()
Fix type stubs for patch and test it to prevent regressions
Mark $convert and $toLong operators as not implemented yet
Nothing published for this version
Return the right document for find\_one\_and\_replace using ReturnDocument.AFTER and upsert
Handling truthy and falsy values the way MongoDB does it
Add an easy way to compare exception types between mongomock and pymongo
Mark Cursor.count method as deprecated, as it is in pymongo since v3.7.0
BulkOperationBuilder: Call insert\_one rather than deprecated insert
Implement the $setUnion operator in the aggregate pipeline.
Improve parsing of mongodb URLs
Split the big aggregate pipeline function in a function for each stage
Introduce a patch method, for an easy replacement of pymongo by mongomock across several clients and servers
Use package version as recommended by @vmalloc
Nothing published for this version
Update documentation: - stop using deprecated methods (insert, update) - document how to use mongomock in combination with mock
Test that {x: {$in: [None,..]}} matches when {x: {$exists: False}}
system.indexes is no longer defined by default (deprecated since MongoDB 3.0)
This release contains the following features and bugfixes
This release contains the following features and bugfixes
Thanks to all contributors for their support. A special thanks to @MetrodataTeam!
This release contains the following features and bugfixes:
This release contains the following features and bugfixes:
$project and addition of many arithmetic operators #260 [@drorasaf]This is a feature and bugfix release
This is a feature and bugfix release
$sum, $avg handling in aggregate function #249 @srinivasreddy$avg operator for Python 2 #246 @JulieRossidistinct() method #255 @drorasafNone in aggregations #256 @drorasaf$group on embedded dictionaries #254 @JulieRossi$max, $min, $last, $first operators in aggregation #258 @drorasafThanks to all collaborators!
This is a feature and bugfix release:
This is a feature and bugfix release:
$min and $max operations #235 [@plocharz-9livesdata]Thanks to all the supporters for helping out!
Improve portability by using xrange from six lib #225 [@srinivasreddy]
This is a feature release:
filter_one formal paramter specification #220 [@touilleMan]$currentDate operation #209 [@lifus]Thanks to all committers for your support!
Dot-notation for upsert operation #211 [@syev]
This is a feature release:
Make $regex operator work even if it encounters non-string values [@slayercat]
This is a bugfix release:
Added support for multiple expressions for the $group (aggregation) operator [@jmsantorum]
get_default_database method of MongoClient and a URI parser [@sm11963]This release provides bug-fixes for
This release provides bug-fixes for
$unset operator and [@magaman384]projection parameter of the find method [@marcinbarczynski]with respect to nested fields.
Added support for bulk operations #178 [@ddzialak]
Note: Currently the travis-build job installs a custom version of the MongoDB-server (2.6).
Breaking release to support pymongo version 3.x. For detailed information about the changes that were made to support pymongo 3.x see #166.
Breaking release to support pymongo version 3.x. For detailed information about the changes that were made to support pymongo 3.x see #166.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.