Skip to content
Proxy around MongoDB connection that automatically handles AutoReconnect-exceptions.
Branch: master
Clone or download

Latest commit

arngarden Merge pull request #25 from MaZZly/master Default skip to 0 if undefined, otherwise…
Latest commit 1b30d9c Sep 23, 2018


Type Name Latest commit message Commit time
Failed to load latest commit information.
mongo_proxy Default skip to 0 if undefined, otherwise… Sep 6, 2018
.gitignore Ignore .eggs directory Jan 9, 2017 BLD: Remove need for pyandoc at setup time. Jan 9, 2017
README.rst DOC: Format links correctly. Jan 9, 2017 BLD: Remove pyandoc from setup_requires. Jan 9, 2017



MongoDBProxy is used to create a proxy around a MongoDB-connection in order to automatically handle AutoReconnect-exceptions. You use MongoDBProxy in the same way you would an ordinary MongoDB-connection but don't need to worry about handling AutoReconnects by yourself.


>>> import pymongo
>>> import mongo_proxy
>>> safe_conn = mongo_proxy.MongoProxy(pymongo.MongoReplicaSetClient(replicaSet='blog_rs')
>>> safe_conn.blogs.posts.insert(post)  # Automatically handles AutoReconnect.

See here for more details:


You can’t perform that action at this time.