Skip to content

Commit 2e82f3d

Browse files
authored
Merge branch 'master' into DOCSP-48895
2 parents 09c677b + 5be5b14 commit 2e82f3d

18 files changed

+71
-15
lines changed

config/redirects

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
define: prefix docs/languages/python/pymongo-driver
22
define: base https://www.mongodb.com/${prefix}
3-
define: versions v4.0 v4.1 v4.2 v4.3 v4.4 v4.5 v4.6 v4.7 v4.8 v4.9 4.10 4.11 master
3+
define: versions v4.0 v4.1 v4.2 v4.3 v4.4 v4.5 v4.6 v4.7 v4.8 v4.9 4.10 4.11 4.12 master
44

55
symlink: current -> master
66

@@ -9,7 +9,7 @@ raw: ${prefix}/stable -> ${base}/current/
99
raw: ${prefix}/master -> ${base}/upcoming/
1010

1111
# temp redirects until DOP deletes unversioned URLs
12-
raw: ${prefix}/get-started/download-and-install/ -> ${base}/current/get-started/download-and-install/
12+
raw: ${prefix}/get-started/download-and-install/ -> ${base}/current/get-started/
1313
raw: ${prefix}/compatibility/ -> ${base}/current/compatibility/
1414
raw: ${prefix}/security/enterprise-authentication/ -> ${base}/current/security/authentication/
1515
raw: ${prefix}/faq/ -> ${base}/current/
@@ -18,6 +18,7 @@ raw: ${prefix}/get-started/download-and-install/ -> ${base}/current/get-started/
1818
raw: ${prefix}/get-started/create-a-deployment/ -> ${base}/current/get-started/
1919
raw: ${prefix}/get-started/create-a-connection-string/ -> ${base}/current/get-started/
2020
raw: ${prefix}/get-started/connect-to-mongodb/ -> ${base}/current/get-started/
21+
raw: ${prefix}/get-started/run-sample-query/ -> ${base}/current/get-started/
2122
raw: ${prefix}/get-started/next-steps/ -> ${base}/current/get-started/
2223
raw: ${prefix}/connect/csot/ -> ${base}/current/connect/connection-options/csot/
2324
raw: ${prefix}/connect/network-compression/ -> ${base}/current/connect/connection-options/network-compression/
@@ -90,7 +91,6 @@ raw: ${prefix}/reference/previous-versions/ -> ${base}/current/reference/previou
9091
raw: ${prefix}/tools/ -> ${base}/current/integrations/
9192
raw: ${prefix}/upgrade/ -> ${base}/current/reference/upgrade/
9293
raw: ${prefix}/write-operations/ -> ${base}/current/crud/
93-
raw: ${prefix}/get-started/connect-to-mongodb -> ${base}/current/get-started/run-sample-query/
9494
raw: ${prefix}/work-with-indexes/ -> ${base}/current/indexes/
9595
raw: ${prefix}/indexes/single-field-index/ -> ${base}/current/indexes/
9696
raw: ${prefix}/indexes/compound-index/ -> ${base}/current/indexes/
@@ -121,6 +121,7 @@ raw: ${prefix}/security/authentication/kerberos/ -> ${base}/current/security/aut
121121
[*-master]: ${prefix}/${version}/get-started/create-a-deployment/ -> ${base}/${version}/get-started/
122122
[*-master]: ${prefix}/${version}/get-started/create-a-connection-string/ -> ${base}/${version}/get-started/
123123
[*-master]: ${prefix}/${version}/get-started/connect-to-mongodb/ -> ${base}/${version}/get-started/
124+
[*-master]: ${prefix}/${version}/get-started/run-sample-query/ -> ${base}/${version}/get-started/
124125
[*-master]: ${prefix}/${version}/get-started/next-steps/ -> ${base}/${version}/get-started/
125126
[*-master]: ${prefix}/${version}/connect/csot/ -> ${base}/${version}/connect/connection-options/csot/
126127
[*-master]: ${prefix}/${version}/connect/network-compression/ -> ${base}/${version}/connect/connection-options/network-compression/
@@ -156,7 +157,6 @@ raw: ${prefix}/security/authentication/kerberos/ -> ${base}/current/security/aut
156157
[*-master]: ${prefix}/${version}/tools/ -> ${base}/${version}/integrations/
157158
[*-master]: ${prefix}/${version}/upgrade/ -> ${base}/${version}/reference/upgrade/
158159
[*-master]: ${prefix}/${version}/write-operations/ -> ${base}/${version}/crud/
159-
[*-master]: ${prefix}/${version}/get-started/connect-to-mongodb -> ${base}/${version}/get-started/run-sample-query/
160160
[*-master]: ${prefix}/${version}/work-with-indexes/ -> ${base}/${version}/indexes/
161161

