server_description – An object representation of a server the driver is connected to.

Represent one server the driver is connected to.

class pymongo.server_description.ServerDescription

Immutable representation of one server.

Parameters:
  • address: A (host, port) pair
  • ismaster: Optional IsMaster instance
  • round_trip_time: Optional float
  • error: Optional, the last error attempting to connect to the server
address

The address (host, port) of this server.

all_hosts

List of hosts, passives, and arbiters known to this server.

server_type

The type of this server.

server_type_name

The server type as a human readable string.

New in version 3.4.