fastapi-factory-utilities 0.2.8__py3-none-any.whl → 0.2.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,7 @@
2
2
 
3
3
  from typing import Any, ClassVar, Self
4
4
 
5
+ from bson import CodecOptions
5
6
  from motor.motor_asyncio import AsyncIOMotorClient, AsyncIOMotorDatabase
6
7
  from pymongo.server_api import ServerApi, ServerApiVersion
7
8
  from structlog.stdlib import get_logger
@@ -216,7 +217,12 @@ class ODMBuilder:
216
217
  "ODM client is not set. Provide the ODM client using " "build_client method or through parameter."
217
218
  )
218
219
 
219
- self._odm_database = self._odm_client.get_database(name=database_name)
220
+ self._odm_database = self._odm_client.get_database(
221
+ name=database_name,
222
+ codec_options=CodecOptions( # pyright: ignore[reportUnknownArgumentType]
223
+ tz_aware=True,
224
+ ),
225
+ )
220
226
 
221
227
  return self
222
228
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: fastapi_factory_utilities
3
- Version: 0.2.8
3
+ Version: 0.2.9
4
4
  Summary: Consolidate libraries and utilities to create microservices in Python with FastAPI, Beanie, Httpx, AioPika and OpenTelemetry.
5
5
  License: MIT
6
6
  Keywords: python,fastapi,beanie,httpx,opentelemetry,microservices
@@ -20,7 +20,7 @@ fastapi_factory_utilities/core/plugins/__init__.py,sha256=W-BCkqP0xG980980z3mc8T
20
20
  fastapi_factory_utilities/core/plugins/example/__init__.py,sha256=GF69IygLXxzrCh7VryekEWun663kKBhWtRS3w-1tzBc,1030
21
21
  fastapi_factory_utilities/core/plugins/httpx_plugin/__init__.py,sha256=P5FUyv7mQr8RZWQ8ifkoK8GXvqSI71q2b2dm-ag2JhQ,1028
22
22
  fastapi_factory_utilities/core/plugins/odm_plugin/__init__.py,sha256=L6iZW7beZLpvXbcXoTjP6iALEwWWymworb6Mok72s2w,5741
23
- fastapi_factory_utilities/core/plugins/odm_plugin/builder.py,sha256=3B5EgY8deS_dr9NYZbeJq9cibPs65kN0Ogg-1yecF3s,8547
23
+ fastapi_factory_utilities/core/plugins/odm_plugin/builder.py,sha256=fzaG2pMUkXTwX7YUYQYtYhZPyyaVOkzsvXDEmQnd7XI,8732
24
24
  fastapi_factory_utilities/core/plugins/odm_plugin/configs.py,sha256=zQoJC1wLNyq2pZyFhl0bKeNsTl4y_4_82BHCCaOEjCQ,331
25
25
  fastapi_factory_utilities/core/plugins/odm_plugin/depends.py,sha256=OcLsfTLzMBk_xFV6qsMy_-qFkiphEbbEuaHUooagxg8,730
26
26
  fastapi_factory_utilities/core/plugins/odm_plugin/documents.py,sha256=BFQYHxHBmTacJRfhZi2OffvT_RAFvAAiDVQAa_d6Y7w,1141
@@ -64,8 +64,8 @@ fastapi_factory_utilities/example/models/books/repository.py,sha256=7K63uAsSEGZ2
64
64
  fastapi_factory_utilities/example/services/books/__init__.py,sha256=Z06yNRoA7Zg3TGN-Q9rrvJg6Bbx-qJw661MVwukV6vQ,148
65
65
  fastapi_factory_utilities/example/services/books/services.py,sha256=-x7d4hotUWLzWo5uImMjFmtNcSTHwWv2bfttIbYYKbA,5380
66
66
  fastapi_factory_utilities/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
67
- fastapi_factory_utilities-0.2.8.dist-info/LICENSE,sha256=iO1nLzMMst6vEiqgSUrfrbetM7b0bvdzXhbed5tqG8o,1074
68
- fastapi_factory_utilities-0.2.8.dist-info/METADATA,sha256=syVYdHYH5SA0XWbZLjyb1f-k3WF0swXa1wuMYlUBMZU,3314
69
- fastapi_factory_utilities-0.2.8.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
70
- fastapi_factory_utilities-0.2.8.dist-info/entry_points.txt,sha256=IK0VcBexXo4uXQmTrbfhhnnfq4GmXPRn0GBB8hzlsq4,101
71
- fastapi_factory_utilities-0.2.8.dist-info/RECORD,,
67
+ fastapi_factory_utilities-0.2.9.dist-info/LICENSE,sha256=iO1nLzMMst6vEiqgSUrfrbetM7b0bvdzXhbed5tqG8o,1074
68
+ fastapi_factory_utilities-0.2.9.dist-info/METADATA,sha256=PCv3Kzn1lJ0AFAIRFrL2Y3WtB20_ktF_VAtq2XZH6AM,3314
69
+ fastapi_factory_utilities-0.2.9.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
70
+ fastapi_factory_utilities-0.2.9.dist-info/entry_points.txt,sha256=IK0VcBexXo4uXQmTrbfhhnnfq4GmXPRn0GBB8hzlsq4,101
71
+ fastapi_factory_utilities-0.2.9.dist-info/RECORD,,