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 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: 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 MongoDBProxy-official-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43d4b4707390a5f50e321e539fcc3c7856bb1a6d9220ce9b0165fd13da1b1be9 |
|
MD5 | e3764481e914e4c67b416df71af087d8 |
|
BLAKE2b-256 | 7a28a8a96399d9ce908d3185ded39ff186c8628b8b060732b9cded4fbbe78d2c |
Hashes for MongoDBProxy_official-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8eb9b8c640145764ba34017dc2a532357318feb41024470076726024871b8042 |
|
MD5 | 18f2529ac82e285a259adaa037d4e654 |
|
BLAKE2b-256 | d231d6c2b14fa4f5416615a1504878d00718be9629ab4adec6d157b80d8f8bef |