o Sûb³ã@s:dZddlmZddlmZGdd„dedgd¢ƒƒZdS)zCAdvanced options for MongoDB drivers implemented on top of PyMongo.é)Ú namedtuple)ÚOptionalc s>eZdZdZ d dedeedeeddf‡fdd„ Z‡ZS) Ú DriverInfoa…Info about a driver wrapping PyMongo. The MongoDB server logs PyMongo's name, version, and platform whenever PyMongo establishes a connection. A driver implemented on top of PyMongo can add its own info to this log message. Initialize with three strings like 'MyDriver', '1.2.3', 'some platform info'. Any of these strings may be None to accept PyMongo's default. NÚnameÚversionÚplatformÚreturncsPtt|ƒ ||||¡}| ¡ ¡D]\}}|dur%t|tƒs%td|fƒ‚q|S)NzEWrong type for DriverInfo %s option, value must be an instance of str)ÚsuperrÚ__new__Ú_asdictÚitemsÚ isinstanceÚstrÚ TypeError)ÚclsrrrÚselfÚkeyÚvalue©Ú __class__©ú:/tmp/pip-target-onvjaxws/lib/python/pymongo/driver_info.pyr sÿÿ€zDriverInfo.__new__)NN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rrr Ú __classcell__rrrrrs ÿÿÿÿþr)rrrN)rÚ collectionsrÚtypingrrrrrrÚs