Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_client
Method · 0.80
asyncSetUp
Method · 0.80
Calls
3
from_version_array
Method · 0.80
from_string
Method · 0.80
server_info
Method · 0.45
Tested by
1
asyncSetUp
Method · 0.64