examples/mongodb/find_by_name.py
from pymongo import MongoClient
import datetime

client = MongoClient()
db = client.demo

for p in db.people.find({ 'name' : 'Foo'}):
    print(p)