Skip to content

Commit afc9ddf

Browse files
feedback
1 parent 102c829 commit afc9ddf

File tree

5 files changed

+19
-6
lines changed

5 files changed

+19
-6
lines changed

source/connect/stable-api.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,3 @@ following API documentation:
120120
- `MongoClient <{+api-root+}pymongo/mongo_client.html#pymongo.mongo_client.MongoClient>`__
121121
- `ServerApi <{+api-root+}pymongo/server_api.html#pymongo.server_api.ServerApi>`__
122122
- `ServerApiVersion <{+api-root+}pymongo/server_api.html#pymongo.server_api.ServerApiVersion>`__
123-
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.. important::
2+
3+
The {+driver-async+} driver is experimental and should not be used in
4+
production environments. Classes, methods, and behaviors described in this
5+
guide might change prior to the full release. If you encounter any
6+
issues with {+driver-async+}, you can learn how to report them on the
7+
:ref:`pymongo-issues-help` page.

source/index.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ in the :ref:`pymongo-upgrade` section.
125125
Migrate from Motor to {+driver-async+}
126126
-------------------------------------
127127

128-
In September 2024, MongoDB released the {+driver-async+} driver as a replacement
128+
In September 2024, MongoDB released the experimental {+driver-async+} driver as a replacement
129129
for `Motor <https://www.mongodb.com/docs/drivers/motor/>`__, the previous asynchronous
130130
MongoDB driver for Python. Learn how to migrate from Motor
131131
to the {+driver-async+} driver in the :ref:`pymongo-async-motor-migration`
@@ -135,7 +135,7 @@ Switch from {+driver-short+} to {+driver-async+}
135135
----------------------------------------------
136136

137137
Learn what changes you need to make to switch from {+driver-short+} to
138-
{+driver-async+} in the :ref:`pymongo-to-async-guide` section.
138+
the experimental {+driver-async+} driver in the :ref:`pymongo-to-async-guide` section.
139139

140140
Previous Versions
141141
-----------------

source/motor-async-migration.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Migrate from Motor to {+driver-async+}
1717
.. meta::
1818
:keywords: motor, async, refactor, migration
1919

20+
.. include:: /includes/pymongo-async-experimental.rst
21+
2022
Overview
2123
--------
2224

@@ -62,10 +64,13 @@ The following Motor method signatures behave differently in the {+driver-async+}
6264
- ``AsyncMongoClient.__init__()`` does not accept an ``io_loop`` parameter.
6365
- ``GridIn.set()`` does not accept a filename. Instead pass a file name by using the
6466
``GridIn.filename`` attribute.
65-
- ``Cursor.each()`` does not exist in the {+driver-async+} driver.
66-
- ``stream_to_handler()`` does not exist in the {+driver-async+} driver.
67-
- ``to_list(0)`` is not valid in the {+driver-async+} driver. Use
67+
- ``AsyncCursor.each()`` does not exist in the {+driver-async+} driver.
68+
- ``MotorGridOut.stream_to_handler()`` does not exist in the {+driver-async+} driver.
69+
- ``AsyncCursor.to_list(0)`` is not valid in the {+driver-async+} driver. Use
6870
``to_list(None)`` instead.
71+
- ``MongoClient`` is thread safe and can be used by many threads, however, an
72+
``AsyncMongoClient`` is not thread safe and should only be used by a single
73+
event loop.
6974

7075
Additional Information
7176
----------------------

source/pymongo-to-async-guide.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Switch from {+driver-short+} to {+driver-async+}
1717
.. meta::
1818
:keywords: asyncronous, refactor, migration
1919

20+
.. include:: /includes/pymongo-async-experimental.rst
21+
2022
Overview
2123
--------
2224

0 commit comments

Comments
 (0)