Skip to main content

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


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.3.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openedx_mongodbproxy-0.3.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file openedx_mongodbproxy-0.3.0.tar.gz.

File metadata

  • Download URL: openedx_mongodbproxy-0.3.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for openedx_mongodbproxy-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1f33038cb78b75a62079568bcf6b9090bcc0909d6bb6c937af553967f9638cf7
MD5 54881497d823dfa2df5e7c59f597ff1e
BLAKE2b-256 c1e99fb383a526b72d1c7b293f28a79117e0f6559745ca6c8b2c74259ff63de6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for openedx_mongodbproxy-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68dff73dca1c18580112337479353fff0f48a6d039d72218679250af1ac51e33
MD5 bcb24ff81230117a6edf9eb688dd159f
BLAKE2b-256 9083ab05be69cab74c3fb7ae48c008bd5e4da6d57f0bc36cc34b79850db1122f

See more details on using hashes here.

Supported by

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