Proxy around MongoDB connection that automatically handles AutoReconnect exceptions.
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for openedx-mongodbproxy-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ec4c67188971b1e7bd1e3eb27567b40d64e6b50e1af30359617b3e06740c70a |
|
MD5 | f91e5b7d1855ef81ba9c59910cf56421 |
|
BLAKE2b-256 | e7eff7953394af42e7585bde5a64d9863b64d3b81ff3b8443874838039d1c3f1 |
Hashes for openedx_mongodbproxy-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb42153c8d0d540f140d2daeaea01a30e32504ad9f8961bf56dad365941bc200 |
|
MD5 | 9253e7ddd53437c6416f0e44eece17f9 |
|
BLAKE2b-256 | 68d15a68b58bee90885d2fcf45f73f7b771bbbb27d76544c0a89b1129915bf17 |