Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Create a new connection to a single MongoDB instance at *host:port*.

.. warning::
   **DEPRECATED:** :class:`Connection` is deprecated. Please
   use :class:`~pymongo.mongo_client.MongoClient` instead.

The resultant connection object has connection-pooling built
in. It also performs auto-reconnection when necessary. If an
operation fails because of a connection error,
:class:`~pymongo.errors.ConnectionFailure` is raised. If(more...)

src/c/a/cato-HEAD/lib/catomongo/catomongoclient.py   cato(Download)
    def __init__(self, host, port):
        pymongo.Connection.__init__(self, host, port)
 

src/m/o/mongokit-0.9.1.1/mongokit/connection.py   mongokit(Download)
    def __init__(self, *args, **kwargs):
        # Specifying that it should run both the inits
        MongoKitConnection.__init__(self, *args, **kwargs)
        PymongoConnection.__init__(self, *args, **kwargs)
 

src/m/o/mongokit-py3-0.9.1.1/mongokit/connection.py   mongokit-py3(Download)
    def __init__(self, *args, **kwargs):
        # Specifying that it should run both the inits
        MongoKitConnection.__init__(self, *args, **kwargs)
        PymongoConnection.__init__(self, *args, **kwargs)
 

src/m/o/mongokit-HEAD/mongokit/connection.py   mongokit(Download)
    def __init__(self, *args, **kwargs):
        # Specifying that it should run both the inits
        MongoKitConnection.__init__(self, *args, **kwargs)
        PymongoConnection.__init__(self, *args, **kwargs)