Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openedx-mongodbproxy-0.2.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

openedx_mongodbproxy-0.2.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file openedx-mongodbproxy-0.2.1.tar.gz.

File metadata

  • Download URL: openedx-mongodbproxy-0.2.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for openedx-mongodbproxy-0.2.1.tar.gz
Algorithm Hash digest
SHA256 83c351eac37616e0d4ef15f18c68690ba46322b7b9e92398a37d46e084992792
MD5 36a2c09b9c5db0dc2ea242652025c15a
BLAKE2b-256 51731a852adaa887a50770cc11822ffd134866cd56d8bc60734cef75c7247345

See more details on using hashes here.

File details

Details for the file openedx_mongodbproxy-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for openedx_mongodbproxy-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 768b7d44c2ff82befb0ecf88c68526771f68ecf28b9565f33fa56a6133ad7fa1
MD5 b194dcf040ac6a176ccbe270eec20452
BLAKE2b-256 4415f776b2cbdb5da6a7760f6a24ddc1498deb328961fbb31a0ed1524e851864

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page