mongoengine

MongoEngine is a Document-Object Mapper (think ORM, but for document databases) for working with MongoDB from Python.

It uses a simple declarative API, similar to the Django ORM.

Documentation available at docs.mongoengine.org - there is currently a tutorial, a user guide and API reference.

Simple to use

from mongoengine import *                           # To define a schema for a
                                                    # document, we create a
class Metadata(EmbeddedDocument):                   # class that inherits from
    tags = ListField(StringField())                 # Document.
    revisions = ListField(IntField())
                                                    # Fields are specified by
class WikiPage(Document):                           # adding field objects as
    title = StringField(required=True)              # class attributes to the
    text = StringField()                            # document class.
    metadata = EmbeddedDocumentField(Metadata)
                                                    # Querying is achieved by
>>> page.title = "Hello, World!"                    # calling the objects
>>> for page in WikiPage.objects:                   # attribute on a document
>>>     print page.title                            # class.

Framework Support

Coming Soon...

Help wanted

We're always looking for help on any aspect of Mongoengine.

Please get in touch on the user group.

mongoengine

MongoEngine is a Document-Object Mapper (think ORM, but for document databases) for working with MongoDB from Python.

It uses a simple declarative API, similar to the Django ORM.

Documentation available at http://docs.mongoengine.org - there is currently a tutorial, a user guide and API reference.

Getting Started

To install MongoEngine, simply run:

pip install mongoengine

Downloads are also available as .zip/.tar.gz archives for the stable and master versions.

To get to grips with MongoEngine, there is extensive documentation, API references and a tutorial. You can find help by joining the MongoEngine Users mailing list.

    mongoengine

    Community

    You can find help by joining the MongoEngine Users mailing list.

    Contributing

    Want to join an open source project? Now's your chance!

    Don't know what you want to help out with? Well here are some areas that we could use help with:

    • MongoEngine core
    • MongoEngine documentation, tutorials and examples
    • MongoEngine framework support
    • MongoEngine website!

    To contribute to the project, fork any repository from the mongoengine organisation on github and send a pull request, all contributions and suggestions are welcome!

    If you or your company is doing something cool / interesting on mongoengine then we want to know about it!