{"library":"mongomock","type":"library","category":null,"description":"Mongomock is a small, in-memory library that provides a fake PyMongo stub for testing Python code that interacts with MongoDB. It aims to mimic the behavior of the official PyMongo driver as closely as possible, allowing for database-dependent code to be tested without needing a running MongoDB instance. It is actively maintained, with the current version being 4.3.0, and receives regular updates to support new PyMongo and MongoDB features.","language":"python","status":"active","version":"4.3.0","tags":["testing","mocking","mongodb","database","pymongo"],"install":[{"cmd":"pip install mongomock","imports":["import mongomock\nclient = mongomock.MongoClient()","from mongomock import patch\n@patch(servers=(('server.example.com', 27017),))"]}],"homepage":null,"github":"https://github.com/mongomock/mongomock","docs":null,"changelog":"https://github.com/mongomock/mongomock/blob/develop/CHANGELOG.md","pypi":"https://pypi.org/project/mongomock/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":1.9,"avg_import_s":0.53,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/mongomock/compatibility"},"provenance":{"verified_status":"passing","verified_at":"Sun Jun 28","last_verified":"Sun Jun 28","next_check":"Tue Jul 28","install_tag":null}}