Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install mongoengine

How to install mongoengine

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install mongoengine
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.7.6
0.8.4Never BuiltWhy not?
0.7.6 Available View build log
0.6.19 Available View build log
0.6.15 Available View build log
0.6.9 Available View build log
0.6.7 Available View build log
0.6.2 Available View build log
0.6.1 Available View build log
0.5.2 Available View build log
0.5.1 Available View build log
0.5 Available View build log
0.4 Available View build log
0.3 Available View build log
Windows (64-bit)
0.6.9
0.8.4Never BuiltWhy not?
0.6.9 Available View build log
0.6.7 Available View build log
0.6.2 Available View build log
0.6.1 Available View build log
0.5.2 Available View build log
0.5.1 Available View build log
0.5 Available View build log
0.4 Available View build log
0.3 Available View build log
Mac OS X (10.5+)
0.8.1
0.8.4Never BuiltWhy not?
0.8.1 Available View build log
0.7.6 Available View build log
0.6.19 Available View build log
0.6.15 Available View build log
0.6.9 Available View build log
0.6.7 Available View build log
0.6.2 Available View build log
0.6.1 Available View build log
0.5.2 Available View build log
0.5.1 Available View build log
0.5 Available View build log
0.4 Available View build log
0.3 Available View build log
0.7.0
0.8.4Never BuiltWhy not?
0.7.0 Available View build log
Linux (32-bit)
0.8.1
0.8.4Never BuiltWhy not?
0.8.1 Available View build log
0.7.6 Available View build log
0.7.3 Available View build log
0.7.2 Available View build log
0.7.0 Available View build log
0.6.20 Available View build log
0.6.19 Available View build log
0.6.16 Available View build log
0.6.15 Available View build log
0.6.14 Available View build log
0.6.13 Available View build log
0.6.12 Available View build log
0.6.9 Available View build log
0.6.7 Available View build log
0.6.2 Available View build log
0.6.1 Available View build log
0.5.2 Available View build log
0.5.1 Available View build log
0.5 Available View build log
0.4 Available View build log
0.3 Available View build log
0.7.0
0.8.4Never BuiltWhy not?
0.7.0 Available View build log
Linux (64-bit)
0.8.4 Available View build log
0.8.1 Available View build log
0.7.9 Available View build log
0.7.6 Available View build log
0.7.3 Available View build log
0.7.2 Available View build log
0.7.0 Available View build log
0.6.20 Available View build log
0.6.19 Available View build log
0.6.16 Available View build log
0.6.15 Available View build log
0.6.14 Available View build log
0.6.13 Available View build log
0.6.12 Available View build log
0.6.9 Available View build log
0.6.7 Available View build log
0.6.2 Available View build log
0.6.1 Available View build log
0.5.2 Available View build log
0.5.1 Available View build log
0.5 Available View build log
0.4 Available View build log
0.3 Available View build log
0.7.0
0.8.4Never BuiltWhy not?
0.7.0 Available View build log
0.8.4 Available View build log
0.8.1 Available View build log
 
Author
License
MIT
Dependencies
Lastest release
version 0.8.4 on Sep 20th, 2013
https://secure.travis-ci.org/MongoEngine/mongoengine.png?branch=master

About

MongoEngine is a Python Object-Document Mapper for working with MongoDB. Documentation available at http://mongoengine-odm.rtfd.org - there is currently a tutorial, a user guide and an API reference.

Installation

If you have setuptools you can use easy_install -U mongoengine. Otherwise, you can download the source from GitHub and run python setup.py install.

Dependencies

  • pymongo 2.5+
  • sphinx (optional - for documentation generation)

Examples

Some simple examples of what MongoEngine code looks like:

class BlogPost(Document):
    title = StringField(required=True, max_length=200)
    posted = DateTimeField(default=datetime.datetime.now)
    tags = ListField(StringField(max_length=50))

class TextPost(BlogPost):
    content = StringField(required=True)

class LinkPost(BlogPost):
    url = StringField(required=True)

# Create a text-based post
>>> post1 = TextPost(title='Using MongoEngine', content='See the tutorial')
>>> post1.tags = ['mongodb', 'mongoengine']
>>> post1.save()

# Create a link-based post
>>> post2 = LinkPost(title='MongoEngine Docs', url='hmarr.com/mongoengine')
>>> post2.tags = ['mongoengine', 'documentation']
>>> post2.save()

# Iterate over all posts using the BlogPost superclass
>>> for post in BlogPost.objects:
...     print '===', post.title, '==='
...     if isinstance(post, TextPost):
...         print post.content
...     elif isinstance(post, LinkPost):
...         print 'Link:', post.url
...     print
...

>>> len(BlogPost.objects)
2
>>> len(HtmlPost.objects)
1
>>> len(LinkPost.objects)
1

# Find tagged posts
>>> len(BlogPost.objects(tags='mongoengine'))
2
>>> len(BlogPost.objects(tags='mongodb'))
1

Tests

To run the test suite, ensure you are running a local instance of MongoDB on the standard port, and run: python setup.py test.

Contributing

We welcome contributions! see the`Contribution guidelines <https://github.com/MongoEngine/mongoengine/blob/master/CONTRIBUTING.rst>`_

Subscribe to package updates

Last updated Sep 20th, 2013

Download Stats

Last month:12

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.