Pymongo
PyMongo is the official Python driver for connecting applications to MongoDB and performing database operations.
The Quick Python Book, Fourth Edition
PyMongo is the official Python driver for connecting to and operating on MongoDB databases.
- How it is used
- Connects Python applications to MongoDB and performs document-oriented CRUD operations.
- How deep it goes
- Demonstrates installation, connection, selection, insertion, retrieval, updating, replacement, deletion, and collection dropping without covering advanced queries.
- Examples
- Uses a Jane document, find_one lookups, an Ann update, a Maria replacement, deletion, and collection listing.
- What you can do after
- Operate/configure a MongoDB connection and create, read, update, replace, delete, and drop document collections.
Read how The Quick Python Book, Fourth Edition explains pymongo →
MongoDB 8.0 in Action, Third Edition
PyMongo is the official Python driver for connecting applications to MongoDB and performing database operations.
- How it is used
- Connects synchronous Python applications to MongoDB and executes queries, including filtered vector searches.
- How deep it goes
- Walks through installation, connection, database selection, querying, error handling, and closure, while deferring asynchronous execution to Motor.
- Examples
- Demonstrates a JFK route lookup and a category- and price-prefiltered vector search.
- What you can do after
- Build it from scratch to install PyMongo, connect to MongoDB, run queries, and perform filtered vector searches.
Read how MongoDB 8.0 in Action, Third Edition explains pymongo →
Related concepts
- context manageruses · A context manager is a programming construct or object protocol that establishes a managed execution context, performing setup when a block is entered and cleanup when it exits.
- Pythonused by · Python is a high-level, general-purpose, dynamically typed programming language with readable syntax and support for multiple programming paradigms.
- API stabilityuses · API stability is the degree to which an interface’s contract and behavior remain compatible enough for existing clients to continue functioning across changes and versions.
- BSONuses · BSON is a binary-encoded serialization format for JSON-like documents and values, with support for additional data types such as dates and binary data.
- MongoDB driverkind of · A MongoDB driver is a language-specific client library that connects applications to MongoDB and provides database operations.
Questions about pymongo
What is pymongo?
PyMongo is the official Python driver for connecting applications to MongoDB and performing database operations.
Which Manning books explain pymongo?
The Quick Python Book, Fourth Edition and MongoDB 8.0 in Action, Third Edition.
What is pymongo a kind of?
Pymongo is a kind of MongoDB driver. A MongoDB driver is a language-specific client library that connects applications to MongoDB and provides database operations.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

