#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.

Releases and problems feed (RSS)

Stars
4.3k
License
MIT
Last commit
Sep 2026
Last release
Mar 2026
Language
Python
Stars, last 30 weeks+13
26 Apr 2026: 4,331 stars3 May 2026: 4,331 stars10 May 2026: 4,331 stars17 May 2026: 4,331 stars24 May 2026: 4,331 stars31 May 2026: 4,331 stars7 Jun 2026: 4,331 stars14 Jun 2026: 4,331 stars21 Jun 2026: 4,331 stars28 Jun 2026: 4,331 stars5 Jul 2026: 4,331 stars12 Jul 2026: 4,332 stars19 Jul 2026: 4,333 stars26 Jul 2026: 4,334 stars2 Aug 2026: 4,334 stars9 Aug 2026: 4,334 stars16 Aug 2026: 4,334 stars23 Aug 2026: 4,335 stars30 Aug 2026: 4,336 stars6 Sept 2026: 4,338 stars13 Sept 2026: 4,339 stars20 Sept 2026: 4,339 stars27 Sept 2026: 4,341 stars4 Oct 2026: 4,342 stars11 Oct 2026: 4,342 stars18 Oct 2026: 4,343 stars25 Oct 2026: 4,343 stars1 Nov 2026: 4,343 stars8 Nov 2026: 4,344 stars15 Nov 2026: 4,344 stars22 Nov 2026: 4,344 stars

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

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
Also in Backends, databases and hosting
RankProjectScore
#276sqlite-dataSwift SQLite persistence library replacing SwiftData, with CloudKit sync2k starsMIT59 out of 100
#277badgerEmbeddable key-value database for Go with ACID transactions15.8k starsApache-2.058 out of 100
#279zappaCLI that deploys Python WSGI and ASGI apps to AWS Lambda and API Gateway3.7k starsMIT58 out of 100
#280apache/igniteDistributed in-memory database with SQL, ACID transactions and compute APIs5.1k starsApache-2.057 out of 100
#281im-serverSelf-hosted instant messaging server in Go over Protobuf and WebSocket3.5k starsApache-2.057 out of 100