fastapi-factory-utilities 0.3.8__py3-none-any.whl → 0.3.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.

@@ -88,8 +88,15 @@ class ApplicationGenericBuilder(Generic[T]):
88
88
  config_class=self._application_class.CONFIG_CLASS,
89
89
  ).build()
90
90
 
91
- def build(self) -> T:
92
- """Build the application."""
91
+ def build(self, **kwargs: Any) -> T:
92
+ """Build the application.
93
+
94
+ Args:
95
+ **kwargs: The keyword arguments to pass to the application.
96
+
97
+ Returns:
98
+ T: The application.
99
+ """
93
100
  # Plugin manager
94
101
  if self._plugin_manager is None:
95
102
  self._plugin_manager = PluginManager()
@@ -104,6 +111,7 @@ class ApplicationGenericBuilder(Generic[T]):
104
111
  root_config=self._root_config,
105
112
  plugin_manager=self._plugin_manager,
106
113
  fastapi_builder=self._fastapi_builder,
114
+ **kwargs,
107
115
  )
108
116
  application.setup()
109
117
  return application
@@ -117,7 +125,7 @@ class ApplicationGenericBuilder(Generic[T]):
117
125
  """Build the application and serve it with Uvicorn."""
118
126
  uvicorn_utils: UvicornUtils = self._uvicorn_utils or self.build_as_uvicorn_utils()
119
127
 
120
- setup_log(mode=LogModeEnum.CONSOLE)
128
+ setup_log(mode=LogModeEnum.CONSOLE, logging_config=self._root_config.logging)
121
129
 
122
130
  try:
123
131
  uvicorn_utils.serve()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: fastapi_factory_utilities
3
- Version: 0.3.8
3
+ Version: 0.3.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
@@ -7,7 +7,7 @@ fastapi_factory_utilities/core/api/v1/sys/health.py,sha256=IF51Z1seOFn91m3FC57U8
7
7
  fastapi_factory_utilities/core/api/v1/sys/readiness.py,sha256=xIY8pQLShU7KWRtlOUK5gTDyZ8aB1KBvLczC6boT-tg,1711
8
8
  fastapi_factory_utilities/core/app/__init__.py,sha256=IHHkcu3t-fX8vxQk12A36cE-yTjGn_PInDpL_OlRSE8,596
9
9
  fastapi_factory_utilities/core/app/application.py,sha256=WrDXh00r_jzQTtZGeFO43lIzvDraplitejTaSJj_uFE,5091
10
- fastapi_factory_utilities/core/app/builder.py,sha256=VbThqoI1qWnADwPQ61D774oNZ5d6OMxW0tyXr_Yz5E4,4503
10
+ fastapi_factory_utilities/core/app/builder.py,sha256=XKtJuRxvaqzNdhfNXGkyyxEH4MkZCgAUjkqYnOws8n0,4728
11
11
  fastapi_factory_utilities/core/app/config.py,sha256=81KYoxB14TX05jMWujPNjLI1BXkvMnUyw2VgF7nJIE0,7063
12
12
  fastapi_factory_utilities/core/app/enums.py,sha256=X1upnaehYU0eHExXTde5xsH-pI9q7HZDNsOEF5PApdg,226
13
13
  fastapi_factory_utilities/core/app/exceptions.py,sha256=tQDf0_4j5xgCbku7TL7JaZGs3_bjsWG2YLBCydQJpPw,664
@@ -71,8 +71,8 @@ fastapi_factory_utilities/example/models/books/repository.py,sha256=7K63uAsSEGZ2
71
71
  fastapi_factory_utilities/example/services/books/__init__.py,sha256=Z06yNRoA7Zg3TGN-Q9rrvJg6Bbx-qJw661MVwukV6vQ,148
72
72
  fastapi_factory_utilities/example/services/books/services.py,sha256=-x7d4hotUWLzWo5uImMjFmtNcSTHwWv2bfttIbYYKbA,5380
73
73
  fastapi_factory_utilities/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
74
- fastapi_factory_utilities-0.3.8.dist-info/LICENSE,sha256=iO1nLzMMst6vEiqgSUrfrbetM7b0bvdzXhbed5tqG8o,1074
75
- fastapi_factory_utilities-0.3.8.dist-info/METADATA,sha256=3sOK8wBO_jSGoJ5yQgMgLHAo5Zv-sgCc0ZEUgWzAcaE,3478
76
- fastapi_factory_utilities-0.3.8.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
77
- fastapi_factory_utilities-0.3.8.dist-info/entry_points.txt,sha256=IK0VcBexXo4uXQmTrbfhhnnfq4GmXPRn0GBB8hzlsq4,101
78
- fastapi_factory_utilities-0.3.8.dist-info/RECORD,,
74
+ fastapi_factory_utilities-0.3.10.dist-info/LICENSE,sha256=iO1nLzMMst6vEiqgSUrfrbetM7b0bvdzXhbed5tqG8o,1074
75
+ fastapi_factory_utilities-0.3.10.dist-info/METADATA,sha256=qDMLKgH6OIqvbg5cR6jErThx-6F66YbdkGrwiUzqufM,3479
76
+ fastapi_factory_utilities-0.3.10.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
77
+ fastapi_factory_utilities-0.3.10.dist-info/entry_points.txt,sha256=IK0VcBexXo4uXQmTrbfhhnnfq4GmXPRn0GBB8hzlsq4,101
78
+ fastapi_factory_utilities-0.3.10.dist-info/RECORD,,