
MongoDB and Python
Patterns and Processes for the Popular Document-Oriented Database
Niall O'Higgins(Author)
O'Reilly (Publisher)
Published on 1. November 2011
Book
Paperback/Softback
68 pages
978-1-4493-1037-0 (ISBN)
Description
"MongoDB and Python" is a cookbook-style text to help Python programmers work with MongoDB. It is full of useful, practical recipes for solving real-world problems ranging from how to do fast geo queries for location-based apps to efficiently indexing your user documents for social-graph lookups to how best to integrate MongoDB with the Pyramid Web framework.
More details
Language
English
Place of publication
Sebastopol
United States
Target group
Primary & secondary/elementary & high school
Product notice
Paperback (trade)
Unsewn / adhesive bound
Dimensions
Height: 240 mm
Width: 182 mm
Thickness: 10 mm
Weight
137 gr
ISBN-13
978-1-4493-1037-0 (9781449310370)
Copyright in bibliographic data and cover images is held by Nielsen Book Services Limited or by the publishers or by their respective licensors: all rights reserved.
Schweitzer Classification
Other editions
Additional editions

E-Book
09/2011
O'Reilly
€15.49
Available for download

E-Book
09/2011
1st Edition
O'Reilly
€11.99
Available for download
Person
Niall O'Higgins is a software consultant specialising in mobile, tablet and cloud computing. His accomplishments include designing and implementing the Catch.com platform backend using MongoDB, Python and Pylons. Catch is one of the most popular apps on Android. Prior to Catch he was a software engineer at Metaweb Technologies, where he worked on Freebase.com (now owned by Google). He is the founder and organizer of both the San Francisco Python Web Technology Meet-up, PyWebSF and the Bay Area Tablet Computing Group, We Have Tablets. He has published quite a bit of Open Source software - contributing to OpenBSD among others - and frequently speaks at conferences and events. You can find him on Twitter as @niallohiggins.
Content
Preface;
Conventions Used in This Book;
Using Code Examples;
SafariĀ® Books Online;
How to Contact Us;
Acknowledgments;
Chapter 1: Getting Started;
1.1 Introduction;
1.2 Finding Reference Documentation;
1.3 Installing MongoDB;
1.4 Running MongoDB;
1.5 Setting up a Python Environment with MongoDB;
Chapter 2: Reading and Writing to MongoDB with Python;
2.1 Connecting to MongoDB with Python;
2.2 Getting a Database Handle;
2.3 Inserting a Document into a Collection;
2.4 Write to a Collection Safely and Synchronously;
2.5 Guaranteeing Writes to Multiple Database Nodes;
2.6 Introduction to MongoDB Query Language;
2.7 Reading, Counting, and Sorting Documents in a Collection;
2.8 Updating Documents in a Collection;
2.9 Deleting Documents from a Collection;
2.10 MongoDB Query Operators;
2.11 MongoDB Update Modifiers;
Chapter 3: Common MongoDB and Python Patterns;
3.1 A Uniquely Document-Oriented Pattern: Embedding;
3.2 Fast Lookups: Using Indexes with MongoDB;
3.3 Location-based Apps with MongoDB: GeoSpatial Indexing;
3.4 Code Defensively to Avoid KeyErrors and Other Bugs;
3.5 Update-or-Insert: Upserts in MongoDB;
3.6 Atomic Read-Write-Modify: MongoDB's findAndModify;
3.7 Fast Accounting Pattern;
Chapter 4: MongoDB with Web Frameworks;
4.1 Pylons 1.x and MongoDB;
4.2 Pyramid and MongoDB;
4.3 Django and MongoDB;
4.4 Going Further;