162162
[*-master]: ${prefix}/${version}/indexes/single-field-index/ -> ${base}/${version}/indexes/

source/connect/connection-options.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Specify Connection Options
1616

1717
.. meta::
1818
:keywords: connection string, URI, server, Atlas, settings, configure
19+
:description: Explore how to configure MongoDB connection options in PyMongo using connection URIs or `MongoClient` arguments, covering compression, timeouts, and authentication.
1920

2021
.. toctree::
2122
:titlesonly:

source/connect/connection-targets.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Choose a Connection Target
1010

1111
.. meta::
1212
:keywords: connection string, URI, server, settings, client, load balancing, srv, dns
13+
:description: Learn how to connect to different MongoDB deployments using PyMongo, including Atlas, local deployments, and replica sets, with connection string examples.
1314

1415
.. contents:: On this page
1516
:local:
@@ -163,6 +164,10 @@ tab to see the corresponding code:
163164
uri = "mongodb://host1:27017/?replicaSet=sampleRS"
164165
client = AsyncMongoClient(uri)
165166

167+
.. note:: Replica Set in Docker
168+
169+
.. sharedinclude:: dbx/docker-replica-set.rst
170+
166171
{+driver-short+} evenly load balances operations across deployments that are reachable
167172
within the client's ``localThresholdMS`` value. To learn more about how {+driver-short+} load
168173
balances operations across multiple MongoDB deployments, see the

source/connect/mongoclient.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Create a MongoClient
1010

1111
.. meta::
1212
:keywords: connection string, URI, server, Atlas, settings, client
13+
:description: Learn how to create a `MongoClient` in PyMongo to connect to a MongoDB deployment using a connection URI and customize connection behavior.
1314

1415
.. contents:: On this page
1516
:local:

source/data-formats.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Specialized Data Formats
1616

1717
.. meta::
1818
:keywords: bson, uuid, date, time
19+
:description: Explore how to use specialized data formats in PyMongo, including BSON, Extended JSON, custom types, datetime objects, and UUIDs.
1920

2021
.. toctree::
2122
:titlesonly:

source/data-formats/custom-types.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Custom Types
1616

1717
.. meta::
1818
:keywords: bson, uuid, date, time
19+
:description: Learn how to use PyMongo to encode and decode custom types, including defining type codecs, using type registries, and implementing fallback encoders.
1920

2021
.. toctree::
2122
:titlesonly:

source/data-formats/dates-and-times.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Dates and Times
1515

1616
.. meta::
1717
:keywords: convert, span, central, mountain, pacific, eastern, calendar
18+
:description: Learn how to handle Python `datetime` objects in PyMongo, including storing, retrieving, and managing time zones and out-of-range dates.
1819

1920
Overview
2021
--------

source/data-formats/uuid.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Universally Unique IDs (UUIDs)
1515

1616
.. meta::
1717
:keywords: encode, decode, bson, binary, code examples
18+
:description: Learn how to use PyMongo's UuidRepresentation option to handle UUIDs for cross-language compatibility in MongoDB applications.
1819

1920
Overview
2021
--------

source/databases-collections.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Databases and Collections
1616

1717
.. meta::
1818
:keywords: table, row, organize, storage
19+
:description: Learn how to manage MongoDB databases and collections using PyMongo, including accessing, creating, and deleting collections, and configuring read and write operations.
1920

2021
Overview
2122
--------

source/includes/language-compatibility-table-pymongo.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ CPython
2727
- CPython 3.5
2828
- CPython 3.4
2929

30-
* - 4.11
30+
* - 4.11 to 4.12
3131
- ✓
3232
- ✓
3333
- ✓
@@ -199,7 +199,7 @@ PyPy
199199
- PyPy3.6
200200
- PyPy3.5
201201

202-
* - 4.11
202+
* - 4.11 to 4.12
203203
- ✓
204204
-
205205
-
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. important::
22

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.
3+
The {+driver-async+} driver is experimental. We do **not**
4+
recommend using it in production environments. Classes, methods, and
5+
behaviors described in this guide might change before the production release.
6+
If you encounter any issues with {+driver-async+}, you can learn how to
7+
report them on the :ref:`pymongo-issues-help` page.

source/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ MongoDB {+driver-short+} Documentation
99

1010
.. meta::
1111
:keywords: home
12+
:description: Explore the features and usage of the PyMongo Driver for Python, including installation, connection setup, data operations, and transitioning to PyMongo Async.
1213

1314
.. toctree::
1415

source/issues-and-help.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Issues & Help
1616

1717
.. meta::
1818
:keywords: suggestion, github, python
19+
:description: Find support for PyMongo through the MongoDB Community Forums, report bugs or request features via JIRA, and contribute to the driver with pull requests.
1920

2021
We're glad to have such a vibrant community of {+driver-short+}
2122
users. We recommend seeking support for general

