stephan-hof
8b23204408
PYTHON-3758 Support overflow integers in fallback_encoder. ( #1243 )
...
bson only supports 64-bit integer within range:
[-9_223_372_036_854_775_807, +9_223_372_036_854_775_807]
This change calls the fallback_encoder before raising OverflowError on
integers outside of this range.
2023-06-26 15:20:01 -04:00
Steven Silvester
e78a91ef28
PYTHON-2965 Migrate to a PEP517 compliant build system ( #1252 )
2023-06-22 13:00:55 -05:00
Shane Harvey
55a9bee810
BUMP 4.4 ( #1251 )
2023-06-20 23:20:39 -07:00
Noah Stapp
82d87dc173
PYTHON-3744 Fix utcnow deprecation build regressions ( #1244 )
2023-06-16 13:30:54 -07:00
Iris
f7874fb110
PYTHON-2287 Improve error message for invalid boolean option ( #1236 )
2023-06-15 11:54:20 -07:00
Noah Stapp
6a04fe2c91
PYTHON-3702 Stop using utcnow and utcfromtimestamp changelog update ( #1235 )
2023-06-14 16:11:26 -07:00
Noah Stapp
ec3437849e
PYTHON-3702 Stop using utcnow and utcfromtimestamp ( #1229 )
2023-06-12 15:43:30 -07:00
Dainis Gorbunovs
c7e06e6fc1
PYTHON-3725 Fix Test Failure - MockupDB test_network_disconnect_primary ( #1222 )
2023-06-05 16:38:28 -07:00
thalassemia
1ba4c0bcbd
PYTHON-3718 Faster INT2STRING ( #1221 )
2023-06-05 18:35:39 -05:00
Steven Silvester
622df873ae
PYTHON-3696 Bump minimum pymongocrypt version req to >=1.6 for QEv2 ( #1211 )
2023-05-12 16:05:23 -05:00
Shane Harvey
0123d32a20
PYTHON-3709 Remove "beta" from Queryable Encryption Equality API ( #1210 )
2023-05-12 12:17:40 -07:00
Shane Harvey
d504322a74
PYTHON-3694 Test with MongoDB 7.0 ( #1207 )
2023-05-09 23:19:44 -07:00
Steven Silvester
2752a7dd30
PYTHON-3456 CSFLE/QE Naming ( #1208 )
2023-05-09 20:19:57 -05:00
Jean-Christophe Fillion-Robin
d340710e3d
PYTHON-3703 Fix typos and add codespell pre-commit hook ( #1203 )
...
Update pre-commit config adding "codespell" hook
2023-05-03 14:47:24 -07:00
Shane Harvey
deb0566c3e
PYTHON-3614 Support Queryable Encryption protocol v2 on 7.0+ ( #1197 )
...
Resync FLE spec tests and update docs for new QE protocol on 7.0.
Add client side error for createEncryptedCollection on MongoDB < 7.0.
KMS timeout errors should always have exc.timeout==True.
PYTHON-3583 Drivers should not create the ECC collection in v2 of queryable encryption.
2023-05-01 09:16:28 -07:00
Steven Silvester
dfd82d2375
PYTHON-3677 Update docs on Range Index ( #1195 )
2023-04-25 17:28:10 -05:00
Shane Harvey
79488d95db
PYTHON-3678 Username/password needs to be escaped with quote_plus to account for '/' ( #1193 )
2023-04-25 11:30:23 -07:00
Steven Silvester
be355e2bea
PYTHON-3604 Remove Duplicate API Docs ( #1190 )
2023-04-13 10:30:54 -05:00
Shane Harvey
e85a84e3f4
PYTHON-3643 Use mongodb+srv in MONGODB-AWS auth examples ( #1177 )
2023-03-31 13:58:47 -07:00
Julius Park
9d65395d7f
PYTHON-3567 Add guidance for setting uuidRepresentation in 4.0 migration guide ( #1176 )
2023-03-28 14:51:08 -07:00
Julius Park
04c9f87d70
PYTHON-2468 Add pymongoexplain example to pymongo docs ( #1172 )
2023-03-20 15:54:42 -07:00
Steven Silvester
e9a6482c4d
PYTHON-3610 Add blacken-docs to pre-commit hook ( #1170 )
2023-03-14 15:37:45 -05:00
Steven Silvester
6e2e70ab80
PYTHON-3381 Improve readability of sphinx docs ( #1156 )
2023-02-17 08:31:57 -06:00
Steven Silvester
6ed6c374f1
PYTHON-3593 Remove bulk api docs page which is blank ( #1154 )
2023-02-13 16:50:29 -06:00
Julius Park
0b843b76f6
BUMP 4.4.0b0 ( #1144 )
2023-01-25 14:09:15 -08:00
Steven Silvester
a3720d9cea
PYTHON-3568 Intellisense highlights multiple PyMongo methods because of CodecOptions ( #1139 )
2023-01-25 09:41:23 -06:00
Steven Silvester
47686c8f68
PYTHON-3543 Broken Links for ICU Project ( #1129 )
2022-12-20 16:29:43 -06:00
Steven Silvester
ee2badff75
PYTHON-3524 Support passing list of strings to create_index ( #1121 )
2022-11-29 05:27:45 -06:00
Steven Silvester
363e0b2b2c
PYTHON-2818 Add documentation and changelog ( #1115 )
2022-11-14 15:13:51 -06:00
Steven Silvester
fcb1151450
PYTHON-3517 Add documentation for on-demand KMS providers ( #1113 )
2022-11-11 16:23:03 -06:00
Julius Park
92e6150d84
PYTHON-3493 Bulk Write InsertOne Should Be Parameter Of Collection Type ( #1106 )
2022-11-10 14:19:55 -08:00
Julius Park
87b09847a4
PYTHON-3494 Improve Documentation Surrounding Type-Checking "_id" ( #1104 )
2022-11-10 09:53:19 -08:00
Shane Harvey
c106c08c1d
PYTHON-3295 Add CSOT docs page ( #1111 )
2022-11-08 11:13:34 -08:00
Shane Harvey
da4df79555
PYTHON-3508 Improve the performance of GridOut.readline and GridOut.read ( #1109 )
2022-11-07 10:37:33 -08:00
Steven Silvester
a00aabfa0d
PYTHON-3502 GridFSBucket.download_to_stream slow ( #1108 )
2022-11-04 13:47:32 -05:00
Julius Park
9083821300
PYTHON-3454 Specifying a generic type for a collection does not correctly enforce type safety when inserting data ( #1081 )
2022-11-01 14:33:21 -07:00
Steven Silvester
3fc301cd22
PYTHON-3256 Obtain AWS credentials for CSFLE in the same way as for MONGODB-AWS ( #1035 )
2022-10-24 14:55:58 -05:00
Shane Harvey
45b809e41c
Mention crypt_shared in encryption examples pages and fix formatting ( #1088 )
2022-10-20 16:07:39 -07:00
Steven Silvester
5dec36195a
PYTHON-3474 Improve documentation about credential handling ( #1080 )
2022-10-17 19:12:41 -05:00
Steven Silvester
f3fc409e24
PYTHON-3474 Document changes to AWS Credential Handling ( #1077 )
2022-10-13 16:44:43 -05:00
Steven Silvester
4a5e0f6655
PYTHON-3313 Cache AWS Credentials Where Possible ( #982 )
2022-10-12 10:21:06 -05:00
Shane Harvey
64d7d6da8a
PYTHON-2970 Prioritize electionId over setVersion for stale primary check ( #845 )
2022-10-05 13:02:15 -07:00
Shane Harvey
c9ac5a5cf8
PYTHON-3447 Add back empty tls extra to avoid pip warnings ( #1065 )
2022-09-28 16:00:15 -07:00
Julius Park
c874c96e29
PYTHON-3232 Improved change stream event visibility for C2C Replication ( #1062 )
2022-09-27 15:31:20 -07:00
Julius Park
dcb1327395
PYTHON-3423 Make dnspython a required dependency ( #1055 )
2022-09-15 13:31:45 -07:00
Shane Harvey
179efda312
PYTHON-3406 Reinstate warning and docs that PyMongo is not fork safe ( #1050 )
...
Log child process C-level stacks when fork tests deadlock.
Encode hostname to bytes to avoid getaddrinfo importlib deadlock.
2022-09-13 14:14:53 -07:00
Ben Warner
09aeef0f9d
Changelog 4.3 ( #1038 )
2022-08-18 15:30:45 -07:00
Ben Warner
46673c3705
PYTHON-3379 Refactored DatetimeConversionOpts to DatetimeConversion ( #1031 )
2022-08-04 12:53:57 -07:00
Ben Warner
92a6fa79b6
PYTHON-3376/PYTHON-3378 Update FAQ about OverflowError when decoding out of range datetimes ( #1025 )
2022-08-03 16:53:50 -07:00
Ben Warner
3c18c20795
PYTHON-3377 datetime_ms documentation page is empty ( #1026 )
...
Co-authored-by: Ben Warner <ben.warner@mongodb.com>
2022-07-29 12:07:04 -07:00
Ben Warner
14002a5a0d
PYTHON-1824 Allow encoding/decoding out-of-range datetimes via DatetimeMS and datetime_conversion ( #981 )
...
https://jira.mongodb.org/browse/PYTHON-1824
Co-authored-by: Ben Warner <ben.warner@mongodb.com>
2022-07-27 16:53:52 -07:00
Shane Harvey
864812d400
PYTHON-3366 Support mypy 0.971 and test with latest version ( #1021 )
...
PYTHON-3369 Use https://www.gevent.org
2022-07-25 15:25:41 -07:00
Shane Harvey
9bc134cf61
BUMP 4.2 ( #1016 )
2022-07-20 08:33:41 -07:00
Shane Harvey
c43486101f
PYTHON-3291 Add PyMongoError.timeout to identify timeout related errors ( #1008 )
2022-07-18 15:58:20 -05:00
Julius Park
484374eb3f
PYTHON-3298 Add flag to create_collection to skip listCollections pre-check ( #1006 )
2022-07-18 13:40:16 -07:00
Shane Harvey
bbe364fea8
PYTHON-3294 Bump minimum pymongocrypt version to 1.3.0 ( #1007 )
2022-07-18 13:06:08 -05:00
Steven Silvester
256cd002d6
PYTHON-3339 Ignore Sourceforge link that is giving 403 Error ( #993 )
2022-07-06 14:23:14 -05:00
Julius Park
bacaf7fa50
PYTHON-3309 Explicit Queryable Encryption doc example needs to utilize index_key_Id ( #986 )
2022-06-29 13:11:25 -07:00
Ben Warner
4ae93c4937
PYTHON-1552 Prevent uploading partial or corrupt GridFS files after an error occurs
2022-06-16 15:26:27 -07:00
Julius Park
f45f00b4e5
PYTHON-3300 Fix Explicit Queryable Encryption Example ( #975 )
2022-06-15 13:16:07 -07:00
Julius Park
dc21a083f4
PYTHON-3300 Add Explicit Queryable Encryption Example to Docs ( #973 )
2022-06-15 12:25:11 -07:00
Ben Warner
3f7231a1a2
PYTHON-3048 Fixed bug with incorrect validation of UTF-8 regex patterns ( #970 )
2022-06-13 16:04:30 -07:00
Ben Warner
be3008aa11
PYTHON-2110 Refactored some C to avoid symbol conflicts ( #968 )
...
* Refactored to avoid symbol conflicts
* Forgot a replacement
* Found a symbol
* Undid symbol replacement for PyInit__cmessage
* Changed cbson too
Co-authored-by: Ben Warner <ben.warner@mongodb.com>
2022-06-13 11:42:41 -07:00
Steven Silvester
77ace9a988
PYTHON-3299 Add Automatic Queryable Encryption Example to Docs ( #964 )
2022-06-07 17:29:51 -04:00
Shane Harvey
09b18244cc
PYTHON-3293 Document Queryable Encryption API is in beta ( #965 )
2022-06-07 15:46:13 -04:00
Shane Harvey
890cd26e1a
PYTHON-3288 Implement client side operation timeout ( #954 )
...
Add timeoutMS URI option and MongoClient keyword argument.
Add provisional/beta pymongo.timeout() api to set a deadline for a block of operations.
2022-06-06 15:36:52 -04:00
Shane Harvey
89d3fd0355
PYTHON-3279 Don't link check flakey wiki.centos.org ( #951 )
2022-05-23 12:44:44 -07:00
Shane Harvey
a7579b02d2
PYTHON-3259 Improve migration guide for loads/JSONOptions/tz_aware ( #946 )
2022-05-10 11:05:59 -07:00
Shane Harvey
75685c006c
PYTHON-3235 Drop support for Python 3.6 ( #939 )
2022-05-05 16:13:41 -07:00
Julius Park
252ed1cef6
PYTHON-3247 Mitigate user issues caused by change in directConnection defaults in 4.x ( #935 )
2022-05-03 14:49:18 -07:00
Shane Harvey
6e4e90a882
PYTHON-3167 Revert to using the count command for estimated_document_count ( #934 )
...
Resolves PYTHON-2885, PYTHON-3166, PYTHON-3224, and PYTHON-3219.
2022-05-02 16:32:05 -07:00
Shane Harvey
8b3eaafb40
BUMP 4.1.1
2022-04-13 13:32:58 -07:00
Julius Park
868b3f77f3
PYTHON-3080 Add section to troubleshooting FAQ per driver with top SEO results ( #918 )
2022-04-13 13:03:37 -07:00
Steven Silvester
a319075ba7
PYTHON-3197 Update docs.mongodb.com links in source, API & Reference documentation ( #926 )
2022-04-13 14:11:13 -05:00
Shane Harvey
dca72b7884
PYTHON-3222 Fix memory leak in cbson decode_all ( #927 )
...
Add decode_all keyword arg for codec_options.
Make decode_all show up in docs.
2022-04-12 17:18:23 -07:00
Steven Silvester
a809b3c005
PYTHON-3190 Test Failure - doctests failing cannot import name 'TypedDict' ( #917 )
2022-03-31 16:11:20 -05:00
Steven Silvester
113d66dc18
PYTHON-2406 Clean up of tools documentation page ( #913 )
2022-03-31 04:31:05 -05:00
Shane Harvey
3179eab91d
Improve the changelog for 4.1 ( #915 )
2022-03-30 20:57:12 -05:00
Steven Silvester
1d30802f8c
PYTHON-3074 Add documentation for type hints ( #906 )
2022-03-29 18:03:42 -05:00
Shane Harvey
a4bba9dd5c
Revert "PYTHON-2970 Prioritize electionId over setVersion for stale primary check ( #845 )"
...
This reverts commit 225d131c2d .
2022-03-29 13:45:27 -07:00
Steven Silvester
d8c2b315b0
PYTHON-3185 Pre-Commit Needs an Upgrade ( #911 )
2022-03-29 14:59:33 -05:00
Shane Harvey
c15fce0b3c
PYTHON-3138 copydb was removed in MongoDB 4.2 ( #910 )
2022-03-28 15:23:00 -07:00
Steven Silvester
474420b2e5
PYTHON-3085 Audit consistent and correct types for _DocumentOut ( #893 )
2022-03-16 05:56:07 -05:00
Steven Silvester
087950d869
PYTHON-3164 Outdated link from PyMongo docs to community forum ( #895 )
2022-03-15 15:49:11 -05:00
Shane Harvey
225d131c2d
PYTHON-2970 Prioritize electionId over setVersion for stale primary check ( #845 )
2022-03-09 11:13:18 -08:00
Steven Silvester
782c5517e0
PYTHON-3146 Test Failure - Could not import extension sphinxcontrib.shellcheck ( #889 )
2022-03-01 14:10:57 -06:00
Arie Bovenberg
2f13a51cd4
PYTHON-3124 Remove overlapping slots from _WriteResult subclasses ( #884 )
2022-02-22 10:27:16 -08:00
Julius Park
f5eec45250
PYTHON-3111 Rename "Versioned API" to "Stable API" in documentation ( #867 )
2022-02-17 16:23:23 -08:00
Steven Silvester
a0fe7c03af
PYTHON-3120 Set up flake8 linting ( #868 )
2022-02-17 06:44:08 -06:00
Steven Silvester
0700a84432
PYTHON-1834 Add shellcheck ( #858 )
2022-02-11 06:32:01 -06:00
Steven Silvester
b7057ecf9f
PYTHON-1834 (cont) Add pre-commit config ( #853 )
2022-02-09 14:24:23 -06:00
Steven Silvester
5578999a90
PYTHON-1834 Use a code formatter ( #852 )
2022-02-09 06:44:28 -06:00
Shane Harvey
bdafc35733
PYTHON-3041 Fix doc example for initializing a replica set ( #835 )
2022-01-21 10:09:03 -08:00
Julius Park
c9229ace26
PYTHON-3061 Add 'let' option to ReplaceOptions ( #832 )
2022-01-18 16:40:28 -08:00
Steven Silvester
52ed5a4135
PYTHON-3052 Add Typings to PyMongo Itself ( #829 )
2022-01-13 16:09:48 -06:00
Roberto Martinez
b502c44c06
Use quotes for pip install with extras ( #824 )
2021-12-14 11:24:05 -08:00
Shane Harvey
bf992c20a6
PYTHON-2554 Support aggregate $merge and $out executing on secondaries ( #774 )
2021-12-07 16:26:01 -08:00
Shane Harvey
e154642968
Removed references to outdated server versions ( #812 )
2021-12-07 15:47:28 -08:00
Shane Harvey
44853ea9c3
PYTHON-3033 Fix typo in uuid docs ( #808 )
2021-12-06 11:26:36 -08:00
Julius Park
046d789d9f
PYTHON-2957 Support 'let' option for multiple CRUD commands ( #804 )
2021-11-30 15:02:40 -08:00
Julius Park
7de879a9fe
PYTHON-3018 Add docs for removed methods from Collection ( #801 )
2021-11-23 16:56:41 -08:00
Shane Harvey
12a6af7ab6
PYTHON-2981 Stop using MongoClient.address for hashing and equality ( #795 )
2021-11-17 12:31:59 -08:00
Shane Harvey
24cc4c42bf
PYTHON-3019 Fix doc test failures ( #794 )
...
Remove pymongo 2 to 3 migration guide.
Make raw_bson doc tests less flakey.
2021-11-16 17:14:33 -08:00
Shane Harvey
e655b0bb99
PYTHON-3001 Bump minimum pymongocrypt version to 1.2.0 ( #793 )
2021-11-16 16:35:31 -08:00
Bernie Hackett
a655c576c9
PYTHON-3015 Document cipher mismatch issues ( #791 )
2021-11-16 14:23:55 -08:00
Shane Harvey
278a50d4b0
PYTHON-3005 Make maxConnecting configurable ( #789 )
2021-11-16 12:51:36 -08:00
Shane Harvey
e27131546c
PYTHON-2998 Remove md5 checksums from gridfs and remove disable_md5 ( #776 )
...
Speed up gridfs tests (shaves off about 2 minutes on macOS).
2021-11-04 17:25:11 -07:00
Shane Harvey
b342990934
PYTHON-2164 Add MongoClient.options, remove redundant properties ( #772 )
2021-11-03 11:21:33 -07:00
Shane Harvey
9f6c6a3061
PYTHON-2990 Use https:// instead of unauthenticated git:// for git clone
2021-11-01 18:23:08 -07:00
Shane Harvey
8b2eb24c35
PYTHON-2164 Remove client max_bson_size/max_message_size/max_write_batch_size ( #766 )
...
Use the hello command instead:
doc = client.admin.command('hello')
max_bson_size = doc['maxBsonObjectSize']
max_message_size = doc['maxMessageSizeBytes']
max_write_batch_size = doc['maxWriteBatchSize']
Also add documentation for TopologyDescription.apply_selector.
2021-11-01 14:26:47 -07:00
Julius Park
42324c69cf
PYTHON-2973 Revert back to using quote_plus/unquote_plus ( #767 )
2021-10-29 16:30:55 -07:00
Shane Harvey
3c3a85d1bc
PYTHON-2817 Add .readthedocs.yaml config file ( #769 )
2021-10-28 17:12:30 -07:00
Julius Park
bfa5aafb34
PYTHON-2832 Provide options to limit number of mongos servers used in connecting to sharded clusters ( #754 )
2021-10-26 14:47:51 -07:00
Julius Park
eabd2235ba
PYTHON-2859 Add BSON Binary subtype 7 ( #763 )
2021-10-26 14:24:27 -07:00
Julius Park
11e6f9860a
PYTHON-1579 Update URI parser to adhere to new connection string spec ( #755 )
2021-10-20 13:39:32 -07:00
Julius Park
6bb8a1f411
PYTHON-2823 Allow custom service names with srvServiceName URI option ( #749 )
2021-10-08 11:23:21 -07:00
Julius Park
6e7b652d86
PYTHON-2914 MongoClient should raise an error when given multiple URIs ( #747 )
2021-10-05 14:00:39 -07:00
Julius Park
a80169d1fa
PYTHON-2463 Do not allow a MongoClient to be reused after it is closed ( #737 )
2021-09-24 15:37:24 -07:00
Julius Park
c38085269b
PYTHON-1337 Add __slots__ to commonly used bson classes ( #739 )
2021-09-24 13:54:40 -07:00
Julius Park
c7d80802be
PYTHON-1853 Empty projections should return the entire document not just the _id ( #738 )
2021-09-23 14:46:44 -07:00
Julius Park
fcedc510e1
PYTHON-2501 Remove iteritems from son.SON ( #731 )
2021-09-22 12:18:19 -07:00
Shane Harvey
5125bca2df
PYTHON-2899 Fix "no server" tests and cleanup docs ( #736 )
2021-09-17 14:20:51 -07:00
Julius Park
88e744d506
PYTHON-808 Prevent use of Database and Collection in boolean expressions ( #728 )
2021-09-16 15:52:14 -07:00
Julius Park
4e086ba218
PYTHON-1915 Prohibit copying ClientSession objects ( #726 )
2021-09-15 12:05:09 -07:00
Julius Park
e3771587c3
PYTHON-1949 CodecOptions and JSONOptions should have the same default value for tz_aware ( #720 )
2021-09-14 16:54:11 -07:00
Shane Harvey
fb20975a1f
PYTHON-2245 Change default uuidRepresentation to UNSPECIFIED (ie disable UUID encoding by default) ( #724 )
...
This change also stops decoding both 3 and 4 subtypes as UUIDs.
With standard, only subtype 4 is decoded to UUID and subtype 3 is decoded to Binary.
With legacy representations, only subtype 3 is decoded to UUID and subtype 4 is decoded to Binary.
2021-09-14 16:48:52 -07:00
Julius Park
3b8961a76e
PYTHON-2679 Auto discover replica sets by default ( #716 )
2021-09-14 14:00:13 -07:00
Bernie Hackett
ad4315134c
PYTHON-2803 Get rid of most uses of 'master'
...
This change also resolves PYTHON-2848 for MongoDB 4.0.
2021-09-13 12:50:49 -07:00
Bernie Hackett
d8b6e01690
PYTHON-2833 MongoDB 3.6 is the minimum supported version
...
This change drops support for server versions older than
3.6. If you still need support for older server versions the
3.x branch of PyMongo will receive bug fixes for at least a year
after the release of PyMongo 4.0.
2021-09-10 12:05:46 -07:00
Shane Harvey
afa3997bb2
PYTHON-2680 Breaking changes to DBRef BSON+JSON decoding ( #722 )
...
Implement DBRef spec version 1.0 tests.
2021-09-10 11:03:25 -07:00
Shane Harvey
fb38fbe35e
PYTHON-2046 Change default JSONMode and dumps output from LEGACY to RELAXED ( #711 )
2021-09-08 11:33:41 -07:00
Shane Harvey
d9e5666336
PYTHON-2875 Require hint with min/max queries ( #712 )
2021-09-08 11:32:14 -07:00
Julius Park
88e86f6f5a
PYTHON-2057 Make 'name' a required argument for DriverInfo class ( #718 )
2021-09-08 11:24:10 -07:00
henrifroese
fa9531b4bf
PYTHON-2824 Make GridOut implement full io.IOBase spec ( #677 )
...
Make GridOut inherit from io.IOBase to be a fully "file-like" object (https://docs.python.org/3/glossary.html#term-file-like-object ). Implement missing methods `readlines`, `writelines`,
`writable`, `fileno`, `flush`, `isatty`, `truncate`,
and property `closed`, following the spec
(https://docs.python.org/3/library/io.html#io.IOBase.writable ).
Iterating over GridOut previously returned chunks, but IOBase specifies
that lines should be returned. Thus, the `GridOutIterator` returning chunks is removed
and GridOut simply uses the existing IOBase iterator implementation (returning `self`
in `__iter__` and using `readline` in `__next__`).
Additionally, iterating over GridOut previously did not move the "file pointer" along, i.e.
`next(iter(some_grid_out_object))` always gave the same result (the first chunk of the file)
as it would create a new iterator starting at the top of the file. This is now fixed as well, so
a first call to `next(iter(some_grid_out_object))` gives the first line, and subsequent calls return
the subsequent lines.
2021-08-23 11:45:34 -04:00
Prashant Mital
9055bb09e6
PYTHON-2702 Remove deprecated URI options ( #710 )
2021-08-20 10:17:06 -07:00
Prashant Mital
b3118e034e
PYTHON-2162 Remove support for ssl* URI options ( #706 )
2021-08-19 14:58:31 -07:00
Shane Harvey
f9bfd11290
PYTHON-2870 Add support for man/text/latex/etc.. docs output ( #708 )
...
Regenerate sphinx makefile with sphinx-quickstart 3.5.4.
Remove problematic mongodoc sphinx extension.
2021-08-19 13:31:46 -07:00
Shane Harvey
65aa7c86d5
PYTHON-2850 Remove map_reduce/inline_map_reduce ( #703 )
2021-08-12 09:44:52 -07:00
Shane Harvey
71a1656be0
PYTHON-2038 Remove pymongo.errors.CertificateError ( #705 )
2021-08-12 09:29:30 -07:00
Shane Harvey
10002fad1c
PYTHON-2857 Remove the socketKeepAlive option ( #702 )
2021-08-10 14:00:41 -07:00
Shane Harvey
e1b068d37a
PYTHON-2525 Remove Collection.count and Cursor.count ( #700 )
2021-08-10 13:52:29 -07:00
Shane Harvey
e3a61b9ff7
PYTHON-1840 Remove waitQueueMultiple and ExceededMaxWaiters ( #699 )
2021-08-09 10:53:28 -07:00
Shane Harvey
be47e4ca14
PYTHON-2532 Remove modifiers option for find methods ( #696 )
2021-08-09 10:02:36 -07:00
Shane Harvey
5fd175c0d8
PYTHON-2529 Remove UUIDLegacy ( #698 )
2021-08-06 16:52:41 -07:00
Shane Harvey
369d175993
PYTHON-2430 Remove all helpers in the message module ( #695 )
2021-08-06 13:33:21 -07:00
Shane Harvey
9bc27c9c0b
PYTHON-2797 Update docs for 5.0 support
...
Add changelog entries for 3.11.2, 3.11.3, and 3.12.0.
2021-08-06 13:29:11 -07:00
Shane Harvey
93a042f2e8
PYTHON-2235 Remove pymongo.GEOHAYSTACK ( #694 )
2021-08-06 13:13:23 -07:00
Shane Harvey
edda903b5b
PYTHON-2711 Remove profile command helpers ( #693 )
2021-08-06 12:54:52 -07:00
Shane Harvey
3e02957998
PYTHON-2288 Finish removing IsMaster from docs
2021-08-06 12:33:26 -07:00
Shane Harvey
69dee51b90
PYTHON-1318 Remove initialize_unordered_bulk_op and initialize_ordered_bulk_op ( #692 )
...
PYTHON-2436 Unskip test_large_inserts_ordered on MongoDB 5.0.
2021-08-05 17:58:15 -07:00
Shane Harvey
3513ab72b0
PYTHON-2528 Remove Database.current_op
2021-08-04 11:14:50 -07:00
Prashant Mital
3f8c104157
PYTHON-2288 Remove IsMaster ( #690 )
2021-07-29 10:32:51 -07:00
Prashant Mital
0209e4a4a4
PYTHON-2571 Remove NotMasterError ( #688 )
2021-07-28 16:01:32 -07:00
Bernie Hackett
88480299b7
PYTHON-2766 Warn users away from cursor slices
2021-06-29 18:10:48 -07:00
Bernie Hackett
a94504bde9
PYTHON-2726 Document read preference quirks
2021-06-28 13:08:07 -07:00
Prashant Mital
00f7fe8ce3
PYTHON-2748 Fix error in UUID example ( #650 )
2021-06-23 11:05:57 -07:00
Prashant Mital
a32259037f
PYTHON-2724 Add FAQ to PyMongo documentation pointing users to PyMongoArrow ( #651 )
2021-06-22 16:25:17 -07:00
Bernie Hackett
640fee9d5d
PYTHON-2556 Disable dots and dollars validation
2021-06-22 11:49:48 -07:00
Prashant Mital
6e1009e8b6
PYTHON-2396 Deprecate ssl_keyfile and ssl_certfile URI options ( #616 )
2021-05-05 15:50:01 -07:00
Shane Harvey
1390283a5d
PYTHON-2658 Remove NPS survey ( #615 )
2021-04-30 14:20:10 -07:00
Khanh Nguyen
61ab9caa6c
docs: Update link to sphinx website ( #608 )
2021-04-26 13:55:29 -07:00
William Zhou
0752280ada
PYTHON-2480: Add MongoClient helper to access the current TopologyDescription ( #583 )
2021-03-25 10:14:16 -07:00
Prashant Mital
ec6337e3a7
PYTHON-2583 Bump minimum required PyMongoCrypt version to 1.1.0 ( #576 )
2021-03-09 12:33:12 -08:00
Shane Harvey
95974617bd
PYTHON-1314 Remove Database.authenticate and Database.logout ( #568 )
2021-02-17 14:16:07 -08:00
Bernie Hackett
913860334e
PYTHON-2386 Drop support for Python 3.5
2021-02-03 16:33:36 -08:00
Bernie Hackett
70b927a01d
PYTHON-2508 Improve PyOpenSSL on Windows and macOS
2021-01-28 16:02:51 -08:00
Shane Harvey
2565b4d291
PYTHON-1312 Remove Database.add_user and Database.remove_user ( #561 )
2021-01-26 12:49:49 -08:00
Shane Harvey
ab35e0df7f
PYTHON-1326 Remove the "useCursor" aggregate option ( #560 )
2021-01-26 10:46:35 -08:00
Shane Harvey
ac4bacb66c
PYTHON-1323 Removed Collection.group ( #559 )
2021-01-25 17:07:48 -08:00
Shane Harvey
7c1060cfec
PYTHON-1307 Remove SONManipulator APIs ( #557 )
2021-01-25 16:22:00 -08:00
Shane Harvey
e01d9a37e7
PYTHON-1320 Remove legacy CRUD methods ( #556 )
...
Remove save, insert, update, remove, and find_and_modify.
Remove tools/benchmark.py
2021-01-22 17:11:15 -08:00
Bernie Hackett
1f1670cc35
PYTHON-1974 Drop support for Python 3.4
2021-01-22 15:54:26 -08:00
Bernie Hackett
521f7b9af4
PYTHON-2133 Fix up docs
...
And finish deleting python 2 specific code.
2021-01-21 15:49:23 -08:00
Shane Harvey
c65b89d8a1
PYTHON-1319 Remove Collection.ensure_index and reindex ( #555 )
2021-01-21 11:25:19 -08:00
Shane Harvey
454d77b783
PYTHON-1309 Remove helpers for getLastError ( #554 )
...
Remove Database.error, Database.last_status, Database.previous_error,
and Database.reset_error_history.
2021-01-20 16:38:07 -08:00
Shane Harvey
0e250bef75
PYTHON-1301/PYTHON-1302/PYTHON-1588 Remove deprecated cursor manager APIs ( #550 )
...
Remove MongoClient.set_cursor_manager and pymongo.cursor_manager.
Remove MongoClient.kill_cursors and MongoClient.close_cursor.
Co-authored-by: kAldown <kaldownb@gmail.com>
2021-01-15 17:52:54 -08:00
Shane Harvey
56925fd97f
PYTHON-1321 Remove MongoReplicaSetClient ( #552 )
2021-01-15 17:11:15 -08:00
Shane Harvey
6e8c3708b8
PYTHON-1587 Remove MongoClient.database_names and Database.collection_names ( #551 )
2021-01-15 16:53:42 -08:00
Shane Harvey
3c899aeb89
PYTHON-1592 Remove Collection.parallel_scan ( #547 )
2021-01-15 14:01:45 -08:00
Shane Harvey
387bfa0bfa
PYTHON-2310 Remove MongoClient.fsync, unlock, and is_locked ( #546 )
2021-01-15 11:29:23 -08:00
Bernie Hackett
dea4b90193
PYTHON-2133 Drop install support for Python 2
2021-01-14 09:53:24 -08:00
Shane Harvey
b3c26a7f99
PYTHON-1316 Remove eval, system_js, and SystemJS ( #542 )
2021-01-11 18:41:36 -08:00
Shane Harvey
ac2f506ba2
PYTHON-2453 Add MongoDB Versioned API ( #536 )
...
Add pymongo.server_api.ServerApi and the MongoClient server_api option.
Support Unified Test Format version 1.1 (serverParameters in
runOnRequirements)
Skip dropRole tests due to SERVER-53499.
2021-01-11 18:16:00 -08:00
Shane Harvey
c96c5a9453
PYTHON-2388 Begin PyMongo 4.0 migration guide ( #540 )
2021-01-11 18:12:13 -08:00
Shane Harvey
86b40c195d
PYTHON-2462 Avoid connection storms: implement pool PAUSED state ( #531 )
...
Mark server unknown and clear the pool when background connections fail.
Eagerly evict threads from the wait queue when pool is paused. Evicted
threads will raise the following error:
AutoReconnect('localhost:27017: connection pool paused')
Introduce PoolClearedEvent and ConnectionPoolListener.pool_ready.
CMAP spec test changes:
- CMAP unit tests should not use real monitors
- Assert that CMAP threads complete all scheduled operations
2021-01-06 15:15:37 -08:00
Shane Harvey
d1fd3f7e98
PYTHON-2363 Rate limit new connection creations via maxConnecting ( #511 )
...
At most 2 connections can be in the pending state per connection pool.
The pending state covers all the work required to setup a new connection
including TCP, TLS, and MongoDB authentication. For example, if two
threads are currently creating connections, a third thread will wait for
either an existing connection to be checked back into the pool or for
one of the two threads to finish creating a connection.
The change reduces the likelihood of connection storms and improves the
driver's ability to reuse existing connections.
2020-11-23 15:55:54 -08:00
Shane Harvey
ce40d1191e
BUMP 4.0.dev0
2020-11-20 10:32:08 -08:00
Prashant Mital
1d651b9be8
BUMP 3.11.1 ( #516 )
2020-11-16 16:01:14 -08:00
Shane Harvey
17dca5c504
Revert "PYTHON-1915: Prohibit copying ClientSession objects ( #480 )"
...
This reverts commit 959039b213 .
2020-11-16 15:09:31 -08:00
Chris Cho
c92e5520b5
DOP-1671: update GTM code ( #507 )
2020-11-04 14:00:57 -08:00
Shane Harvey
b210bffc75
PYTHON-2344 Update TLS examples to use unified TLS URI options ( #504 )
2020-10-19 15:22:28 -07:00
Martin Uhrin
7f1644c6db
Added the mincePy ODM library to documented tools ( #502 )
2020-10-16 15:16:52 -07:00
Nick Loadholtes
1002938a8e
Fix maxIdleTimeMS typo in docs ( #503 )
2020-10-14 09:48:06 -07:00
Shane Harvey
1b97eddfbd
PYTHON-2262 Test Python 3.9 in Evergreen ( #485 )
2020-09-14 11:45:36 -07:00
ishmum123
959039b213
PYTHON-1915: Prohibit copying ClientSession objects ( #480 )
2020-08-21 11:10:40 -07:00
Shane Harvey
31949fb7e5
BUMP 3.11 (with proper changelog title)
2020-07-30 13:45:25 -07:00
Shane Harvey
9fa94db01a
BUMP 3.11 ( #476 )
2020-07-30 13:24:44 -07:00
Prashant Mital
ff327b3e31
PYTHON-2252 Add examples and documentation for new UUID behavior ( #467 )
2020-07-29 14:46:48 -07:00
Prashant Mital
9b69338ef4
BUMP 3.11.0rc1.dev0
2020-07-15 11:07:23 -07:00
Prashant Mital
63574b9360
BUMP 3.11.0rc0
2020-07-15 11:03:59 -07:00
Julius Park
f80c82453b
PYTHON-2076: Add example event loggers ( #449 )
...
Added example event loggers and documentation for them to make it easier for users to start using listeners in their code.
JIRA ticket: https://jira.mongodb.org/browse/PYTHON-2076
2020-07-09 21:32:25 -04:00
Shane Harvey
e3f40c30ad
PYTHON-2165 Deprecate MongoClient is_locked, fsync, and unlock helpers ( #459 )
2020-07-08 17:18:02 -07:00
Prashant Mital
426f5fdef7
PYTHON-2292 Fix failing doctest due to UuidRepresentation ( #458 )
...
PYTHON-2277 Remove UuidRepresentation DeprecationWarning
2020-07-08 15:45:25 -07:00
Prashant Mital
065001ef2e
PYTHON-2305 Cache postBatchResumeToken when an aggregate command returns an empty firstBatch ( #456 )
2020-07-08 14:51:17 -07:00
Shane Harvey
5d92b2f552
PYTHON-2243 Raise informative error message when attempting a GridFS operation in a transaction ( #454 )
2020-07-07 18:55:17 -07:00
Julius Park
67a23429ba
PYTHON-1787: add details to OperationFailure exception and NotMasterError ( #448 )
...
PYTHON-1787-add details to OperationFailure and NotMasterError by adding a __repr__ function
https://jira.mongodb.org/browse/PYTHON-1787
2020-06-30 12:30:28 -04:00
Shane Harvey
aeb0bd74de
BUMP 3.11.0b2.dev0
2020-06-09 10:04:03 -07:00
Shane Harvey
8fdda6857f
BUMP 3.11.0b1
2020-06-09 09:42:03 -07:00
Prashant Mital
0743c0b222
PYTHON-2121 add directConnection URI option
2020-06-08 15:11:55 -07:00
Shane Harvey
903643b3d0
PYTHON-2138 Use pymongo-auth-aws for MONGODB-AWS support
2020-06-05 15:50:26 -07:00
Prashant Mital
4be82828f9
PYTHON-2208 Revise issues and help sections of documentation
2020-06-05 11:04:18 -07:00
Prashant Mital
4760d07815
PYTHON-2152 Expand native UUID handling support; Implement UUID specification
2020-06-01 17:45:08 -07:00
Wan Bachtiar
7809376a46
PYTHON-2208 Update community links to be more specific ( #441 )
2020-04-27 11:54:02 -07:00
Prashant Mital
4398b4b7da
PYTHON-2201 Deprecate the Collection.reindex method
2020-04-21 18:23:51 -07:00
Shane Harvey
923e83cd1a
BUMP 3.11.0b1.dev0
2020-04-10 09:46:39 -07:00
Shane Harvey
c96220df0f
Update docs for 3.11.0b0
2020-04-06 17:42:51 -07:00
Chris Cho
e5ef8f4dfa
DOCSP-9413 Replace references to google groups with community forums ( #437 )
2020-03-16 16:13:36 -07:00
Prashant Mital
ce601190cf
PYTHON-2097 Deprecate oplogReplay find command option
2020-03-05 11:24:46 -08:00
Prashant Mital
e485c07109
PYTHON-2036 Update documentation and changelog to reflect expanded support for index hinting
2020-03-03 13:32:58 -08:00
Shane Harvey
e26dc96e31
PYTHON-2034 Support MONGODB-AWS authentication mechanism
...
Use botocore to perform the manual Signature Version 4 Signing Process.
Test MONGODB-AWS in Evergreen.
Properly unquote URI option values in authMechanismProperties and
readPreferenceTags.
2020-03-03 09:43:48 -08:00
Prashant Mital
651aa6aa98
PYTHON-2035: support for allowDiskUse in find() commands
2020-02-25 19:24:10 -08:00
Shane Harvey
a460725f6b
PYTHON-2019 Add support for validate command "background" option
2020-02-25 18:31:44 -08:00
Bernie Hackett
d46bd1671c
PYTHON-2093 Documentation for OCSP
2020-02-21 13:04:11 -08:00
Shane Harvey
c4b8aef1e8
PYTHON-2119 Fix doc tests caused by 4.4 mapReduce change
2020-02-11 09:37:53 -08:00
Shane Harvey
5a1cbd8f20
PYTHON-2073 Add NPS Survey to documentation
2020-02-10 14:23:27 -08:00
Shane Harvey
30667d1e00
PYTHON-2092 Avoid creating new connections during MongoClient.close
2020-01-02 16:30:26 -08:00
Kevin Albertson
fc26881f01
Fix typo in client side encryption examples ( #435 )
2019-12-23 16:38:33 -05:00
Tim Gates
2e36161e38
Fix simple typo: overidden -> overridden ( #432 )
2019-12-10 10:08:54 -08:00
Shane Harvey
a7c3738785
Update changelog for 3.10 release
2019-12-05 14:00:32 -08:00
paul fisher
6c4e1c9371
PYTHON-2061 bson: check for negative entry size in decode_file_iter ( #429 )
...
Raise InvalidBSON instead of ValueError when decode_file_iter reads an invalid
BSON object size.
2019-11-22 14:57:00 -08:00
Shane Harvey
ec4b02052d
PYTHON-1993 Use dochub for stable CSFLE documentation links
2019-11-21 12:15:12 -08:00
Shane Harvey
d0423d2d53
PYTHON-1993 Add client-side field level encryption documentation examples
...
Specify pymongocrypt<2.0.0 in setup.py for compatibility.
2019-11-20 15:42:32 -08:00
Prashant Mital
ef3df1663c
PYTHON-1918 Stop using BSON.encode and BSON.decode functions
2019-09-09 18:06:46 -07:00
Bernie Hackett
e152e9eafa
BUMP 3.9.0
2019-08-13 18:05:10 -07:00
Bernie Hackett
1a7502c08a
Fix up changelog and docs for 3.9.0 release
2019-08-13 14:19:29 -07:00
Prashant Mital
4800512c36
PYTHON-1839 Deprecate waitQueueMultiple option
2019-08-09 17:07:30 -07:00
Prashant Mital
62400e548d
PYTHON-1902 DNS resolution should honor connectTimeoutMS
2019-08-09 17:04:02 -07:00
Shane Harvey
59e3bcb66a
PYTHON-1883 Implement ClientEncryption class
2019-08-08 20:52:28 -07:00
Prashant Mital
78aa667f0f
PYTHON-1934 retryWrites=True with MMAPv1 storage engine should raise an actionable error
2019-08-08 13:24:46 -07:00
Prashant Mital
611c3f86b3
PYTHON-1677 Connections survive primary stepdown
2019-08-06 13:08:15 -07:00
Bernie Hackett
3bcdde34c9
PYTHON-1785 Add bson.encode and bson.decode
2019-07-30 11:52:03 -07:00
Shane Harvey
6d8c1ced70
PYTHON-1882 Add AutoEncryptionOpts
2019-07-29 16:05:20 -07:00
Prashant Mital
ddac30d2ff
PYTHON-1742 add postBatchResumeToken support
...
PYTHON-1815 add tests for postBatchResumeToken support
PYTHON-1845 clarify resume token used in resuming and getResumeToken
2019-07-25 17:18:35 -07:00
Bernie Hackett
e92e2b0efb
PYTHON-1648 Binary buffer protocol support
2019-07-18 08:41:40 -07:00
Bernie Hackett
7425153639
PYTHON-1665 Agg with $out always goes to primary
2019-07-16 14:20:50 -07:00
Bernie Hackett
7888ff08f3
PYTHON-1863 Call out backward breaking ObjectId changes
2019-07-16 13:05:38 -07:00
Shane Harvey
d279758228
BUMP 3.9.0b2.dev0
2019-06-16 12:20:16 -04:00
Shane Harvey
1535a72b7f
BUMP 3.9.0b1
2019-06-16 12:16:15 -04:00
Prashant Mital
aefd02a801
PYTHON-1798 Support pipelines in update commands
2019-06-13 20:26:02 -07:00
Prashant Mital
694a4a5d85
PYTHON-1866 Add support for $merge aggregation pipeline stage
2019-06-13 19:38:15 -07:00