Add class docstring to MongoClient (#372)

This commit is contained in:
Felipe Rodrigues 2018-08-24 14:09:17 -03:00 committed by Shane Harvey
parent 554195e33b
commit 6afcf14f4f
2 changed files with 10 additions and 0 deletions

View File

@ -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)

View File

@ -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__.