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.options
instead.-
auto_encryption_opts
¶ A
AutoEncryptionOpts
or None.
-
codec_options
¶ A
CodecOptions
instance.
-
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
monitoring
for 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
PoolOptions
instance.
-
read_concern
¶ A
ReadConcern
instance.
-
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
WriteConcern
instance.
-