Motor 3.1.1 adds support for Python 3.11 and fixes a bug that caused an
ImportError in Python 3.11.0.
Motor 3.1
Motor 3.1 adds support for PyMongo 4.2+ and the Queryable Encryption beta
with MongoDB 6.0.
Note that backwards-breaking changes may be made before the final release.
New features:
Support for MongoDB 6.0.
Added the following key management APIs to :class:~motor.core.MotorClientEncryption:
:meth:~motor.core.MotorClientEncryption.get_key
:meth:~motor.core.MotorClientEncryption.get_keys
:meth:~motor.core.MotorClientEncryption.delete_key
:meth:~motor.core.MotorClientEncryption.add_key_alt_name
:meth:~motor.core.MotorClientEncryption.get_key_by_alt_name
:meth:~motor.core.MotorClientEncryption.remove_key_alt_name
:meth:~motor.core.MotorClientEncryption.rewrap_many_data_key
Change streams support for user-facing PIT pre- and post-images using
the new full_document_before_change argument to
:meth:~motor.core.MotorClient.watch and :meth:~motor.core.MotorCollection.watch.
Allow cursor to be used in async with-statement.
The new Queryable Encryption changes that are in beta are:
The encrypted_fields argument to the
:class:~motor.motor_tornado.MotorCollection constructor, and the
:meth:~motor.motor_tornado.MotorDatabase.create_collection
and :meth:~motor.motor_tornado.MotorDatabase.drop_collection methods.
The query_type and contention_factor arguments to
:meth:motor.motor_asyncio.AsyncIOMotorClientEncryption.encrypt and
:meth:motor.motor_tornado.MotorClientEncryption.encrypt.
Issues Resolved
See the `Motor 3.1 release notes in JIRA`_ for the list of resolved issues
in this release.
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 motor from 2.5.0 to 3.1.1.
Release notes
Sourced from motor's releases.
Changelog
Sourced from motor's changelog.
... (truncated)
Commits
4d2713c
BUMP 3.1.132bcfe7
MOTOR-1054 motor.motor_asyncio is broken for Python 3.11 (#185)fb8ea58
BUMP 3.2.0.dev0c142cce
BUMP 3.1.0b0d7970
MOTOR-1031 Changelog for 3.1 (#184)a624899
MOTOR-974 Document Queryable Encryption API as "Public Technical Preview" (#182)81f81f6
MOTOR-956 Provide FLE 2.0 API example for docs team (#183)99e65f8
MOTOR-866 Key Management API (#175)6e8e2ee
MOTOR-981 Test Failure - asyncio_tests.test_asyncio_session.TestAsyncIOSessio...19d12b0
MOTOR-934 Test against latest rapid releases (#180)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)