Table of Contents:
  • Table of Contents; Preface; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Acknowledgments; Chapter 1. Getting Started; Introduction; Finding Reference Documentation; Installing MongoDB; Running MongoDB; Setting up a Python Environment with MongoDB; Chapter 2. Reading and Writing to MongoDB with Python; Connecting to MongoDB with Python; Getting a Database Handle; Inserting a Document into a Collection; Write to a Collection Safely and Synchronously; Guaranteeing Writes to Multiple Database Nodes; Introduction to MongoDB Query Language
  • Pylons 1.x and MongoDBPyramid and MongoDB; Django and MongoDB; Going Further
  • Reading, Counting, and Sorting Documents in a CollectionUpdating Documents in a Collection; Deleting Documents from a Collection; MongoDB Query Operators; MongoDB Update Modifiers; Chapter 3. Common MongoDB and Python Patterns; A Uniquely Document-Oriented Pattern: Embedding; Fast Lookups: Using Indexes with MongoDB; Location-based Apps with MongoDB: GeoSpatial Indexing; Code Defensively to Avoid KeyErrors and Other Bugs; Update-or-Insert: Upserts in MongoDB; Atomic Read-Write-Modify: MongoDB's findAndModify; Fast Accounting Pattern; Chapter 4. MongoDB with Web Frameworks