#278278th of 358 in Backends, databases and hosting
mongoengine
Python object-document mapper for MongoDB built on PyMongo
Run it:RackNerd ↗ (opens in a new tab)RepoCloud ↗ (opens in a new tab)Affiliate links, no effect on a rank.
- Stars
- 4.3k
- License
- MIT
- Last commit
- Sep 2026
- Last release
- Mar 2026
- Language
- Python
4,331 on 26 Apr 20264,344 on 22 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
MongoEngine maps Python classes to MongoDB collections, with typed fields, validation, document inheritance and a queryset API such as BlogPost.objects(tags='x').count(). It sits on top of PyMongo and is tested against MongoDB 4.4 through 8.0. It is a general database library with no AI features, so it fits this list only as a backend component.
Who it is for: Python developers storing application data in MongoDB
Strengths
- Declarative Document classes with field validation and inheritance, queried through a queryset API
- Tested against MongoDB 4.4, 5.0, 6.0, 7.0 and 8.0
- Only PyMongo >=4.0 required; Pillow, python-dateutil and blinker are optional
- Docs include a tutorial, user guide and API reference on Read the Docs
Weaknesses
- Python and MongoDB only; no other databases supported
- Requires Python 3.10 or newer
- No AI or LLM features; unrelated to model serving or agents
- Tests need a running MongoDB on the standard port
What it needs
- no GPU
- Docker + Compose
- Needs MongoDB, PyMongo >=4.0, Python >=3.10
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Known problems
Reported, then fixed by a linked change
- Confusing behaviour when ListFields are set to empty list ↗ (opens in a new tab)10 reactions · closed 30 Aug 2026Fixed by Set default value (or empty list/dict) no longer unset the field ↗ (opens in a new tab)
- dec atomic operation on Float/Decimal/Int Field is broken ↗ (opens in a new tab)4 reactions · closed 20 Aug 2026Fixed by Fix inc/dec rejecting deltas outside a field's min_value/max_value ↗ (opens in a new tab)
Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.
Also in Backends, databases and hosting
See all 358| Rank | Project | Score |
|---|---|---|
| #276 | sqlite-dataSwift SQLite persistence library replacing SwiftData, with CloudKit sync | 59 out of 100 |
| #277 | badgerEmbeddable key-value database for Go with ACID transactions | 58 out of 100 |
| #279 | zappaCLI that deploys Python WSGI and ASGI apps to AWS Lambda and API Gateway | 58 out of 100 |
| #280 | apache/igniteDistributed in-memory database with SQL, ACID transactions and compute APIs | 57 out of 100 |
| #281 | im-serverSelf-hosted instant messaging server in Go over Protobuf and WebSocket | 57 out of 100 |