Add class docstring to MongoClient (#372)
This commit is contained in:
parent
554195e33b
commit
6afcf14f4f
@ -84,3 +84,4 @@ The following is a list of people who have contributed to
|
||||
- TaoBeier(tao12345666333)
|
||||
- Jagrut Trivedi(Jagrut)
|
||||
- Shrey Batra(shreybatra)
|
||||
- Felipe Rodrigues(fbidu)
|
||||
|
||||
@ -75,6 +75,15 @@ from pymongo.write_concern import DEFAULT_WRITE_CONCERN
|
||||
|
||||
|
||||
class MongoClient(common.BaseObject):
|
||||
"""
|
||||
A client-side representation of a MongoDB cluster.
|
||||
|
||||
Instances can represent either a standalone MongoDB server, a replica
|
||||
set, or a sharded cluster. Instances of this class are responsible for
|
||||
maintaining up-to-date state of the cluster, and possibly cache
|
||||
resources related to this, including background threads for monitoring,
|
||||
and connection pools.
|
||||
"""
|
||||
HOST = "localhost"
|
||||
PORT = 27017
|
||||
# Define order to retrieve options from ClientOptions for __repr__.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user