Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/mongodb/mongo-python-driver
/ is_mongos
Function
is_mongos
test/utils.py:86–88 ·
view source on GitHub ↗
(client)
Source
from the content-addressed store, hash-verified
84
85
86
def
is_mongos(client):
87
res = client.admin.command(HelloCompat.LEGACY_CMD)
88
return
res.get(
"msg"
,
""
) ==
"isdbgrid"
89
90
91
def
ensure_all_connected(client: MongoClient) -> None:
Callers
1
test_exhaust
Method · 0.90
Calls
2
command
Method · 0.45
get
Method · 0.45
Tested by
1
test_exhaust
Method · 0.72