Path to this page:
Subject: CVS commit: pkgsrc/databases/py-mongo
From: Adam Ciarcinski
Date: 2023-11-22 14:04:32
Message id: 20231122130432.E37F1FA3F@cvs.NetBSD.org
Log Message:
py-mongo: updated to 4.6.0
Changes in Version 4.6
----------------------
PyMongo 4.6 brings a number of improvements including:
- Added the ``serverMonitoringMode`` URI and keyword argument to \
:class:`~pymongo.mongo_client.MongoClient`.
- Improved client performance and reduced connection requirements in \
Function-as-a-service (FaaS)
environments like AWS Lambda, Google Cloud Functions, and Microsoft Azure \
Functions.
- Added the :attr:`pymongo.monitoring.CommandSucceededEvent.database_name` property.
- Added the :attr:`pymongo.monitoring.CommandFailedEvent.database_name` property.
- Allow passing a ``dict`` to sort/create_index/hint.
- Added :func:`repr` support to the write result classes:
:class:`~pymongo.results.BulkWriteResult`,
:class:`~pymongo.results.DeleteResult`,
:class:`~pymongo.results.InsertManyResult`,
:class:`~pymongo.results.InsertOneResult`,
:class:`~pymongo.results.UpdateResult`, and
:class:`~pymongo.encryption.RewrapManyDataKeyResult`. For example:
>>> client.t.t.insert_one({})
InsertOneResult(ObjectId('65319acdd55bb3a27ab5502b'), acknowledged=True)
>>> client.t.t.insert_many([{} for _ in range(3)])
InsertManyResult([ObjectId('6532f85e826f2b6125d6ce39'), \
ObjectId('6532f85e826f2b6125d6ce3a'), ObjectId('6532f85e826f2b6125d6ce3b')], \
acknowledged=True)
- :meth:`~pymongo.uri_parser.parse_uri` now considers the delimiting slash (``/``)
between hosts and connection options optional. For example,
"mongodb://example.com?tls=true" is now a valid URI.
- Fixed a bug where PyMongo would incorrectly promote all cursors to exhaust cursors
when connected to load balanced MongoDB clusters or Serverless clusters.
- Added the :ref:`network-compression-example` documentation page.
- Added more timeout information to network errors.
Files: