Noah Stapp
0cfba4994d
PYTHON-5662 - Add support for server selection's deprioritized servers to all topologies ( #2639 )
2025-12-16 12:21:45 -05:00
Jeffrey A. Clark
166821f22c
PYTHON-5205 Replace http with https in doc links ( #2204 )
2025-03-14 21:37:11 -04: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
dc63c5d9b8
PYTHON-3863 add types to server_selectors.py ( #1340 )
2023-08-03 14:53:32 -07:00
Iris
2a75a18198
PYTHON-3788 add types to server_selectors.py ( #1278 )
2023-06-28 10:48:04 -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
Steven Silvester
5578999a90
PYTHON-1834 Use a code formatter ( #852 )
2022-02-09 06:44:28 -06:00
Bernie Hackett
521f7b9af4
PYTHON-2133 Fix up docs
...
And finish deleting python 2 specific code.
2021-01-21 15:49:23 -08:00
A. Jesse Jiryu Davis
91f2f973af
PYTHON-1192 - Minimum maxStalenessSeconds is 90.
...
Revert code to parse "idleWritePeriodMillis" from ismaster, and revert
changes that allowed maxStalenessSeconds to be a float.
2016-11-22 13:19:34 -05:00
A. Jesse Jiryu Davis
497e316d34
PYTHON-1104 - Support idleWritePeriodMS.
2016-11-08 21:52:04 -05:00
A. Jesse Jiryu Davis
5933730588
PYTHON-1104 Implement maxStalenessMS.
2016-07-22 14:12:40 -04:00
A. Jesse Jiryu Davis
553f887ef7
PYTHON-1104 Change server-selector signature.
...
Preparation for maxStalenessMS implementation: selectors now take a
TopologyDescription, not a list of ServerDescriptions.
2016-06-20 15:27:17 -07:00
Bernie Hackett
f506d8b69f
PYTHON-915 - Accept 0 for localThresholdMS.
2015-05-08 08:34:15 -07:00
Bernie Hackett
f282babff0
PYTHON-926 - ReadPreference.NEAREST shouldn't pick arbiters.
2015-05-07 14:50:38 -07:00
A. Jesse Jiryu Davis
a6535c5c7b
PYTHON-912 - Never try auth with a recovering RS member.
2015-04-23 23:24:36 -04:00
A. Jesse Jiryu Davis
2cc37059b8
PYTHON-898 - Send getMore to same mongos as initial query.
2015-04-15 17:14:25 -04:00
Bernie Hackett
aec685b374
Fix up copyright dates.
2015-03-25 11:55:02 -07:00
Bernie Hackett
4e13a39db9
PYTHON-812 - Make local threshold global and immutable.
2015-01-08 11:21:54 -08:00
A. Jesse Jiryu Davis
1b71104d75
Fix race with disconnect, auth, and getMore.
2014-11-14 22:18:06 -05:00
A. Jesse Jiryu Davis
735a1247ca
PYTHON-525 Deprecate MongoReplicaSetClient.
...
MongoClient now supports all MongoReplicaSetClient's features.
Fix bugs and add features in the new MongoClient to bring it up
to spec. MongoReplicaSetClient is now a deprecated stub that
subclasses MongoClient.
Introduce new errors, NetworkTimeout and NotMasterError, to
communicate events that MongoClient must handle specially.
2014-09-16 15:33:19 -04:00
A. Jesse Jiryu Davis
41c1a9afa6
PYTHON-525 Reimplement auth for new MongoClient.
...
The new MongoClient, based on Cluster and Server,
includes functionality that had been split between the
old MongoClient and MongoReplicaSetClient. A
previous commit introduced the new MongoClient
but broke authentication.
2014-09-03 17:39:52 -04:00
A. Jesse Jiryu Davis
590c68d287
PYTHON-525 Move SERVER_TYPE to its own file.
2014-08-28 16:49:33 -04:00
A. Jesse Jiryu Davis
3027853cd9
PYTHON-525 Server selection implemented within ReadPreference classes.
2014-08-28 16:49:33 -04:00
A. Jesse Jiryu Davis
d79ab6eb5e
PYTHON-525 Implement Cluster, Server, and Monitor.
...
This is prelude to a unified MongoClient class to replace the current
MongoClient and MongoReplicaSetClient. Conforms to the Cluster Monitoring Spec.
2014-07-01 22:53:24 -04:00