Rin
6585d9cb51
PYTHON-2442: Refactor: use _asdict() in _options_dict() ( #2670 )
...
Co-authored-by: Steven Silvester <steve.silvester@mongodb.com>
2025-12-30 10:41:37 -06:00
Noah Stapp
ad16d6e880
PYTHON-4431 - Remove ReadTheDocs Documentation in Favor of Official Docs ( #2459 )
2025-08-07 12:06:38 -04:00
Noah Stapp
bbb6f88fae
PYTHON-5257 - Turn on mypy disallow_any_generics ( #2456 )
2025-08-06 14:21:53 -04:00
Shane Harvey
32269aac1e
PYTHON-4885 Fix legacy extended JSON encoding of DatetimeMS ( #1986 )
2024-10-31 14:01:30 -07:00
Steven Silvester
351196b91b
PYTHON-4813 Update specification documentation links ( #1977 )
2024-10-30 15:46:52 -05:00
Steven Silvester
3ef565fa43
PYTHON-4796 Update type checkers and handle with_options typing ( #1880 )
2024-09-30 18:01:53 -05:00
Shane Harvey
a2059dc9cb
PYTHON-4663 Fix compatibility with dateutil timezones ( #1812 )
2024-08-28 14:20:55 -07: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
Shane Harvey
4c2e717b9f
PYTHON-4204 Optimize JSON decoding using lookup table to find $ keys ( #1512 )
2024-02-06 16:18:31 -08:00
ilukyanchikov
97b9a333c8
PYTHON-4179: Optimize JSON decoding performance by avoiding object_pairs_hook ( #1493 )
2024-02-05 13:59:14 -08:00
Shane Harvey
b8d6bfdf08
PYTHON-4144 Optimize json_util encoding performance using single dispatch table ( #1475 )
2024-01-18 11:43:36 -08:00
Shane Harvey
cd3f502de6
PYTHON-4143 Optimize JSON encoding of int, float, str, and None ( #1474 )
2024-01-12 12:59:15 -08:00
Shane Harvey
72663deb33
PYTHON-4142 json_util.default should always convert Int64 ( #1473 )
2024-01-12 10:57:54 -08:00
Noah Stapp
f67e9ae207
PYTHON-1374 Optimize json_util performance ( #1460 )
2024-01-11 16:44:38 -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
992d1507e7
PYTHON-4005 Replace flake8 and isort with ruff ( #1399 )
2023-10-19 11:56:22 -05:00
Steven Silvester
83ab612aa1
PYTHON-3932 Support mypy --strict testing in bson package ( #1362 )
2023-08-29 13:49:11 -05:00
Iris
c1d33831e8
PYTHON-3907 add --disallow-untyped-defs for mypy ( #1351 )
2023-08-10 11:08:36 -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
Steven Silvester
e9a6482c4d
PYTHON-3610 Add blacken-docs to pre-commit hook ( #1170 )
2023-03-14 15:37:45 -05:00
Julius Park
05845b8038
PYTHON-3562 Type annotation of bson.json_utils.loads is incorrect (only accepts str) ( #1152 )
2023-02-10 15:28:04 -08:00
Julius Park
b3099c62de
PYTHON-3558 Missing docs for JSONOptions ( #1143 )
2023-01-30 12:13:30 -08:00
Ben Warner
46673c3705
PYTHON-3379 Refactored DatetimeConversionOpts to DatetimeConversion ( #1031 )
2022-08-04 12:53:57 -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
a7579b02d2
PYTHON-3259 Improve migration guide for loads/JSONOptions/tz_aware ( #946 )
2022-05-10 11:05:59 -07:00
Steven Silvester
a0fe7c03af
PYTHON-3120 Set up flake8 linting ( #868 )
2022-02-17 06:44:08 -06:00
Steven Silvester
5578999a90
PYTHON-1834 Use a code formatter ( #852 )
2022-02-09 06:44:28 -06:00
Steven Silvester
52ed5a4135
PYTHON-3052 Add Typings to PyMongo Itself ( #829 )
2022-01-13 16:09:48 -06:00
Julius Park
70f7fe7542
PYTHON-3028 $regex as a field name does not allow for non-string values ( #807 )
2021-12-06 13:13:15 -08:00
Julius Park
23fe13fcba
PYTHON-1965 The bson package should not depend on the pymongo package ( #725 )
2021-09-15 12:56:18 -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
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
Julius Park
7a4b617b5d
PYTHON-2883 Regex decoding error tests in top.json have unexpected, invalid syntax ( #721 )
2021-09-09 18:32:53 -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
69c69a6bfb
PYTHON-2862 Remove versionchanged info for PyMongo <3.0 ( #709 )
2021-08-19 10:39:26 -07:00
Bernie Hackett
521f7b9af4
PYTHON-2133 Fix up docs
...
And finish deleting python 2 specific code.
2021-01-21 15:49:23 -08:00
Bernie Hackett
c70071df1d
PYTHON-2133 Remove Py2 compatibility from bson
2021-01-14 14:57:20 -08:00
Prashant Mital
4119d35d04
PYTHON-2440 Workaround namedtuple._asdict() bug on Python 3.4 ( #525 )
2020-11-24 12:11:22 -08:00
Prashant Mital
dc94ca628e
PYTHON-2361 Support parsing as extended JSON representation for subtype 4 binary ( #483 )
2020-09-09 17:24:29 -07:00
Prashant Mital
963759af33
PYTHON-2354 Add support for JSONOptions.with_options ( #482 )
2020-09-09 14:15:21 -07:00
Prashant Mital
f24e165336
PYTHON-2263 Respect UuidRepresentation.UNSPECIFIED when parsing $uuid fields in extended JSON ( #464 )
2020-07-13 11:03:02 -07:00
Prashant Mital
4760d07815
PYTHON-2152 Expand native UUID handling support; Implement UUID specification
2020-06-01 17:45:08 -07:00
Anders Kaseorg
bb18da769c
PYTHON-2001 Fix Python 3.8 SyntaxWarning: "is not" with a literal ( #425 )
...
Fixes this warning from Python 3.8:
bson/json_util.py:702: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if doc['$minKey'] is not 1:
bson/json_util.py:711: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if doc['$maxKey'] is not 1:
2019-10-24 14:08:08 -05:00
Shane Harvey
8855a510a8
PYTHON-1875 Fix parsing of json datetime without timezone or fractional seconds
...
{"$date": "2019-01-01T01:02:03"} is now parsed the same as
{"$date": "2019-01-01T01:02:03Z"},
{"$date": "2019-01-01T01:02:03.000"}, and
{"$date": "2019-01-01T01:02:03.000Z"}
2019-06-24 16:20:34 -07:00
Bernie Hackett
749c1a2f0b
PYTHON-1467 - PyMongo no longer supports Python 2.6
2018-07-02 15:15:43 -07:00
Bernie Hackett
507f954ed4
Update copyright dates
2017-12-01 17:23:39 -08:00
Bernie Hackett
410027c057
PYTHON-1387 - Improve detection of object_pairs_hook support
2017-09-30 09:28:09 -07:00
Shane Harvey
b7893b7ec4
3.5 changelog and documentation fixes.
2017-08-08 09:32:09 -07:00
Shane Harvey
6e022e0636
PYTHON-1297 Improve documentation for Extended JSON.
2017-08-07 17:14:34 -07:00