Noah Stapp
e1751ff253
PYTHON-5668 - Merge backpressure branch into mainline ( #2729 )
...
Co-authored-by: Steven Silvester <steve.silvester@mongodb.com>
Co-authored-by: Shane Harvey <shnhrv@gmail.com>
Co-authored-by: Steven Silvester <steven.silvester@ieee.org>
Co-authored-by: Iris <58442094+sleepyStick@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Albertson <kevin.albertson@mongodb.com>
Co-authored-by: Casey Clements <caseyclements@users.noreply.github.com>
Co-authored-by: Sergey Zelenov <mail@zelenov.su>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-14 12:25:29 -04:00
Noah Stapp
bbb6f88fae
PYTHON-5257 - Turn on mypy disallow_any_generics ( #2456 )
2025-08-06 14:21:53 -04:00
Iris
c3e3373df2
PYTHON-5309 Ensure AsyncMongoClient doesn't use PyOpenSSL ( #2286 )
...
Co-authored-by: Noah Stapp <noah@noahstapp.com>
2025-04-24 16:19:09 -07:00
Jeffrey A. Clark
166821f22c
PYTHON-5205 Replace http with https in doc links ( #2204 )
2025-03-14 21:37:11 -04:00
Noah Stapp
e430d2e2fa
PYTHON-4662 - Capture Async PyMongo metadata ( #1814 )
2024-08-28 08:31:42 -04:00
Noah Stapp
a5c0db66a1
PYTHON-4589 - Add async API docs ( #1755 )
2024-07-30 13:18:40 -07:00
Noah Stapp
ffa6555485
PYTHON-4476 Separate data and IO classes more effectively ( #1678 )
2024-06-26 10:12:39 -07:00
Noah Stapp
d6bf0e1e78
PYTHON-4264 Async PyMongo Beta ( #1629 )
2024-06-06 09:01:24 -07:00
Steven Silvester
49987e6a8a
PYTHON-4441 Use deferred imports instead of lazy module loading ( #1648 )
2024-05-30 16:40:23 -05:00
Steven Silvester
7936708d97
PYTHON-4014 Apply QA Suggestions from Scientific Python Library Development Guide ( #1414 )
2023-11-01 19:37:22 -05:00
Shane Harvey
4c00227c1d
PYTHON-3668 Use polling SDAM mode on FaaS and add sdamMode=auto/stream/poll ( #1360 )
...
Disable streaming SDAM by default on AWS Lambda and similar FaaS platforms.
Introduce the serverMonitoringMode=stream/poll/auto URI option.
Add Unified Test Format version 1.17 to add support for server heartbeat events.
2023-10-12 13:19:16 -07:00
Steven Silvester
6f4e617e6d
PYTHON-3905 Use from __future__ import annotations in all files ( #1370 )
...
* PYTHON-3905 Use from __future__ import annotations in all files
* cleanup
* cleanup
* cleanup
2023-09-11 10:49:24 -05:00
Iris
e0b8b36f41
PYTHON-3813 add types to pool.py ( #1318 )
2023-08-04 17:28:30 -07:00
Iris
dc59eb86c7
PYTHON-3809 add types to monitoring.py ( #1332 )
2023-08-02 12:09:06 -07:00
Iris
ba7be3c1bb
PYTHON-3781 fix type for server_selector ( #1269 )
2023-06-28 09:24:17 -07:00
Iris
940404ad3f
PYTHON-3771 add types to client_options.py ( #1266 )
2023-06-27 13:08:42 -07:00
Shane Harvey
55a9bee810
BUMP 4.4 ( #1251 )
2023-06-20 23:20:39 -07:00
Shane Harvey
0092b0af79
PYTHON-2504 Run pyupgrade 3.4.0 and ruff 0.0.265 ( #1196 )
...
pyupgrade --py37-plus bson/*.py pymongo/*.py gridfs/*.py test/*.py tools/*.py test/*/*.py
ruff --fix-only --select ALL --fixable ALL --target-version py37 --line-length=100 --unfixable COM812,D400,D415,ERA001,RUF100,SIM108,D211,D212,SIM105,SIM,PT,ANN204,EM bson/*.py pymongo/*.py gridfs/*.py test/*.py test/*/*.py
2023-05-11 15:27:17 -07:00
Shane Harvey
5c38676d53
PYTHON-3359 Remove Database and Collection timeout override ( #1009 )
...
Remove MongoClient.timeout in favor of client.options.timeout.
2022-07-18 19:54:45 -05:00
Shane Harvey
890cd26e1a
PYTHON-3288 Implement client side operation timeout ( #954 )
...
Add timeoutMS URI option and MongoClient keyword argument.
Add provisional/beta pymongo.timeout() api to set a deadline for a block of operations.
2022-06-06 15:36:52 -04:00
Steven Silvester
5578999a90
PYTHON-1834 Use a code formatter ( #852 )
2022-02-09 06:44:28 -06:00
Steven Silvester
dd6c140d43
PYTHON-3060 Add typings to pymongo package ( #831 )
2022-02-02 21:12:36 -06:00
Shane Harvey
c94a3ad1df
PYTHON-2585 Remove legacy multi-auth code ( #816 )
2021-12-09 18:00:41 -08:00
Shane Harvey
278a50d4b0
PYTHON-3005 Make maxConnecting configurable ( #789 )
2021-11-16 12:51:36 -08:00
Shane Harvey
b342990934
PYTHON-2164 Add MongoClient.options, remove redundant properties ( #772 )
2021-11-03 11:21:33 -07:00
Shane Harvey
2eb0df812c
PYTHON-2879 Fix get_ssl_context for CSFLE and ocsptest.py ( #713 )
2021-08-24 13:36:37 -04:00
Prashant Mital
b3118e034e
PYTHON-2162 Remove support for ssl* URI options ( #706 )
2021-08-19 14:58:31 -07:00
Shane Harvey
10002fad1c
PYTHON-2857 Remove the socketKeepAlive option ( #702 )
2021-08-10 14:00:41 -07:00
Shane Harvey
e3a61b9ff7
PYTHON-1840 Remove waitQueueMultiple and ExceededMaxWaiters ( #699 )
2021-08-09 10:53:28 -07:00
Shane Harvey
5bf15c8e18
PYTHON-2672 SDAM, CMAP, and server selection changes for load balancers ( #621 )
...
Disable SRV Polling, SDAM compatibility check, logicalSessionTimeoutMinutes check.
server session pool pruning, server selection, and server monitoring.
A ServerType of LoadBalancer MUST be considered a data-bearing server.
"drivers MUST emit the following series of SDAM events" section.
Send loadBalanced:True with handshakes, validate serviceId.
Add topologyVersion fallback when serviceId is missing.
Don't mark load balancers unknown.
2021-05-18 14:12:49 -07:00
Shane Harvey
2c41c6fe95
PYTHON-2671 Support loadBalanced URI option ( #614 )
...
Add workaround in test_dns until PYTHON-2679 is completed.
2021-05-05 12:51:05 -07:00
Shane Harvey
ac2f506ba2
PYTHON-2453 Add MongoDB Versioned API ( #536 )
...
Add pymongo.server_api.ServerApi and the MongoClient server_api option.
Support Unified Test Format version 1.1 (serverParameters in
runOnRequirements)
Skip dropRole tests due to SERVER-53499.
2021-01-11 18:16:00 -08:00
Prashant Mital
0743c0b222
PYTHON-2121 add directConnection URI option
2020-06-08 15:11:55 -07:00
Prashant Mital
47a6718352
PYTHON-2161 add support for tlsDisableOcspEndpointCheck URI option
2020-03-11 18:35:11 -07:00
Shane Harvey
6d8c1ced70
PYTHON-1882 Add AutoEncryptionOpts
2019-07-29 16:05:20 -07:00
Shane Harvey
f588412b67
PYTHON-1842 Implement Connection Monitoring and Pooling spec
2019-06-13 15:50:49 -07:00
Shane Harvey
a15266083b
PYTHON-1674 Support retryable reads
...
Add retryReads URI option that defaults to True.
Supported read operations will be retried once after transient
network, election, and shutdown errors on MongoDB 3.6+.
Supported operations are:
listCollections, listIndexes, and listDatabases
distinct
count, estimated_document_count, count_documents
aggregate (not including $out)
find (only for the initial find command, getMore commands are not
retried).
ChangeStreams: watch (initial aggregate command).
GridFS read APIs.
Test changes:
Add retryable reads spec test runner.
Disable retryable reads in network error tests.
2019-04-25 14:28:12 -07:00
Prashant Mital
927a97e39b
PYTHON-1670: Implement Unified URI Options ( #386 )
2019-02-27 15:56:48 -08:00
Prashant Mital
bc26c0db69
PYTHON-1577 Allow applications to register a custom server selector ( #371 )
...
PYTHON-1577 Allow applications to register a custom server selector
2018-08-30 17:33:03 -05:00
A. Jesse Jiryu Davis
c63c068611
PYTHON-1564 Add DriverInfo to handshake metadata
...
Allow drivers that wrap PyMongo to add their info to the handshake
metadata, using a "driver" option like:
MongoClient(driver=DriverInfo("MyDriver", "1.2.3"))
The DriverInfo is appended to PyMongo's own metadata.
2018-06-03 10:04:45 -04:00
Bernie Hackett
335cb97a34
PYTHON-1278, PYTHON-1553 - Support OP_COMPRESSED
2018-05-22 11:44:21 -07:00
Bernie Hackett
984977ba9e
PYTHON-1425 - Implement the auth spec and tests
2018-04-25 10:25:00 -07:00
Bernie Hackett
73478106eb
PYTHON-1463 - Implement read / write concern spec
2018-04-06 12:55:09 -07:00
Bernie Hackett
3733971e35
PYTHON-1456 - Use SSLContext.check_hostname with Python 3.7+
...
Continue using our bundled match_hostname otherwise.
2018-03-06 17:25:49 -08:00
Shane Harvey
251df6abd1
PYTHON-1482 Fix maxIdleTime reaper calculation
2018-02-21 17:01:03 -08:00
Bernie Hackett
507f954ed4
Update copyright dates
2017-12-01 17:23:39 -08:00
Shane Harvey
8b1aa3aafa
PYTHON-1339 Retryable single-statement writes.
...
Add retryWrites MongoClient and URI setting.
Retry once for supported single-statement write operations including:
insert_one, update_one, delete_one, find_one_and_update, find_one_and_replace,
find_one_and_delete, update and remove with multi=False, and find_and_modify.
2017-10-30 14:23:16 -04:00
Shane Harvey
312408e041
PYTHON-1279 Deprecate socketKeepAlive and default to true.
...
Wherever possible set:
- keep-alive idle time to a maximum of 300 seconds.
- keep-alive interval time to a maximum of 10 seconds.
- keep-alive count to a maximum of 9 probes.
2017-08-01 12:34:42 -07:00
Michael Elovskikh
9f07ff35a1
PYTHON-1334 Don't change readpreference value at uri parsing ( #325 )
2017-07-25 17:43:51 -07:00
Bernie Hackett
1600059015
PYTHON-1184 - Don't require X.509 user with MongoDB 3.4
2016-11-16 14:31:14 -08:00