MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / single_client_noauth

Method single_client_noauth

test/__init__.py:1081–1085  ·  view source on GitHub ↗

Make a direct connection. Don't authenticate.

(
        self, h: Any = None, p: Any = None, **kwargs: Any
    )

Source from the content-addressed store, hash-verified

1079 return cls._unmanaged_async_mongo_client(h, p, **kwargs)
1080
1081 def single_client_noauth(
1082 self, h: Any = None, p: Any = None, **kwargs: Any
1083 ) -> MongoClient[dict]:
1084 """Make a direct connection. Don't authenticate."""
1085 return self._async_mongo_client(h, p, authenticate=False, directConnection=True, **kwargs)
1086
1087 def single_client(self, h: Any = None, p: Any = None, **kwargs: Any) -> MongoClient[dict]:
1088 """Make a direct connection, and authenticate if necessary."""

Callers 4

test_scram_sha1Method · 0.80
test_scramMethod · 0.80
test_uri_optionsMethod · 0.80

Calls 1

_async_mongo_clientMethod · 0.95

Tested by 4

test_scram_sha1Method · 0.64
test_scramMethod · 0.64
test_uri_optionsMethod · 0.64