Commit Graph

42 Commits

Author SHA1 Message Date
Prashant Mital
4cdd3450ac
PYTHON-1670: Implement Unified URI Options (#386) 2019-01-17 10:02:37 -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
A. Jesse Jiryu Davis
87708a2f96 PYTHON-1169 - Default maxStalenessSeconds is -1. 2016-11-08 21:52:04 -05:00
A. Jesse Jiryu Davis
f4922da97c PYTHON-1104 - maxStalenessMS -> maxStalenessSeconds. 2016-11-08 21:52:04 -05:00
Bernie Hackett
b37e828422 Fix handling of maxStalenessMS default 2016-09-19 14:00:28 -07:00
Luke Lovett
c9bbfa7ace PYTHON-1119 - Implement the client metadata capture specification. 2016-07-26 10:35:55 -07:00
A. Jesse Jiryu Davis
5933730588 PYTHON-1104 Implement maxStalenessMS. 2016-07-22 14:12:40 -04:00
A. Jesse Jiryu Davis
a2f97f92a4 PYTHON-1105 Configurable heartbeatFrequencyMS. 2016-07-08 16:30:56 -04:00
aherlihy
10608144d6 PYTHON-658 - Support minPoolSize, maxIdleTimeMS 2016-06-14 14:37:06 +02:00
Bernie Hackett
db1dea6f73 PYTHON-1042 - Support client certificate passphrase 2016-05-26 14:59:42 -07:00
Bernie Hackett
d7abe6e7be PYTHON-1073 - Support certificate revocation lists 2016-05-24 11:47:49 -07:00
Luke Lovett
dde4a658b5 PYTHON-981 - Implement ReadConcern. 2015-11-18 14:12:28 -08:00
Bernie Hackett
28885b25e8 PYTHON-952 - API improvements
This commit implements the following simplifications and improvements:

- The Subscriber ABC has been renamed to CommandListener
- The subscribe function has been renamed to register
- The COMMAND constant has been removed
- The get_subscribers function has been removed
- Command listeners can now be registered per MongoClient instance
  instead of just globally
2015-10-09 17:03:51 -07:00
aherlihy
193915e636 PYTHON-959 - Connection string spec compliance. 2015-08-06 13:14:31 -04:00
Luke Lovett
5f14e1b9bf PYTHON-928 - Enhance __repr__ of MongoClient with other options passed in to the constructor. 2015-07-17 14:49:36 -07:00
Bernie Hackett
d396068e6a PYTHON-872 - Default to ssl.CERT_REQUIRED when ssl=True.
If ssl=True is passed as a keyword arg (or ssl=true in the URI)
but no value for ssl_cert_reqs or ssl_ca_certs has been provided,
assume ssl.CERT_REQUIRED for cert_reqs and attempt to load
system provided CA certificates. Raise ConfigurationError if
the necessary SSLContext methods don't exist.
2015-04-01 15:43:39 -07:00
Bernie Hackett
aec685b374 Fix up copyright dates. 2015-03-25 11:55:02 -07:00
Bernie Hackett
981414da40 Define and use some constants. 2015-03-24 17:53:36 -07:00
aherlihy
fa1466179f PYTHON-813 Added support for serverSelectionTimeoutMS 2015-03-09 12:38:24 -07:00
Bernie Hackett
4fd6f8a0b1 PYTHON-854 max_pool_size -> maxPoolSize
With this change the max_pool_size named parameter to
MongoClient is removed. It is replaced by the maxPoolSize
MongoDB URI option, which can be passed in a URI, or as a
keyword argument to MongoClient.
2015-03-09 10:08:13 -07:00
Bernie Hackett
761c630d4d PYTHON-834 - Add option to disable match_hostname. 2015-03-05 14:03:49 -08:00
Bernie Hackett
7164ba2f41 PYTHON-839 - Better validation error messages. 2015-02-25 10:14:29 -08:00
A. Jesse Jiryu Davis
a2c13090d8 PYTHON-826 Move codec_options submodule from pymongo to bson. 2015-02-02 09:38:49 -05:00
Bernie Hackett
4e13a39db9 PYTHON-812 - Make local threshold global and immutable. 2015-01-08 11:21:54 -08:00
Bernie Hackett
a788b1f1aa PYTHON-811 - latencyThresholdMS -> localThresholdMS 2015-01-08 11:21:44 -08:00
Bernie Hackett
7e4ebde147 PYTHON-801 - Add STANDARD and PYTHON_LEGACY to bson.binary
And use them in place of UUID_SUBTYPE and OLD_UUID_SUBTYPE. This
change also cleans up and clarifies the documentation for
JAVA_LEGACY and CSHARP_LEGACY. None of these are binary subtypes,
but instead UUID representations in the Python, C#, and Java drivers.
2014-12-24 09:52:58 -08:00
Bernie Hackett
b87fb790a2 PYTHON-800 - Add CodecOptions class. 2014-12-12 14:11:44 -08:00
Bernie Hackett
630f9245e3 PYTHON-795 - Fix password handling for None and the empty string. 2014-12-02 09:10:55 -08:00
A. Jesse Jiryu Davis
ee11436675 PYTHON-764 SCRAM-SHA-1 automatic upgrade / downgrade. 2014-10-23 16:30:55 -04:00
Bernie Hackett
772e3d3d84 PYTHON-693 - Fix parsing of default values for keyword args. 2014-09-26 11:35:43 -07:00
Bernie Hackett
28a9f1cfb8 PYTHON-743 - Add ClientOptions class. 2014-08-04 11:38:46 -07:00