internal 1.0.116__py3-none-any.whl → 1.0.118__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 internal might be problematic. Click here for more details.
internal/base_factory.py
CHANGED
|
@@ -108,12 +108,16 @@ class BaseFactory(metaclass=ABCMeta):
|
|
|
108
108
|
debug=self.get_app_config().DEBUG, version=self.API_VERSION, lifespan=lifespan, docs_url=None,
|
|
109
109
|
redoc_url=None)
|
|
110
110
|
|
|
111
|
+
self.__load_local_config()
|
|
112
|
+
app.state.config = self.get_app_config()
|
|
113
|
+
self.__setup_main_logger(app, level=logging.DEBUG)
|
|
114
|
+
app.state.aws_session = aws.init_app(app)
|
|
115
|
+
self.__setup_cloud_log(app)
|
|
116
|
+
self.__load_cloud_config(app)
|
|
117
|
+
|
|
118
|
+
if self.get_app_config().LOGGER_REQUEST_ENABLE:
|
|
119
|
+
app.add_middleware(LogRequestMiddleware, logger=app.state.logger)
|
|
111
120
|
|
|
112
|
-
app.add_middleware(
|
|
113
|
-
CorrelationIdMiddleware,
|
|
114
|
-
header_name=CORRELATION_ID_HEADER_KEY_NAME,
|
|
115
|
-
update_request_header=True
|
|
116
|
-
)
|
|
117
121
|
|
|
118
122
|
origins = ["*"]
|
|
119
123
|
|
|
@@ -126,15 +130,11 @@ class BaseFactory(metaclass=ABCMeta):
|
|
|
126
130
|
expose_headers=[CORRELATION_ID_HEADER_KEY_NAME]
|
|
127
131
|
)
|
|
128
132
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
self.__load_cloud_config(app)
|
|
135
|
-
|
|
136
|
-
if self.get_app_config().LOGGER_REQUEST_ENABLE:
|
|
137
|
-
app.add_middleware(LogRequestMiddleware, logger=app.state.logger)
|
|
133
|
+
app.add_middleware(
|
|
134
|
+
CorrelationIdMiddleware,
|
|
135
|
+
header_name=CORRELATION_ID_HEADER_KEY_NAME,
|
|
136
|
+
update_request_header=True
|
|
137
|
+
)
|
|
138
138
|
|
|
139
139
|
mongodb = database.MongoDB(self.get_app_config().DATABASE_USERNAME, self.get_app_config().DATABASE_PASSWORD,
|
|
140
140
|
self.get_app_config().DATABASE_HOST, self.get_app_config().DATABASE_PORT,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
internal/base_config.py,sha256=CtGIJhMSYsJQxvfkr5rZxuuXpGUY9RYyAf-p8MDv2pM,2142
|
|
3
|
-
internal/base_factory.py,sha256=
|
|
3
|
+
internal/base_factory.py,sha256=oT7ACVMAgrJh1kQ7H8Zc7r3BgSAj2BnKfweqA_9f_Lg,11309
|
|
4
4
|
internal/cache_redis.py,sha256=YMsrUXHd-wKjsjsboD79Y-ciBBowzT6aAjdJZ36-yEY,697
|
|
5
5
|
internal/common_enum/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
internal/common_enum/contact_type.py,sha256=7QkTQ71UxpaT1YHI40FpjmLz3r-UbRU-sd0m5ajH1as,142
|
|
@@ -32,6 +32,6 @@ internal/model/base_model.py,sha256=NWjysNOp2MfXvAHGFqaQA_l8ZfTFvJbXQPUPuOXN_2g,
|
|
|
32
32
|
internal/model/operate.py,sha256=QSM6yXYXpJMwrqkUGEWZLrEBaUgqHwVHY_Fi4S42hKc,3190
|
|
33
33
|
internal/utils.py,sha256=i6YZdiXsiWnOjRdlJ6afNCGpyMe3Uo9mhm3xlQBy3Ls,2824
|
|
34
34
|
internal/validator_utils.py,sha256=5ZLcNIgw1hvkYOj1f6gS9AYxe7Y3ufW9FyDxUS7FsMQ,1226
|
|
35
|
-
internal-1.0.
|
|
36
|
-
internal-1.0.
|
|
37
|
-
internal-1.0.
|
|
35
|
+
internal-1.0.118.dist-info/METADATA,sha256=jcXJvM5vpteGOwr02RQoJFo-GL_lge_-RfYCX2PO_Bg,809
|
|
36
|
+
internal-1.0.118.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
|
|
37
|
+
internal-1.0.118.dist-info/RECORD,,
|
|
File without changes
|