Commit Graph

43 Commits

Author SHA1 Message Date
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
The Light
44d1d40d65
PYTHON-5115 Type validation errors should include the invalid type name (#2085)
Co-authored-by: Iris Ho <iris.ho@mongodb.com>
2025-01-31 12:01:58 -08:00
Noah Stapp
682f15b21e
PYTHON-4618 - Fix TypeError: Socket cannot be of type SSLSocket (#1772) 2024-08-08 08:21:59 -07:00
Esa Jokinen
4ec79fbde7
PYTHON-4492 Fallback to stdlib ssl when pyopenssl import fails with AttributeError (#1669) 2024-06-12 11:09:57 -07:00
Steven Silvester
7936708d97
PYTHON-4014 Apply QA Suggestions from Scientific Python Library Development Guide (#1414) 2023-11-01 19:37:22 -05:00
Steven Silvester
992d1507e7
PYTHON-4005 Replace flake8 and isort with ruff (#1399) 2023-10-19 11:56:22 -05: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
b90765dbbd
PYTHON-3865 add types to ssl_support.py (#1326) 2023-07-24 18:27: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
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
Shane Harvey
78476d0217
PYTHON-3187 Avoid tight poll() loop on pyopenssl connections (#953) 2022-05-26 15:14:59 -07:00
Shane Harvey
75685c006c
PYTHON-3235 Drop support for Python 3.6 (#939) 2022-05-05 16:13:41 -07:00
Steven Silvester
a0fe7c03af
PYTHON-3120 Set up flake8 linting (#868) 2022-02-17 06:44:08 -06: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
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
Bernie Hackett
70b927a01d PYTHON-2508 Improve PyOpenSSL on Windows and macOS 2021-01-28 16:02:51 -08:00
Bernie Hackett
1f1670cc35 PYTHON-1974 Drop support for Python 3.4 2021-01-22 15:54:26 -08:00
Bernie Hackett
6c2d629006 PYTHON-2133 Remove Py2 compatibility from pymongo 2021-01-19 21:15:20 -08:00
Prashant Mital
47a6718352
PYTHON-2161 add support for tlsDisableOcspEndpointCheck URI option 2020-03-11 18:35:11 -07:00
Bernie Hackett
5df94d08f0 PYTHON-2040 PyOpenSSL support 2020-02-06 18:03:21 -08:00
Bernie Hackett
bb83a26082 PYTHON-1726 Disable TLS renegotiation when possible 2019-03-19 11:19:50 -07:00
Prashant Mital
927a97e39b PYTHON-1670: Implement Unified URI Options (#386) 2019-02-27 15:56:48 -08:00
Bernie Hackett
cbc81ee793 PYTHON-1536 - PyMongo no longer supports PyPy3 < 3.5 2018-07-03 12:44:40 -07:00
Bernie Hackett
749c1a2f0b PYTHON-1467 - PyMongo no longer supports Python 2.6 2018-07-02 15:15:43 -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
Bernie Hackett
507f954ed4 Update copyright dates 2017-12-01 17:23:39 -08:00
Bernie Hackett
b1ca528836 PYTHON-1230 - Use PROTOCOL_TLS_CLIENT when available 2017-02-17 15:18:46 -08:00
Bernie Hackett
47dee57f6c PYTHON-1133 - Explicitly disable TLS compression when possible 2016-08-25 16:09:38 -07:00
Shane Harvey
d8ab05628c PYTHON-1125 More helpful error message for invalid ssl_certfiles 2016-08-23 17:13:23 -07:00
Laurent Arnoud
8df6b7cdc5 Add missing backquote for CERT_REQUIRED 2016-06-01 11:03:14 -07: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
Bernie Hackett
16d22915ea PYTHON-874 - Support wincertstore as ca_certs fallback on Windows. 2015-04-03 13:39:11 -07:00
Bernie Hackett
fbeca92430 PYTHON-874 - Support certifi as ca_certs fallback on old pythons. 2015-04-03 09:46:18 -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
0b104af222 PYTHON-842 - SSL URI config support.
Credit for the ideas in this patch go to Len Buckens (buckensl)
from https://github.com/mongodb/mongo-python-driver/pull/253.
2015-03-20 17:41:13 -07:00
Bernie Hackett
8f0bd0a6d4 PYTHON-850 - Change some uses of ConfigurationError to Type/ValueError. 2015-02-26 16:02:25 -08:00
Bernie Hackett
709601f022 Clean up SSL support. 2014-07-09 07:22:54 -07:00