Proxy around MongoDB connection that automatically handles AutoReconnect exceptions.
Project description
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)
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
File details
Details for the file openedx-mongodbproxy-0.2.2.tar.gz
.
File metadata
- Download URL: openedx-mongodbproxy-0.2.2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d17601fa2c2e2e2a62fb1fc906b8e7084395735f90c212d728069dec1bccf4e5 |
|
MD5 | 7f970f1fbbf6be3a65cd96e4bba0605a |
|
BLAKE2b-256 | 28ae2fbadd753d4898860913956f5bf7febeb6bcf61410f73befdcdaabce9f33 |
File details
Details for the file openedx_mongodbproxy-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: openedx_mongodbproxy-0.2.2-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83fda2576090815154a361047776dea66bb81cd8ea0e86c479a9393715bd3e86 |
|
MD5 | 15254581c455bb51a8bb3305729f16d4 |
|
BLAKE2b-256 | 1657427b1ec0aa850778a461604733649605589e4776a53725a66df9ec2f93c2 |