Metadata-Version: 2.4
Name: openedx-mongodbproxy
Version: 0.3.0
Summary: Proxy around MongoDB connection that automatically handles AutoReconnect exceptions.
Home-page: https://github.com/arngarden/MongoDBProxy
Author: Gustav Arngarden
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Description-Content-Type: text/markdown
Requires-Dist: pymongo
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-dist
Dynamic: summary

MongoDBProxy
============

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.

Usage:

import pymongo

import mongodb_proxy

safe_conn = mongodb_proxy.MongoProxy(pymongo.MongoReplicaSetClient(replicaSet='blog_rs')

safe_conn.blogs.posts.insert(post)

**See here for more details:**
http://www.arngarden.com/2013/04/29/handling-mongodb-autoreconnect-exceptions-in-python-using-a-proxy/


**Contributors**:

Jonathan Kamens (https://github.com/jikamens)

Michael Cetrulo (https://github.com/git2samus)

Richard Frank (https://github.com/richafrank)

David Lindquist (https://github.com/dlindquist)
