Docs Menu

MongoDB with Python

Build cutting-edge applications with Python and MongoDB, from dynamic modern web applications to Gen-AI systems and data science projects. MongoDB's scalable cloud database infrastructure ensures your solutions are robust and optimized for performance.

Get started with MongoDB Python
Python landing page hero image

As of May 14, 2025, Motor is deprecated in favor of the GA release of the PyMongo Async API in the PyMongo library. We will not add new features to Motor, and we will provide only bug fixes until it reaches end of life on May 14, 2026. After that, we will fix only critical bugs until final support ends on May 14, 2027. We strongly recommend migrating to the PyMongo Async API while Motor is still supported.

For more information about migrating, see the Migrate to PyMongo Async guide in the PyMongo documentation.

Provides a synchronous and asynchronous API for working with MongoDB databases consistent with other MongoDB language drivers.

PyMongo Documentation →

Configure connections to different databases or clusters, store and retrieve objects, or use MongoDB as a data store.

Django logo

Django MongoDB Backend

FastAPI logo

FastAPI

Flask logo

Flask

Community built ODMs (ORMs for Document Database):

MongoEngine for Flask
community built
Beanie for FastAPI
community built
ODMantic for FastAPI
community built

PyMongoArrow

LangChain logo

LangChain

LangGraph logo

LangGraph

LlamaIndex logo

LlamaIndex

Microsoft logo

Microsoft Semantic Kernel

Haystack logo

HayStack

DocArray logo

DocArray

ChatGPT Retrieval Plugin logo

ChatGPT Retrieval Plugin

Achievement icon

Take the Python Associate Developer Exam

Python Associate Developer Exam →

Learn icon

Learn about Python and MongoDB

Python Developer Path →

Community icon

Join forums and discussions

MongoDB Community →


Morty Proxy This is a proxified and sanitized view of the page, visit original site.