Commit Graph

828 Commits

Author SHA1 Message Date
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