motor
Non-blocking MongoDB driver for Tornado or asyncio
Decision gist · record as of 2026-08-14
Yes, but with a critical caveat: Motor is actively maintained and production-stable, with low install friction and permissive licensing. However, it is scheduled for deprecation on May 14th, 2026, with MongoDB strongly recommending migration to the PyMongo Async driver. Install Motor only if you have an existing Motor codebase or a clear migration plan; for new projects, evaluate the PyMongo Async driver instead.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9+; must be used within an asyncio event loop or Tornado application context.
- Low install friction with a single runtime dependency (pymongo).
- Active maintenance as of August 2026, though Motor is scheduled for deprecation on May 14th, 2026, with critical bug fixes until May 14th, 2027—users should plan migration to the PyMongo Async driver.
License · maintenance · safety
permissive license (permissive) — Apache License 2.0 is permissive; you may use, modify, and distribute Motor freely in commercial and open-source projects, provided you include license and copyright notices.
last release 2025-05-14 (457 days) · last repo commit 2026-08-10 · 2,527 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 11,494,607 downloads/mo, #1,389 on PyPI
Alternatives
Verify before relying
pip install motor
import motor.motor_asyncio
client = motor.motor_asyncio.AsyncIOMotorClient()
db = client.test_database
collection = db.test_collection
# Use in an async context
await collection.insert_one({'name': 'example'})- Performance characteristics and throughput limits in production environments beyond the quoted use cases.
- Compatibility matrix details with specific asyncio and Tornado versions.
- Migration path complexity and effort for existing Motor applications moving to PyMongo Async driver.
What it is and what it does
Motor is a non-blocking MongoDB driver designed for Python asyncio and Tornado applications. It wraps pymongo (>=4.9,<5) to provide a coroutine-based API that allows your application to query MongoDB without blocking the event loop, enabling efficient handling of concurrent requests. Motor is used in high-throughput environments where blocking I/O would degrade performance; it lets you scale horizontally by fully utilizing available CPU cores.
The package requires Python 3.9+ and works on Unix (including macOS) and Windows. It has a single runtime dependency on pymongo and offers optional extras for features like GSSAPI authentication, AWS authentication, mongodb+srv:// URIs, OCSP, and wire protocol compression. However, Motor is entering end-of-life: it will be deprecated on May 14th, 2026, with critical bug fixes only until May 14th, 2027. MongoDB recommends migrating to the PyMongo Async driver for new projects.
Use it for
- Building high-throughput web services with asyncio or Tornado that need concurrent MongoDB access without blocking.
- Sensor systems and IoT applications requiring massively scalable database operations across many concurrent connections.
- Real-time data processing pipelines that must handle thousands of requests per second while maintaining responsive event loops.
- Microservices using async frameworks that need non-blocking database queries.
- Applications requiring GSSAPI or AWS authentication to MongoDB with async/await syntax.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, but with a critical caveat: Motor is actively maintained and production-stable, with low install friction and permissive licensing.
However, it is scheduled for deprecation on May 14th, 2026, with MongoDB strongly recommending migration to the PyMongo Async driver. Install Motor only if you have an existing Motor codebase or a clear migration plan; for new projects, evaluate the PyMongo Async driver instead.
Install
motor on PyPI
Before you install
Low install friction with a single runtime dependency (pymongo). Active maintenance as of August 2026, though Motor is scheduled for deprecation on May 14th, 2026, with critical bug fixes until May 14th, 2027—users should plan migration to the PyMongo Async driver.
Requires Python 3.9+; must be used within an asyncio event loop or Tornado application context.
License in practice
Apache License 2.0 is permissive; you may use, modify, and distribute Motor freely in commercial and open-source projects, provided you include license and copyright notices.
Quickstart
pip install motor
import motor.motor_asyncio
client = motor.motor_asyncio.AsyncIOMotorClient()
db = client.test_database
collection = db.test_collection
# Use in an async context
await collection.insert_one({'name': 'example'})
Verify before relying
- Performance characteristics and throughput limits in production environments beyond the quoted use cases.
- Compatibility matrix details with specific asyncio and Tornado versions.
- Migration path complexity and effort for existing Motor applications moving to PyMongo Async driver.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepymongo |
| Maintenance | Actively maintained 457 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 11,494,607 / month, #1,389 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTyping :: Typed |
Evidence: motor-3.7.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “async mongodb driver”
- motorMotor provides a non-blocking MongoDB driver for asyncio and Tornado…
- pymongoPyMongo is the official MongoDB Python driver, providing synchronous…
- odmanticODMantic is an async-first Object Document Mapper for MongoDB that…
Give your agent the search over MCP, or paste the wish link into any chat.
More Database packages
psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.
Python client library for connecting to and executing commands against Redis key-value stores, supporting both synchronous and asynchronous operations.
Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.
YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.
Install it if you need to connect Python applications to YDB databases.
Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.
sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.
Install it if you need to manipulate, format, or analyze SQL text programmatically.
Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.
See also mongomock-motor · motor-types · pymongo · Flask-PyMongo · tornado · dynamixel-sdk · beanie · pymongo_inmemory · pymongo-auth-aws · pydantic-mongo