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
- Pythonused by · Python is a high-level, general-purpose, dynamically typed programming language known for readable syntax and automatic memory management.
- 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.
- 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.
- MongoDB driverkind of · A MongoDB driver is a language-specific client library that connects applications to MongoDB and provides database operations.
- 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.
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.