source/reference.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,13 @@ Reference
1212
Compatibility </reference/compatibility>
1313
Upgrade Guides </reference/upgrade>
1414
Migrate to PyMongo Async </reference/migration>
15-
Previous Versions </reference/previous-versions>
15+
Previous Versions </reference/previous-versions>
16+
17+
To find information about versioning, upgrading your driver, and migrating to
18+
the asynchronous driver, see the following pages:
19+
20+
- :ref:`Release Notes <pymongo-release-notes>`
21+
- :ref:`Compatibility <pymongo-compatibility>`
22+
- :ref:`Upgrade Guides <pymongo-upgrade>`
23+
- :ref:`Migrate to PyMongo Async <pymongo-async-migration>`
24+
- :ref:`Previous Versions <pymongo-previous-versions>`

source/reference/migration.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,12 @@ Migrate From Motor
6161

6262
.. warning:: Motor Deprecation
6363

64-
Motor will be deprecated one year after the production release of the {+driver-async+}
65-
driver. We strongly recommend that Motor users migrate to the {+driver-async+} driver while
66-
Motor is still supported.
64+
The {+driver-async+} driver is experimental. We do **not** recommend using it
65+
in production environments.
66+
67+
Motor will be deprecated one year after the **production release** of the
68+
{+driver-async+} driver. We strongly recommend that Motor users migrate to
69+
the {+driver-async+} driver while Motor is still supported.
6770

6871
The {+driver-async+} driver functions similarly to the Motor library, but allows
6972
for improved latency and throughput due to directly using Python Asyncio instead

source/reference/release-notes.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Release Notes
2020

2121
Learn what's new in:
2222

23+
* :ref:`Version 4.12 <version-4.12>`
2324
* :ref:`Version 4.11 <version-4.11>`
2425
* :ref:`Version 4.10 <version-4.10>`
2526
* :ref:`Version 4.9 <version-4.9>`
@@ -37,6 +38,33 @@ version of {+driver-short+} will raise the minimum {+mdb-server+} version from
3738
4.0 to 4.2. {+driver-short+} will no longer support {+mdb-server+} 4.0. To learn
3839
how to upgrade your driver version, see the :ref:`pymongo-upgrade` guide.
3940

41+
.. _version-4.12:
42+
43+
What's New in 4.12
44+
------------------
45+
46+
The {+driver-short+} v4.12 release includes the following new features:
47+
48+
- Adds support for configuring DEK cache lifetime by using the ``key_expiration_ms``
49+
argument to ``AutoEncryptionOpts``.
50+
- Adds support for ``$lookup`` in CSFLE and QE for {+mdb-server+} 8.1 and later.
51+
- Adds the ``gridfs.asynchronous.grid_file.AsyncGridFSBucket.rename_by_name()`` and
52+
``gridfs.grid_file.GridFSBucket.rename_by_name()`` methods. You can use these methods for
53+
more performant renaming of files with multiple revisions.
54+
- Adds the ``gridfs.asynchronous.grid_file.AsyncGridFSBucket.delete_by_name()`` and
55+
``gridfs.grid_file.GridFSBucket.delete_by_name()`` methods. You can use these methods for
56+
more performant deletion of files with multiple revisions.
57+
- ``AsyncMongoClient`` objects no longer perform DNS resolution for ``mongodb+srv://``
58+
connection strings on creation. To avoid blocking the ``asyncio`` loop, {+driver-short+}
59+
now defers the resolution until the client is first connected.
60+
- Adds index hinting support to the ``pymongo.asynchronous.collection.AsyncCollection.distinct()``
61+
and ``pymongo.collection.Collection.distinct()`` methods.
62+
- Deprecates the ``hedge`` parameter for the ``PrimaryPreferred``, ``Secondary``,
63+
``SecondaryPreferred``, and ``Nearest`` read preferences. Support for ``hedge`` will be
64+
removed in {+driver-short+} v5.0.
65+
- Removes PyOpenSSL support from the {+driver-async+} driver.
66+
- Allows valid SRV hostnames with fewer than 3 parts.
67+
4068
.. _version-4.11:
4169

4270
What's New in 4.11

source/security/authentication.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Authentication Mechanisms
1818

1919
.. meta::
2020
:keywords: community, security
21+
:description: Learn how to authenticate to MongoDB using various authentication mechanisms compatible with different MongoDB Server editions.
2122

2223
.. toctree::
2324
:caption: Authentication

source/security/in-use-encryption.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ In-Use Encryption
1717

1818
.. meta::
1919
:keywords: qe, csfle, field level encryption
20+
:description: Encrypt specific document fields using PyMongo's in-use encryption to protect sensitive data before sending it to MongoDB.
2021

2122
Overview
2223
--------

0 commit comments

Comments
 (0)