CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Wed, 30 Jul 2025 16:01:14 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100103191200
location: https://web.archive.org/web/20100103191200/https://github.com/hmarr/mongoengine
server-timing: captures_list;dur=1.547894, exclusion.robots;dur=0.051932, exclusion.robots.policy;dur=0.023291, esindex;dur=0.026742, cdx.remote;dur=1100.288715, LoadShardBlock;dur=418.186743, PetaboxLoader3.datanode;dur=144.647755, PetaboxLoader3.resolve;dur=202.880075
x-app-server: wwwb-app223
x-ts: 302
x-tr: 1589
server-timing: TR;dur=0,Tw;dur=723,Tc;dur=0
set-cookie: SERVER=wwwb-app223; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Wed, 30 Jul 2025 16:01:15 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Sun, 03 Jan 2010 19:12:00 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "8b015423a32f38fda28621babb25d0f9"
x-archive-orig-x-runtime: 127ms
x-archive-orig-content-length: 24394
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sun, 03 Jan 2010 19:12:00 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Thu, 26 Nov 2009 05:33:50 GMT", ; rel="prev memento"; datetime="Thu, 26 Nov 2009 05:33:50 GMT", ; rel="memento"; datetime="Sun, 03 Jan 2010 19:12:00 GMT", ; rel="next memento"; datetime="Tue, 05 Jan 2010 13:45:10 GMT", ; rel="last memento"; datetime="Sun, 18 May 2025 13:27:11 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_13_20100103171315_crawl100-c/52_13_20100103191148_crawl101.arc.gz
server-timing: captures_list;dur=0.516277, exclusion.robots;dur=0.020066, exclusion.robots.policy;dur=0.010032, esindex;dur=0.009395, cdx.remote;dur=73.883057, LoadShardBlock;dur=245.001964, PetaboxLoader3.datanode;dur=144.267391, PetaboxLoader3.resolve;dur=402.427223, load_resource;dur=347.271154
x-app-server: wwwb-app223
x-ts: 200
x-tr: 733
server-timing: TR;dur=0,Tw;dur=578,Tc;dur=1
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
hmarr's mongoengine at master - GitHub
hmarr / mongoengine
- Source
- Commits
- Network (3)
- Issues (7)
- Graphs
-
Branch:
master
-
Branches (1)
- master ✓
- Tags (0)
name | age | message | |
---|---|---|---|
![]() |
.gitignore | Sat Dec 19 08:04:05 -0800 2009 | Added API Reference to docs [hmarr] |
![]() |
LICENSE | Sat Jan 02 13:34:48 -0800 2010 | Version bump to 0.1 beta [hmarr] |
![]() |
MANIFEST.in | Sat Jan 02 18:30:34 -0800 2010 | Added setup.py and MANIFEST.in, added to PyPI [hmarr] |
![]() |
README.rst | Thu Dec 24 10:45:35 -0800 2009 | Added __len__ to QuerySet [hmarr] |
![]() |
docs/ | Sat Jan 02 18:30:34 -0800 2010 | Added setup.py and MANIFEST.in, added to PyPI [hmarr] |
![]() |
mongoengine/ | Sun Jan 03 08:44:24 -0800 2010 | QuerySet.first now uses existing cursor [hmarr] |
![]() |
setup.py | Sat Jan 02 18:30:34 -0800 2010 | Added setup.py and MANIFEST.in, added to PyPI [hmarr] |
![]() |
tests/ | Wed Dec 30 08:31:33 -0800 2009 | Added average to QuerySet [hmarr] |
README.rst
MongoEngine
Info: | MongoEngine is an ORM-like layer on top of PyMongo. |
---|---|
Author: | Harry Marr (https://github.com/hmarr) |
About
MongoEngine is a Python Object-Document Mapper for working with MongoDB. Documentation available at https://hmarr.com/mongoengine/ - there is currently a tutorial, a user guide and an API reference.
Dependencies
- pymongo 1.1+
- 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 ... === Using MongoEngine === See the tutorial === MongoEngine Docs === Link: hmarr.com/mongoengine >>> 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
This feature is coming soon. Sit tight!