summaryrefslogtreecommitdiff
path: root/databases/py-mongo
AgeCommit message (Collapse)AuthorFilesLines
2019-01-22py-mongo: updated to 3.7.2adam2-7/+7
Version 3.7.2 fixes a few issues discovered since the release of 3.7.1. - Fixed a bug in retryable writes where a previous command's "txnNumber" field could be sent leading to incorrect results. - Fixed a memory leak of a few bytes on some insert, update, or delete commands when running against MongoDB 3.6+. - Fixed a bug that caused :meth:pymongo.collection.Collection.ensure_index to only cache a single index per database. - Updated the documentation examples to use :meth:pymongo.collection.Collection.count_documents instead of :meth:pymongo.collection.Collection.count and :meth:pymongo.cursor.Cursor.count.
2018-10-07py-mongo: updated to 3.7.1adam3-8/+23
Changes in Version 3.7.1 Version 3.7.1 fixes a few issues discovered since the release of 3.7.0. Calling :meth:~pymongo.database.Database.authenticate more than once with the same credentials results in OperationFailure. Authentication fails when SCRAM-SHA-1 is used to authenticate users with only MONGODB-CR credentials. A millisecond rounding problem when decoding datetimes in the pure Python BSON decoder on 32 bit systems and AWS lambda. Issues Resolved Changes in Version 3.7.0 Version 3.7 adds support for MongoDB 4.0. Highlights include: Support for single replica set multi-document ACID transactions. See :ref:transactions-ref. Support for wire protocol compression. See the :meth:~pymongo.mongo_client.MongoClient documentation for details. Support for Python 3.7. New count methods, :meth:~pymongo.collection.Collection.count_documents and :meth:~pymongo.collection.Collection.estimated_document_count. :meth:~pymongo.collection.Collection.count_documents is always accurate when used with MongoDB 3.6+, or when used with older standalone or replica set deployments. With older sharded clusters is it always accurate when used with Primary read preference. It can also be used in a transaction, unlike the now deprecated :meth:pymongo.collection.Collection.count and :meth:pymongo.cursor.Cursor.count methods. Support for watching changes on all collections in a database using the new :meth:pymongo.database.Database.watch method. Support for watching changes on all collections in all databases using the new :meth:pymongo.mongo_client.MongoClient.watch method. Support for watching changes starting at a user provided timestamp using the new start_at_operation_time parameter for the watch() helpers. Better support for using PyMongo in a FIPS 140-2 environment. Specifically, the following features and changes allow PyMongo to function when MD5 support is disabled in OpenSSL by the FIPS Object Module: Support for the :ref:SCRAM-SHA-256 <scram_sha_256> authentication mechanism. The :ref:GSSAPI <gssapi>, :ref:PLAIN <sasl_plain>, and :ref:MONGODB-X509 <mongodb_x509> mechanisms can also be used to avoid issues with OpenSSL in FIPS environments. MD5 checksums are now optional in GridFS. See the disable_md5 option of :class:~gridfs.GridFS and :class:~gridfs.GridFSBucket. :class:~bson.objectid.ObjectId machine bytes are now hashed using FNV-1a instead of MD5. The :meth:~pymongo.database.Database.list_collection_names and :meth:~pymongo.database.Database.collection_names methods use the nameOnly option when supported by MongoDB. The :meth:pymongo.collection.Collection.watch method now returns an instance of the :class:~pymongo.change_stream.CollectionChangeStream class which is a subclass of :class:~pymongo.change_stream.ChangeStream. SCRAM client and server keys are cached for improved performance, following RFC 5802. If not specified, the authSource for the :ref:PLAIN <sasl_plain> authentication mechanism defaults to $external. wtimeoutMS is once again supported as a URI option. When using unacknowledged write concern and connected to MongoDB server version 3.6 or greater, the bypass_document_validation option is now supported in the following write helpers: :meth:~pymongo.collection.Collection.insert_one, :meth:~pymongo.collection.Collection.replace_one, :meth:~pymongo.collection.Collection.update_one, :meth:~pymongo.collection.Collection.update_many. Deprecations: Deprecated :meth:pymongo.collection.Collection.count and :meth:pymongo.cursor.Cursor.count. These two methods use the count command and may or may not be accurate, depending on the options used and connected MongoDB topology. Use :meth:~pymongo.collection.Collection.count_documents instead. Deprecated the snapshot option of :meth:~pymongo.collection.Collection.find and :meth:~pymongo.collection.Collection.find_one. The option was deprecated in MongoDB 3.6 and removed in MongoDB 4.0. Deprecated the max_scan option of :meth:~pymongo.collection.Collection.find and :meth:~pymongo.collection.Collection.find_one. The option was deprecated in MongoDB 4.0. Use maxTimeMS instead. Deprecated :meth:~pymongo.mongo_client.MongoClient.close_cursor. Use :meth:~pymongo.cursor.Cursor.close instead. Deprecated :meth:~pymongo.mongo_client.MongoClient.database_names. Use :meth:~pymongo.mongo_client.MongoClient.list_database_names instead. Deprecated :meth:~pymongo.database.Database.collection_names. Use :meth:~pymongo.database.Database.list_collection_names instead. Deprecated :meth:~pymongo.collection.Collection.parallel_scan. MongoDB 4.2 will remove the parallelCollectionScan command. Unavoidable breaking changes: Commands that fail with server error codes 10107, 13435, 13436, 11600, 11602, 189, 91 (NotMaster, NotMasterNoSlaveOk, NotMasterOrSecondary, InterruptedAtShutdown, InterruptedDueToReplStateChange, PrimarySteppedDown, ShutdownInProgress respectively) now always raise :class:~pymongo.errors.NotMasterError instead of :class:~pymongo.errors.OperationFailure. :meth:~pymongo.collection.Collection.parallel_scan no longer uses an implicit session. Explicit sessions are still supported. Unacknowledged writes (w=0) with an explicit session parameter now raise a client side error. Since PyMongo does not wait for a response for an unacknowledged write, two unacknowledged writes run serially by the client may be executed simultaneously on the server. However, the server requires a single session must not be used simultaneously by more than one operation. Therefore explicit sessions cannot support unacknowledged writes. Unacknowledged writes without a session parameter are still supported.
2017-09-12databases/py-mongo: update to 3.5.1adam3-24/+94
Changes in Version 3.5.1 Version 3.5.1 fixes bugs reported since the release of 3.5.0: * Work around socket.getsockopt issue with NetBSD. * :meth:`pymongo.command_cursor.CommandCursor.close` now closes the cursor synchronously instead of deferring to a background thread. * Fix documentation build warnings with Sphinx 1.6.x. Issues Resolved See the PyMongo 3.5.1 release notes in JIRA for the list of resolved issues in this release.
2017-07-30Switch github HOMEPAGEs to https.wiz1-2/+2
2016-06-08Switch to MASTER_SITES_PYPI.wiz1-2/+2
2015-11-03Add SHA512 digests for distfiles for databases categoryagc1-1/+2
Problems found with existing distfiles: distfiles/D6.data.ros.gz distfiles/cstore0.2.tar.gz distfiles/data4.tar.gz distfiles/sphinx-2.2.7-release.tar.gz No changes made to the cstore or mariadb55-client distinfo files. Otherwise, existing SHA1 digests verified and found to be the same on the machine holding the existing distfiles (morden). All existing SHA1 digests retained for now as an audit trail.
2014-06-08Import py27-mongo-2.7.1 as databases/py-mongo.rodent4-0/+155
The PyMongo distribution contains tools for interacting with MongoDB database from Python. The bson package is an implementation of the BSON format for Python. The pymongo package is a native Python driver for MongoDB. The gridfs package is a gridfs implementation on top of pymongo.