Sha256: 2a53970c98ab41e9b73ef8d7d1c92e2e09d851e2adc29f71d96d2d5ec0835d11

Contents?: true

Size: 1.38 KB

Versions: 1

Compression:

Stored size: 1.38 KB

Contents

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Ú<module>s

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sensu-plugins-mongodb-mrtrotl-1.4.0 lib/pymongo/__pycache__/driver_info.cpython-310.pyc