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

Method async_from_client

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

Source from the content-addressed store, hash-verified

28
29 @classmethod
30 async def async_from_client(cls, client):
31 info = await client.server_info()
32 if "versionArray" in info:
33 return cls.from_version_array(info["versionArray"])
34 return cls.from_string(info["version"])

Callers 2

_init_clientMethod · 0.80
asyncSetUpMethod · 0.80

Calls 3

from_version_arrayMethod · 0.80
from_stringMethod · 0.80
server_infoMethod · 0.45

Tested by 1

asyncSetUpMethod · 0.64