MongoEngine 0.4 Released

The long-awaited version 0.4 of MongoEngine has now been released. This is a major update, bringing a solid set of new features, optimisations and bug fixes. I’ll outline some of the main changes, and link to the documentation where relevant.

Completely re-written Q-object implementation that no longer uses Javascript. A lengthier post on these will be coming soon, but basic point is that they should be a lot faster, more maintainable and less buggy as they now use native MongoDB queries.

Support for GridFS through the FileField (docs)

(docs) Geospatial querying support. This is implemented though the GeoPointField and the near , within_box and within_distance query operators (docs)

and the , and query operators (docs) New SortedListField and EmailField (docs)

and (docs) New QuerySet methods: distinct() , create() , snapshot() , timeout() and all()

For the slightly longer list of changes, check out the changelog.

To get going with 0.4, upgrade using pip install -U mongoengine and have a read of the new documentation.

And a massive thanks to everyone who contributed code and submitted bug reports.