{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/15"},{"label":"Dynamic Content","url":"https://skillfed.io/packages/category/internet-www-http-dynamic-content/2"}],"enrichment":{"capability":"Flask-PyMongo integrates MongoDB database access into Flask applications through PyMongo, providing a configured connection object for querying and managing MongoDB collections.","skillfed_tags":["flask-extension","mongodb-driver","database-integration"],"use_cases":["Building Flask web applications that store and retrieve user data, posts, or other documents in MongoDB.","Querying MongoDB collections directly in Flask route handlers to render dynamic HTML templates.","Managing MongoDB connections across multiple Flask blueprints and request handlers.","Prototyping or developing small-to-medium Flask applications with document-oriented data models.","Integrating MongoDB into existing Flask projects that previously used SQL databases."],"what_it_does":"Flask-PyMongo is a Flask extension that wraps PyMongo to simplify MongoDB integration in Flask applications. It initializes a PyMongo instance configured through Flask's app.config, exposing the MongoDB connection and database objects as attributes of the extension object. You configure it with a MONGO_URI connection string and then access collections and perform queries directly through the mongo object in your route handlers and application code.\n\nThe package is designed for synchronous Flask applications that need straightforward MongoDB access without additional abstraction layers. It requires Flask 3.0 or later and PyMongo 4.0 or later, and supports Python 3.9 through 3.13 on CPython and PyPy. The extension handles connection lifecycle management within Flask's application context.","worth_installing":"Yes. Flask-PyMongo is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive BSD license. Install it if you are building a Flask application that needs MongoDB support and prefer a lightweight, direct integration over an ORM. If you need async support, consider Motor instead."},"id":"flask-pymongo","links":{"html":"https://skillfed.io/packages/flask-pymongo","md":"https://skillfed.io/packages/flask-pymongo.md","pypi":"https://pypi.org/project/flask-pymongo/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-01-29","license_spdx":null,"license_treatment":"permissive","name":"Flask-PyMongo","python_support":"supports_current","summary":"PyMongo support for Flask applications"},"popularity":{"monthly_downloads":228000,"position":9159,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"3.0.1"}
