Examples

The examples in this section are intended to give in depth overviewsof how to accomplish specific tasks with MongoDB and PyMongo.

Unless otherwise noted, all examples assume that a MongoDB instance isrunning on the default host and port. Assuming you have downloadedand installedMongoDB, you can start it like so:

  1. $ mongod