{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/6"},{"label":"Database","url":"https://skillfed.io/packages/category/database/2"}],"enrichment":{"capability":"MongoEngine provides an Object-Document Mapper (ODM) layer on top of PyMongo, letting you define MongoDB documents as Python classes with typed fields and query them using a familiar ORM-like interface.","skillfed_tags":["mongodb-orm","document-mapper","schema-validation"],"use_cases":["Define MongoDB schemas with typed fields and validation rules, then query documents as Python objects instead of raw dictionaries.","Build web applications (Flask, Django) that need MongoDB persistence with an ORM-like interface familiar to SQL developers.","Implement document inheritance and polymorphism where subclasses of a base document type are stored in the same collection.","Prototype or migrate from SQL databases to MongoDB while keeping a similar object-oriented data model.","Handle complex nested documents and lists with automatic serialization and deserialization between Python and BSON."],"what_it_does":"MongoEngine is a Python Object-Document Mapper that sits on top of PyMongo and lets you define MongoDB documents as Python classes with typed fields, validation rules, and relationships. Instead of working directly with dictionaries and raw MongoDB queries, you define a class (like a Django model or SQLAlchemy ORM class) with fields like StringField, DateTimeField, and ListField, then create, query, and manipulate documents as instances of those classes. It handles the translation between Python objects and MongoDB's BSON format, supports inheritance, field validation, and provides a query interface similar to traditional ORMs.\n\nThe package is production-stable, actively maintained, and widely used. It depends only on pymongo and has low install friction. Optional features like DateTimeField parsing, image handling, and signal support require additional packages (dateutil, Pillow, blinker) that you can add as needed. MongoEngine is tested against MongoDB v4.4, v5.0, v6.0, and v7.0, and supports Python 3.7 and later.","worth_installing":"Yes. MongoEngine is production-stable, actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. Install it if you want an ORM-like layer over MongoDB and prefer working with Python classes and typed fields instead of raw dictionaries and queries. Skip it only if you need maximum performance or prefer the flexibility and control of raw PyMongo."},"id":"mongoengine","links":{"html":"https://skillfed.io/packages/mongoengine","md":"https://skillfed.io/packages/mongoengine.md","pypi":"https://pypi.org/project/mongoengine/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-10","license_spdx":null,"license_treatment":"permissive","name":"mongoengine","python_support":"supports_current","summary":"MongoEngine is a Python Object-Document Mapper for working with MongoDB."},"popularity":{"monthly_downloads":2512474,"position":3032,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.29.3"}
