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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file MongoDBProxy-official-0.1.0.tar.gz.
File metadata
- Download URL: MongoDBProxy-official-0.1.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43d4b4707390a5f50e321e539fcc3c7856bb1a6d9220ce9b0165fd13da1b1be9
|
|
| MD5 |
e3764481e914e4c67b416df71af087d8
|
|
| BLAKE2b-256 |
7a28a8a96399d9ce908d3185ded39ff186c8628b8b060732b9cded4fbbe78d2c
|
File details
Details for the file MongoDBProxy_official-0.1.0-py3-none-any.whl.
File metadata
- Download URL: MongoDBProxy_official-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8eb9b8c640145764ba34017dc2a532357318feb41024470076726024871b8042
|
|
| MD5 |
18f2529ac82e285a259adaa037d4e654
|
|
| BLAKE2b-256 |
d231d6c2b14fa4f5416615a1504878d00718be9629ab4adec6d157b80d8f8bef
|