Commit Graph

601 Commits

Author SHA1 Message Date
Jeffrey A. Clark
166821f22c
PYTHON-5205 Replace http with https in doc links (#2204) 2025-03-14 21:37:11 -04:00
Steven Silvester
4e1035ece8
PYTHON-4747 Sync collection.py to master 2024-09-10 12:16:03 -05:00
Steven Silvester
6bdf583f3d
PYTHON-4747 Rename pymongo/collection.py to pymongo/synchronous/collection.py 2024-09-10 12:16:03 -05:00
Shane Harvey
724186700f
PYTHON-3741 Fix rendering of CodecOptions links in docs (#1595) 2024-04-16 11:29:27 -07:00
Steven Silvester
c154c6b67b
PYTHON-4037 Avoid Appending Write/Read Concern in Atlas Search Index Helper Commands (#1570) 2024-04-03 06:17:51 -05:00
Steven Silvester
44e47304ff
PYTHON-4300 Forward comment argument in list_search_indexes (#1569) 2024-04-01 16:41:55 -05:00
Shane Harvey
f757fe39cc
PYTHON-4297 Allow passing arbitrary options to create_search_index/SearchIndexModel (#1561) 2024-03-26 10:18:54 -07:00
Noah Stapp
17c64a6dd8
PYTHON-4208 [Vector Search GA] Add support for types in search index creation (#1544) 2024-03-15 13:04:47 -07:00
Steven Silvester
158e6c6574
PYTHON-4218 Update links to change-streams specification (#1525) 2024-02-16 08:37:03 -06:00
Noah Stapp
ebb94b669e
PYTHON-3457 Easier debugging with standardized logging (#1515)
PYTHON-3458 Add command logging.
PYTHON-3459 Add server selection logging.
PYTHON-3473 Add connection pool logging.
PYTHON-4167 Add documentation and examples.

Co-authored-by: sleepyStick <itsirisho@gmail.com>
2024-02-15 11:35:08 -08:00
Jari Van Melckebeke
5cd4ca319b
PYTHON-4158 Fix typo in create_index docstring (#1483) 2024-01-23 08:24:20 -06:00
Jib
60d0761527
PYTHON-2884: Replaced SON usage in all internal classes and commands (#1426) 2023-12-19 15:42:23 -08:00
Steven Silvester
6537415da7
PYTHON-3605 Move type annotations to parameter list in rendered docs (#1441) 2023-11-27 09:24:00 -06:00
Steven Silvester
7936708d97
PYTHON-4014 Apply QA Suggestions from Scientific Python Library Development Guide (#1414) 2023-11-01 19:37:22 -05:00
Steven Silvester
992d1507e7
PYTHON-4005 Replace flake8 and isort with ruff (#1399) 2023-10-19 11:56:22 -05:00
Noah Stapp
81c759a3a0
PYTHON-2878 Allow passing dict to sort/create_index/hint (#1389) 2023-10-16 14:36:27 -07:00
Steven Silvester
6f4e617e6d
PYTHON-3905 Use from __future__ import annotations in all files (#1370)
* PYTHON-3905 Use from __future__ import annotations in all files

* cleanup

* cleanup

* cleanup
2023-09-11 10:49:24 -05:00
Iris
0d44783edd
PYTHON-3821 use overload pattern for _DocumentType (#1352) 2023-08-10 16:46:41 -07:00
Iris
c1d33831e8
PYTHON-3907 add --disallow-untyped-defs for mypy (#1351) 2023-08-10 11:08:36 -07:00
Iris
e0b8b36f41
PYTHON-3813 add types to pool.py (#1318) 2023-08-04 17:28:30 -07:00
Iris
b7796e1794
PYTHON-3807 add types to mongo_client.py (#1315) 2023-08-01 16:49:33 -07:00
Noah Stapp
c88ae79e58
PYTHON-3879 Rename SocketInfo to Connection (#1329) 2023-07-28 10:04:16 -07:00
Soroush Mahdavi
c6a6ea6066
PYTHON-3511 Remove Python 2 references from the docs (#1161)
Co-authored-by: Nicky Lee <40870742+iceypotato@users.noreply.github.com>
Co-authored-by: DanielZavala11 <89770626+DanielZavala11@users.noreply.github.com>
Co-authored-by: Shane Harvey <shane.harvey@mongodb.com>
2023-07-14 15:30:14 -04:00
Steven Silvester
1a249386cf
PYTHON-3723 Add search index management helpers (#1224) 2023-07-14 09:51:19 -05:00
Iris
966a5adc4a
PYTHON-3778 add types to common.py (#1287) 2023-07-05 08:57:42 -07:00
Iris
c8133cdbe3
PYTHON-3776 add types to collection.py (#1283) 2023-07-03 16:08:27 -07:00
Noah Stapp
601d1ec3a1
PYTHON-3737 Use __future__ annotations for forward reference type hints (#1234) 2023-06-15 12:54:29 -07:00
Shane Harvey
0092b0af79
PYTHON-2504 Run pyupgrade 3.4.0 and ruff 0.0.265 (#1196)
pyupgrade --py37-plus bson/*.py pymongo/*.py gridfs/*.py test/*.py tools/*.py test/*/*.py
ruff --fix-only --select ALL --fixable ALL --target-version py37 --line-length=100 --unfixable COM812,D400,D415,ERA001,RUF100,SIM108,D211,D212,SIM105,SIM,PT,ANN204,EM bson/*.py pymongo/*.py gridfs/*.py test/*.py test/*/*.py
2023-05-11 15:27:17 -07: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
14e8b011c2
PYTHON-3700 Clean up docs for create_index/drop_indexes (#1201) 2023-05-02 13:45:55 -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
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
a3720d9cea
PYTHON-3568 Intellisense highlights multiple PyMongo methods because of CodecOptions (#1139) 2023-01-25 09:41:23 -06:00
Steven Silvester
ee2badff75
PYTHON-3524 Support passing list of strings to create_index (#1121) 2022-11-29 05:27:45 -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
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
Julius Park
c874c96e29
PYTHON-3232 Improved change stream event visibility for C2C Replication (#1062) 2022-09-27 15:31:20 -07:00
Shane Harvey
935f926bd9
PYTHON-3362 Ignore wtimeout when timeoutMS or timeout() is configured (#1013)
Apply client timeoutMS to gridfs operations.
2022-07-19 17:46:09 -07:00
Shane Harvey
667046129a
PYTHON-3289 Apply client timeoutMS to every operation (#1011) 2022-07-18 23:22:43 -07:00
Shane Harvey
5c38676d53
PYTHON-3359 Remove Database and Collection timeout override (#1009)
Remove MongoClient.timeout in favor of client.options.timeout.
2022-07-18 19:54:45 -05:00
Ben Warner
922e63d6e0
PYTHON-3093 Continuation of #972 (#976) 2022-06-16 11:40:09 -07:00
Julius Park
02a9df69f6
PYTHON-3227 Clustered Indexes for all Collections (#971) 2022-06-15 13:16:22 -07:00
Ben Warner
43c2062305
PYTHON-3093 Change streams support for user-facing PIT pre- and post-images (#972) 2022-06-15 11:22:55 -07: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
Julius Park
6b088ffa4e
PYTHON-3241 Add Queryable Encryption API to AutoEncryptionOpts (#957) 2022-06-06 12:33:31 -04: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
Julius Park
05b55e88df
PYTHON-3038 The doc should clarify that the resulting documents that are produced with upserts are constructed from both the filter and the update params (#933) 2022-05-02 06:21:44 -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