The document introduces MongoKit, a Python ODM (Object Document Mapper) for MongoDB that provides a simple and powerful way to define and work with document schemas through Python classes. Key features highlighted include inheritance and polymorphism support, dot notation access, automatic reference of embedded documents, GridFS support, and internationalization. The roadmap outlines future plans such as locked fields, fixtures generation, and RDF export before a 1.0 release.
31. >>> from mongokit import * >>> con = Connection() Pymongo's way >>> doc = con.mydb.mycol.find_one() # very fast ! # doc is a dict instance
32. >>> from mongokit import * >>> con = Connection() Pymongo's way >>> doc = con.mydb.mycol.find_one() # very fast ! # doc is a dict instance Mongokit's way >>> doc = con.mydb.mycol.MyDocument.find_one() # doc is a MyDocument instance >>> doc.spam.eggs.append(u'foo') >>> doc.save()