![]() MongoClient ( "localhost", 27017 ) > db = client. Here’s a basic example (for more see the examples section of the docs): > import pymongo > client = pymongo. You can install all dependencies automatically with the followingĬommand: $ python -m pip install pymongo Wire protocol compression with zstandard requires zstandard: $ python -m pip install pymongoĬlient-Side Field Level Encryption requires pymongocrypt: $ python -m pip install pymongo Wire protocol compression with snappy requires python-snappy: $ python -m pip install pymongo Require certifi: $ python -m pip install pymongo OCSP (Online Certificate Status Protocol) requires PyOpenSSL, requests, service_identity and may Support for mongodb+srv:// URIs requires dnspython: $ python -m pip install pymongo MONGODB-AWS authentication requires pymongo-auth-aws: $ python -m pip install pymongo ![]() The correctĭependency can be installed automatically along with PyMongo: $ python -m pip install pymongo ![]() GSSAPI authentication requires pykerberos on Unix or WinKerberos on Windows. PyMongo supports CPython 3.6+ and PyP圓.6+.
0 Comments
Leave a Reply. |