client_options – Read only configuration options for a MongoClient.¶
Tools to parse mongo client options.
-
class
pymongo.client_options.ClientOptions¶ Read only configuration options for a MongoClient. Should not be instantiated directly by application developers. Access a client’s options via
pymongo.mongo_client.MongoClient.optionsinstead.-
auto_encryption_opts¶ A
AutoEncryptionOptsor None.
-
codec_options¶ A
CodecOptionsinstance.
-
connect¶ Whether to begin discovering a MongoDB topology automatically.
-
direct_connection¶ Whether to connect to the deployment in ‘Single’ topology.
-
event_listeners¶ The event listeners registered for this client. See
monitoringfor details. .. versionadded:: 4.0
-
heartbeat_frequency¶ The monitoring frequency in seconds.
-
load_balanced¶ True if the client was configured to connect to a load balancer.
-
local_threshold_ms¶ The local threshold for this instance.
-
pool_options¶ A
PoolOptionsinstance.
-
read_concern¶ A
ReadConcerninstance.
-
read_preference¶ A read preference instance.
-
replica_set_name¶ Replica set name or None.
-
retry_reads¶ If this instance should retry supported read operations.
-
retry_writes¶ If this instance should retry supported write operations.
-
server_selection_timeout¶ The server selection timeout for this instance in seconds.
-
write_concern¶ A
WriteConcerninstance.
-