What is PyMongo? Getting Started with Python and MongoDB
FAQs
What can you do with PyMongo?
PyMongo is the official MongoDB driver for synchronous Python applications. You can connect to a MongoDB instance and query data. It's a great tool for building applications that interact with MongoDB.
How do I download and install PyMongo?
PyMongo is a Python package. You can install it with `pip`: `python -m pip install pymongo[srv]`.
How do you use PyMongo?
Once you have installed PyMongo, you can import it into your application, connect to a MongoDB instance, and start querying data.
Should I use PyMongo or MongoEngine?
PyMongo is the official MongoDB Python driver whereas MongoEngine is an ORM Object Relational Mapper) that uses PyMongo internally. PyMongo is officially supported and recommended by MongoDB. Read more about the differences between the two in the dedicated article
Get started with Atlas today
Get started in seconds. Our free clusters come with 512 MB of storage so you can play around with sample data and get oriented with our platform.
GET STARTED WITH:
- 125+ regions worldwide
- Sample data sets
- Always-on authentication
- End-to-end encryption
- Command line tools