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
-

0 commit comments

Comments
 (0)