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

Method from_client

test/version.py:23–27  ·  view source on GitHub ↗
(cls, client)

Source from the content-addressed store, hash-verified

21class Version(BaseVersion):
22 @classmethod
23 def from_client(cls, client):
24 info = client.server_info()
25 if "versionArray" in info:
26 return cls.from_version_array(info["versionArray"])
27 return cls.from_string(info["version"])
28
29 @classmethod
30 async def async_from_client(cls, client):

Callers 2

_init_clientMethod · 0.80
setUpMethod · 0.80

Calls 3

from_version_arrayMethod · 0.80
from_stringMethod · 0.80
server_infoMethod · 0.45

Tested by 1

setUpMethod · 0.64