Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mongodb/mongo-python-driver
/ get_server
Function
get_server
test/test_topology.py:84–85 ·
view source on GitHub ↗
(topology, hostname)
Source
from the content-addressed store, hash-verified
82
83
84
def
get_server(topology, hostname):
85
return
topology.get_server_by_address((hostname, 27017))
86
87
88
def
get_type(topology, hostname):
Callers
3
get_type
Function · 0.85
get_monitor
Function · 0.85
test_close
Method · 0.85
Calls
1
get_server_by_address
Method · 0.45
Tested by
no test coverage detected