Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Flask
  3. Flask-MongoRest

Flask-MongoRest

NOASSERTIONPythonv0.3.0

A RESTful API framework for Flask that integrates with MongoEngine to simplify MongoDB-backed API development.

GitHubGitHub
518 stars86 forks0 contributors

What is Flask-MongoRest?

Flask-MongoRest is a RESTful API framework designed for Flask applications that use MongoEngine as their Object-Document Mapper (ODM). It provides tools to quickly build APIs for MongoDB data models, handling serialization, filtering, and authentication with minimal configuration. The framework simplifies creating CRUD endpoints and managing relationships between documents.

Target Audience

Python developers building RESTful APIs with Flask and MongoDB who want to reduce boilerplate code and leverage MongoEngine's document modeling. It's suitable for backend engineers creating data-driven web services or internal tools.

Value Proposition

Developers choose Flask-MongoRest for its tight integration with MongoEngine, allowing them to define API resources directly from document models. It offers built-in filtering, pagination, and authentication extensibility, making it faster to deploy production-ready APIs compared to building from scratch.

Overview

Restful API framework wrapped around MongoEngine

Use Cases

Best For

  • Rapidly prototyping REST APIs with MongoDB and Flask
  • Building internal admin panels or tools that need CRUD operations on MongoDB data
  • Creating APIs with complex document relationships and embedded documents
  • Projects requiring custom authentication logic for API endpoints
  • Developing data-driven web services with filtering and pagination needs
  • Teams already using MongoEngine who want to add RESTful endpoints

Not Ideal For

  • Projects requiring active maintenance and long-term support, as the project is explicitly not maintained.
  • Teams planning to migrate away from MongoDB or use multiple database types, due to tight MongoEngine coupling.
  • Applications needing complex business logic or custom validation beyond basic CRUD operations, as it focuses on resource mapping.
  • Developers seeking a large ecosystem with extensive third-party plugins or community-driven updates.

Pros & Cons

Pros

Rapid API Development

Directly maps MongoEngine documents to REST endpoints with resource-based configuration, minimizing boilerplate code for CRUD operations.

Flexible Filtering Support

Built-in URL parameter handling for MongoDB query operators like exact matches and starts-with, enabling advanced data queries without custom backend logic.

Nested Document Serialization

Automatically serializes embedded or referenced documents using related_resources definitions, simplifying API responses for complex data models.

Extensible Authentication

Provides an AuthenticationBase class for implementing custom authentication methods, such as session-based or API key auth, as shown in the README examples.

Cons

Abandoned Project Status

The README explicitly states it is not actively maintained and not recommended for production, posing security and compatibility risks.

MongoEngine Lock-in

Heavily dependent on MongoEngine for ODM functionality, making it difficult to switch to other databases or ODMs without rewriting the API layer.

Configuration Verbosity

Requires detailed resource and view definitions with classes for filters and serialization, which can be cumbersome for simple APIs compared to more modern frameworks.

Frequently Asked Questions

Quick Stats

Stars518
Forks86
Contributors0
Open Issues19
Last commit2 years ago
CreatedSince 2012

Tags

#api-framework#flask#rest-api#mongoengine#python#mongodb#web-framework#backend#odm

Built With

M
MongoEngine
P
Python
F
Flask

Included in

Flask1.7k
Auto-fetched 6 hours ago

Related Projects

Flask-ClassfulFlask-Classful

Adds support for class-based views for setting up RESTful API route endpoints

Stars0
Forks0
Last commit
EveEve

RESTful API framework designed for human beings

Stars0
Forks0
Last commit
Flask-RESTfulFlask-RESTful

Quickly build RESTful APIs

Stars0
Forks0
Last commit
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub