Skip to content

Recommend PyMongo AsyncMongoClient over deprecated Motor#25

Merged
khelanmodi merged 1 commit into
Azure:mainfrom
khelanmodi:fix/pymongo-async-not-motor
May 26, 2026
Merged

Recommend PyMongo AsyncMongoClient over deprecated Motor#25
khelanmodi merged 1 commit into
Azure:mainfrom
khelanmodi:fix/pymongo-async-not-motor

Conversation

@khelanmodi
Copy link
Copy Markdown
Collaborator

Summary

The connection skill (skills/connection/SKILL.md) lists Motor as the canonical Python async MongoDB driver. MongoDB announced Motor's deprecation in May 2024 in favor of PyMongo's built-in async API (AsyncMongoClient, GA in PyMongo 4.9, Sept 2024). Motor receives only critical fixes through May 2026 and is end-of-life after that.

This is the only place in the kit that mentions an async Python driver, so it acts as the default routing signal — agents triggered on ""DocumentDB + async Python"" tasks currently recommend Motor by default, steering users onto a deprecated driver.

Change

One-line wording fix plus a short deprecation callout so future contributors don't reintroduce Motor.

-- **Synchronous** (PyMongo, Java sync): Thread blocks; pool size often matches
-  thread pool size
-- **Asynchronous** (Node.js, Motor): Non-blocking I/O; smaller pools suffice
+- **Synchronous** (PyMongo `MongoClient`, Java sync): Thread blocks; pool size
+  often matches thread pool size
+- **Asynchronous** (Node.js, PyMongo `AsyncMongoClient`): Non-blocking I/O;
+  smaller pools suffice
+
+> **Python async note:** Use PyMongo's native `AsyncMongoClient` (PyMongo
+> 4.9+), **not** Motor. MongoDB announced Motor's deprecation in May 2024 in
+> favor of PyMongo's built-in async API; Motor receives only critical fixes
+> through May 2026 and is end-of-life after that.

References

Validation

  • pwsh scripts/validate-skills.ps1 still passes (17/17).
  • No other Motor references exist in the repo (rg -i motor returns only this line).

The connection skill listed Motor as the canonical Python async MongoDB
driver. MongoDB announced Motor's deprecation in May 2024 in favor of
PyMongo's built-in async API (`AsyncMongoClient`, GA in PyMongo 4.9,
Sept 2024). Motor receives only critical fixes through May 2026 and
will be end-of-life after that.

Because this is the only place in the kit that mentions an async Python
driver, agents currently default to recommending Motor for any
`DocumentDB + async Python` task. Update the bullet to point at
`pymongo.AsyncMongoClient` and add a short callout explaining the
deprecation so future contributors don't reintroduce Motor.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@khelanmodi khelanmodi merged commit 1903a60 into Azure:main May 26, 2026
3 checks passed
@khelanmodi khelanmodi deleted the fix/pymongo-async-not-motor branch May 26, 2026 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants