PyMongo 4.7 brings a number of improvements including:
Added support for MONGODB-OIDC authentication. The MONGODB-OIDC mechanism authenticates
using an OpenID Connect (OIDC) access token.
The driver supports OIDC for workload identity, defined as an identity you assign to a software workload
(such as an application, service, script, or container) to authenticate and access other services and resources.
Please see :doc:examples/authentication for more information.
Added support for Python's native logging library <https://docs.python.org/3/howto/logging.html>_,
enabling developers to customize the verbosity of log messages for their applications.
Please see :doc:examples/logging for more information.
Significantly improved the performance of encoding BSON documents to JSON.
Added support for named KMS providers for client side field level encryption.
Previously supported KMS providers were only: aws, azure, gcp, kmip, and local.
The KMS provider is now expanded to support name suffixes (e.g. local:myname).
Named KMS providers enables more than one of each KMS provider type to be configured.
See the docstring for :class:~pymongo.encryption_options.AutoEncryptionOpts.
Note that named KMS providers requires pymongocrypt >=1.9 and libmongocrypt >=1.9.
Added the :class:pymongo.hello.Hello.connection_id,
:attr:pymongo.monitoring.CommandStartedEvent.server_connection_id,
:attr:pymongo.monitoring.CommandSucceededEvent.server_connection_id, and
:attr:pymongo.monitoring.CommandFailedEvent.server_connection_id properties.
Fixed a bug where inflating a :class:~bson.raw_bson.RawBSONDocument containing a :class:~bson.code.Code would cause an error.
:meth:~pymongo.encryption.ClientEncryption.encrypt and
:meth:~pymongo.encryption.ClientEncryption.encrypt_expression now allow key_id
to be passed in as a :class:uuid.UUID.
Fixed a bug where :class:~bson.int64.Int64 instances could not always be encoded by orjson_. The following now
works::
import orjson
from bson import json_util
... (truncated)
Commits
0841039 PYTHON-4411 Prep for 4.7.1 Release (#1625)
4c0f884 PYTHON-4409 Streamline Wheel Building (#1624)
6584dd2 PYTHON-4256 Clean up handling of TOKEN_RESOURCE (#1620)
b83fd99 PYTHON-3601 OIDC: Clarify TOKEN_RESOURCE and client_id usage (#1621)
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 show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@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.6.3 to 4.7.1.
Release notes
Sourced from pymongo's releases.
Changelog
Sourced from pymongo's changelog.
... (truncated)
Commits
0841039
PYTHON-4411 Prep for 4.7.1 Release (#1625)4c0f884
PYTHON-4409 Streamline Wheel Building (#1624)6584dd2
PYTHON-4256 Clean up handling of TOKEN_RESOURCE (#1620)b83fd99
PYTHON-3601 OIDC: Clarify TOKEN_RESOURCE and client_id usage (#1621)21461ac
fix: updatepyproject.toml
project source url (#1623)4ea8fcb
PYTHON-4407 Eagerly import dnspython (#1622)256f5a2
PYTHON-4402 Remove dead links (#1619)9f0c0c5
PYTHON-4401 Fix make_sdist job (#1618)4cd8191
BUMP 4.8.0.dev03664925
PYTHON-4228 Update changelog and bump to 4.7 version (#1617)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 show