fastapi-factory-utilities 0.2.8__py3-none-any.whl → 0.2.10__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.
Potentially problematic release.
This version of fastapi-factory-utilities might be problematic. Click here for more details.
- fastapi_factory_utilities/core/plugins/odm_plugin/builder.py +7 -1
- fastapi_factory_utilities/core/plugins/opentelemetry_plugin/builder.py +2 -2
- {fastapi_factory_utilities-0.2.8.dist-info → fastapi_factory_utilities-0.2.10.dist-info}/METADATA +2 -1
- {fastapi_factory_utilities-0.2.8.dist-info → fastapi_factory_utilities-0.2.10.dist-info}/RECORD +7 -7
- {fastapi_factory_utilities-0.2.8.dist-info → fastapi_factory_utilities-0.2.10.dist-info}/LICENSE +0 -0
- {fastapi_factory_utilities-0.2.8.dist-info → fastapi_factory_utilities-0.2.10.dist-info}/WHEEL +0 -0
- {fastapi_factory_utilities-0.2.8.dist-info → fastapi_factory_utilities-0.2.10.dist-info}/entry_points.txt +0 -0
|
@@ -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(
|
|
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
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
from typing import Any, Self
|
|
4
4
|
|
|
5
|
-
from opentelemetry.exporter.otlp.proto.
|
|
6
|
-
from opentelemetry.exporter.otlp.proto.
|
|
5
|
+
from opentelemetry.exporter.otlp.proto.grpc.metric_exporter import OTLPMetricExporter
|
|
6
|
+
from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter
|
|
7
7
|
from opentelemetry.metrics import set_meter_provider
|
|
8
8
|
from opentelemetry.propagate import set_global_textmap
|
|
9
9
|
from opentelemetry.propagators.b3 import B3MultiFormat
|
{fastapi_factory_utilities-0.2.8.dist-info → fastapi_factory_utilities-0.2.10.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: fastapi_factory_utilities
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.10
|
|
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
|
|
@@ -21,6 +21,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
21
21
|
Requires-Dist: beanie (>=1.27.0,<2.0.0)
|
|
22
22
|
Requires-Dist: fastapi (>=0.115.4,<0.116.0)
|
|
23
23
|
Requires-Dist: httpx (>=0.28.1,<0.29.0)
|
|
24
|
+
Requires-Dist: opentelemetry-exporter-otlp-proto-grpc (>=1.26.0,<2.0.0)
|
|
24
25
|
Requires-Dist: opentelemetry-exporter-otlp-proto-http (>=1.26.0,<2.0.0)
|
|
25
26
|
Requires-Dist: opentelemetry-instrumentation-fastapi (>=0.49b1,<0.50)
|
|
26
27
|
Requires-Dist: opentelemetry-instrumentation-pymongo (>=0.49b2,<0.50)
|
{fastapi_factory_utilities-0.2.8.dist-info → fastapi_factory_utilities-0.2.10.dist-info}/RECORD
RENAMED
|
@@ -20,14 +20,14 @@ 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=
|
|
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
|
|
27
27
|
fastapi_factory_utilities/core/plugins/odm_plugin/exceptions.py,sha256=acnKJB0lGAzDs-7-LjBap8shjP3iV1a7dw7ouPVF27o,551
|
|
28
28
|
fastapi_factory_utilities/core/plugins/odm_plugin/repositories.py,sha256=5hZ5Cvdqqlnb4NITWlrg_o078B4U0U61MjAXG3VxcH8,8747
|
|
29
29
|
fastapi_factory_utilities/core/plugins/opentelemetry_plugin/__init__.py,sha256=UsXPjiAASn5GIHW8vrF32mklxGNq8ajILV-ty4K1Tbs,4371
|
|
30
|
-
fastapi_factory_utilities/core/plugins/opentelemetry_plugin/builder.py,sha256=
|
|
30
|
+
fastapi_factory_utilities/core/plugins/opentelemetry_plugin/builder.py,sha256=zBluxWpanAdNtLx6pv1kLEKo0Yy19fmSPbvFGmDMDZo,9838
|
|
31
31
|
fastapi_factory_utilities/core/plugins/opentelemetry_plugin/configs.py,sha256=4mMa5SrmnPY1R_gVFRtFhi9WNaTGEGZL5iNNhyjcZQ0,3448
|
|
32
32
|
fastapi_factory_utilities/core/plugins/opentelemetry_plugin/exceptions.py,sha256=CpsHayfQpP0zghN8y5PP6TBy-cXhHoNxBR--I86gAdE,327
|
|
33
33
|
fastapi_factory_utilities/core/plugins/opentelemetry_plugin/helpers.py,sha256=qpTIzX67orJz7vy6SBIwRs24omMBoToJkhpurZRjPuk,1533
|
|
@@ -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.
|
|
68
|
-
fastapi_factory_utilities-0.2.
|
|
69
|
-
fastapi_factory_utilities-0.2.
|
|
70
|
-
fastapi_factory_utilities-0.2.
|
|
71
|
-
fastapi_factory_utilities-0.2.
|
|
67
|
+
fastapi_factory_utilities-0.2.10.dist-info/LICENSE,sha256=iO1nLzMMst6vEiqgSUrfrbetM7b0bvdzXhbed5tqG8o,1074
|
|
68
|
+
fastapi_factory_utilities-0.2.10.dist-info/METADATA,sha256=C8V21eciWOXNOZPNxtCojuJIJlO44mm6I-wqogX9Y0M,3387
|
|
69
|
+
fastapi_factory_utilities-0.2.10.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
70
|
+
fastapi_factory_utilities-0.2.10.dist-info/entry_points.txt,sha256=IK0VcBexXo4uXQmTrbfhhnnfq4GmXPRn0GBB8hzlsq4,101
|
|
71
|
+
fastapi_factory_utilities-0.2.10.dist-info/RECORD,,
|
{fastapi_factory_utilities-0.2.8.dist-info → fastapi_factory_utilities-0.2.10.dist-info}/LICENSE
RENAMED
|
File without changes
|
{fastapi_factory_utilities-0.2.8.dist-info → fastapi_factory_utilities-0.2.10.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|