Added support for passing a list containing (key, direction) pairs
or keys to :meth:~pymongo.collection.Collection.create_index.
Improved bson encoding performance (PYTHON-3717_ and PYTHON-3718_).
Improved support for Pyright to improve typing support for IDEs like Visual Studio Code
or Visual Studio.
Improved support for type-checking with MyPy "strict" mode (--strict).
Added :meth:~pymongo.encryption.ClientEncryption.create_encrypted_collection,
:class:~pymongo.errors.EncryptedCollectionError,
:meth:~pymongo.encryption.ClientEncryption.encrypt_expression,
:class:~pymongo.encryption_options.RangeOpts,
and :attr:~pymongo.encryption.Algorithm.RANGEPREVIEW as part of the experimental
Queryable Encryption beta.
pymongocrypt 1.6.0 or later is now required for :ref:In-Use Encryption support. MongoDB
Server 7.0 introduced a backwards breaking change to the QE protocol. Users taking
advantage of the Queryable Encryption beta must now upgrade to MongoDB 7.0+ and
PyMongo 4.4+.
Previously, PyMongo's docs recommended using :meth:datetime.datetime.utcnow and
:meth:datetime.datetime.utcfromtimestamp. utcnow and utcfromtimestamp are deprecated
in Python 3.12, for reasons explained in this Github issue_. Instead, users should
use :meth:datetime.datetime.now(tz=timezone.utc) and
:meth:datetime.datetime.fromtimestamp(tz=timezone.utc) instead.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps pymongo from 4.3.3 to 4.4.0.
Release notes
Sourced from pymongo's releases.
Changelog
Sourced from pymongo's changelog.
Commits
55a9bee
BUMP 4.4 (#1251)bc66d83
PYTHON-3738 Use tox for sphinx doc instead of setup.py (#1245)82d87dc
PYTHON-3744 Fix utcnow deprecation build regressions (#1244)374250d
PYTHON-2963 Add tox config in preparation for migration from setup.py (#1240)37202c0
PYTHON-3726 Migrate off of Ubuntu in EG Builds (#1227)601d1ec
PYTHON-3737 Use future annotations for forward reference type hints (#1234)2cfebf5
PYTHON-3706 Skip flaky test on Windows/macOS (#1241)ada1280
PYTHON-3011 Skip test_connections_are_only_returned_once on PyPy for now (#1239)d86fb94
PYTHON-3519 Skip test_pool_paused_error_is_retryable on PyPy for now (#1238)f7874fb
PYTHON-2287 Improve error message for invalid boolean option (#1236)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)