mongoengine

MongoEngine is a Python library that provides an object document matching (ODM) layer running on PyMongo. MongoDB supports versions between v4.4 and v8.0 and requires Python 3.10 or above. In addition to the PyMongo dependency, it offers optional packages for date parsing, image processing, and signal support.

MO

MongoEngine · ORM & Database Tooling

STARS4.3K
FORKS1.2K
COMMITS0
CONTRIBUTORS0
VERSIONv0.29.3
UPDATED1 mo ago
PythonMongoDBODMPyMongoMIT
What can it do?
  • By defining Python classes and fields, you can create and save MongoDB documents to the database.
  • You can apply verification rules on document fields and use heredity features.
  • You can run object-oriented queries on PyMongo-based infrastructure.
User reviews
  • ↑ PositiveHacker News

    Introducing MongoMallard: A fast ORM based on MongoEngine

    “Regarding schematics: We actually developed a object validation library that's very similar to it. It's called cleancat. It comes with some MongoEngine-specific fields to validate references. It's best to look at the unit tests to see how it works: Regarding collections and…”

  • • NeutralHacker News

    Introducing MongoMallard: A fast ORM based on MongoEngine

    “The thing that changed in 0.8 is that references are now stored as ObjectIds only instead of storing both the table name and the ObjectId (you can still get the old behavior by using dbref=True). However, you would still have to check whether or not the reference was an ObjectId…”

My note

More in: ORM & Database Tooling