{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/20"},{"label":"Dynamic Content","url":"https://skillfed.io/packages/category/internet-www-http-dynamic-content/3"}],"enrichment":{"capability":"Flask-MongoEngine integrates MongoEngine document models with Flask, handling MongoDB connection management and providing WTForms model form generation for your MongoEngine documents.","skillfed_tags":["mongodb-orm","flask-extension","form-generation"],"use_cases":["Build a Flask web app with MongoDB as the primary database, letting the extension manage connections and model integration.","Generate HTML forms automatically from MongoEngine document definitions without writing form classes manually.","Add pagination to query results and template rendering with built-in paginate() and paginate_field() QuerySet methods.","Store Flask sessions in MongoDB instead of memory or Redis using MongoEngineSessionInterface.","Debug MongoDB queries in Flask-DebugToolbar by registering the MongoDebugPanel."],"what_it_does":"Flask-MongoEngine is a Flask extension that bridges Flask applications with MongoEngine, a MongoDB object-document mapper. It manages MongoDB connections for your app, handles initialization via the extension pattern (immediate or deferred via init_app), and automatically generates WTForms from your MongoEngine document models. The package also extends MongoEngine's QuerySet with Flask-specific helpers like get_or_404, first_or_404, and pagination methods, plus optional session storage in MongoDB and debug toolbar integration.\n\nYou define your data models as MongoEngine documents, then use model_form() to automatically create WTForms from them. The extension handles field type mapping (StringField to TextAreaField, ReferenceField to SelectField, ListField to FieldList, etc.) and supports customization hints. Connection configuration is straightforward via app.config dictionaries or individual MONGODB_* settings, with support for URI-style connections and authentication.","worth_installing":"Yes, with conditions. Flask-MongoEngine is stable and low-friction to install, with no known vulnerabilities and a permissive license. However, it is dormant\u2014last release 2020-11-21, last commit 2024-01-18\u2014so it may lag behind current Flask or MongoEngine releases. Install it if you are working with a compatible Flask and MongoEngine stack; do not expect active maintenance or rapid fixes for compatibility issues."},"id":"flask-mongoengine","links":{"html":"https://skillfed.io/packages/flask-mongoengine","md":"https://skillfed.io/packages/flask-mongoengine.md","pypi":"https://pypi.org/project/flask-mongoengine/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2020-11-21","license_spdx":null,"license_treatment":"permissive","name":"flask-mongoengine","python_support":"unspecified","summary":"Flask-MongoEngine is a Flask extension that provides integration with MongoEngine and WTF model forms."},"popularity":{"monthly_downloads":100126,"position":12999,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.0"}
