driver_info

Advanced options for MongoDB drivers implemented on top of PyMongo.

  • class pymongo.driverinfo.DriverInfo(_name=None, version=None, platform=None)
  • Info about a driver wrapping PyMongo.

The MongoDB server logs PyMongo’s name, version, and platform wheneverPyMongo establishes a connection. A driver implemented on top of PyMongocan add its own info to this log message. Initialize with three stringslike ‘MyDriver’, ‘1.2.3’, ‘some platform info’. Any of these strings may beNone to accept PyMongo’s default.