maleo-foundation 0.1.17__py3-none-any.whl → 0.1.19__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.
- maleo_foundation/managers/service.py +11 -4
- {maleo_foundation-0.1.17.dist-info → maleo_foundation-0.1.19.dist-info}/METADATA +1 -1
- {maleo_foundation-0.1.17.dist-info → maleo_foundation-0.1.19.dist-info}/RECORD +5 -5
- {maleo_foundation-0.1.17.dist-info → maleo_foundation-0.1.19.dist-info}/WHEEL +0 -0
- {maleo_foundation-0.1.17.dist-info → maleo_foundation-0.1.19.dist-info}/top_level.txt +0 -0
@@ -321,8 +321,12 @@ class ServiceManager:
|
|
321
321
|
self._http_client.initialize()
|
322
322
|
#* Initialize maleo clients
|
323
323
|
self._maleo_clients = MaleoClientManagers()
|
324
|
-
|
325
|
-
|
324
|
+
for client in self._maleo_client_manager_classes.__class__.__annotations__:
|
325
|
+
client_cls = getattr(self._maleo_client_manager_classes, client)
|
326
|
+
if client_cls is not None and issubclass(client_cls, MaleoClientManager):
|
327
|
+
cfg:MaleoClientConfiguration = getattr(self._configs.client.maleo, client)
|
328
|
+
client_instance = client_cls(**cfg.model_dump(), **self._log_config.model_dump())
|
329
|
+
setattr(self._maleo_clients, client, client_instance)
|
326
330
|
self._clients = ClientManagers(google=self._google_clients, http=self._http_client, maleo=self._maleo_clients)
|
327
331
|
|
328
332
|
@property
|
@@ -368,8 +372,11 @@ class ServiceManager:
|
|
368
372
|
self._clients.google.storage.dispose()
|
369
373
|
self._clients.google.secret.dispose()
|
370
374
|
await self._clients.http.dispose()
|
371
|
-
|
372
|
-
|
375
|
+
for client in self._maleo_clients.__class__.__annotations__:
|
376
|
+
client_instance = getattr(self._maleo_clients, client)
|
377
|
+
if client_instance is not None and isinstance(client_instance, MaleoClientManager):
|
378
|
+
await client_instance.dispose()
|
379
|
+
self._loggers.application.info("Service manager disposed successfully")
|
373
380
|
if self._loggers is not None:
|
374
381
|
self._loggers.application.dispose()
|
375
382
|
self._loggers.database.dispose()
|
@@ -30,7 +30,7 @@ maleo_foundation/expanded_types/service.py,sha256=q8jpKdbCbLWwH1UPQavKpVE14rC5rv
|
|
30
30
|
maleo_foundation/expanded_types/token.py,sha256=4fRTJw6W5MYq71NksNrWNi7qYHQ4_lQwfu9WxwrMipc,355
|
31
31
|
maleo_foundation/managers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
32
32
|
maleo_foundation/managers/db.py,sha256=Jf0w-9JOAG5X2quDxqqw6d2WUIX7MYGdlPGxWP0rxHs,4699
|
33
|
-
maleo_foundation/managers/service.py,sha256=
|
33
|
+
maleo_foundation/managers/service.py,sha256=pSTGbnuYpUwgKNRKjA_wcPDI5Nf-aWlRrluQ5n1tWB4,18065
|
34
34
|
maleo_foundation/managers/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
35
35
|
maleo_foundation/managers/client/base.py,sha256=K8AFV2MTZrC1jbTqxkx7eedmxodJirNIjoRXGGcppy4,1022
|
36
36
|
maleo_foundation/managers/client/http.py,sha256=dWFZlG1z4TERYBITReR5oSrlzvdhh2EtztVnsU8gCeA,2712
|
@@ -79,7 +79,7 @@ maleo_foundation/utils/logging.py,sha256=DuAaKQ1X7lB0y6udR-GF95BRKeluh0JoYN0K_jc
|
|
79
79
|
maleo_foundation/utils/query.py,sha256=ODQ3adOYQNj5E2cRW9ytbjBz56nEDcnfq8mQ6YZbCCM,4375
|
80
80
|
maleo_foundation/utils/formatter/__init__.py,sha256=iKf5YCbEdg1qKnFHyKqqcQbqAqEeRUf8mhI3v3dQoj8,78
|
81
81
|
maleo_foundation/utils/formatter/case.py,sha256=TmvvlfzGdC_omMTB5vAa40TZBxQ3hnr-SYeo0M52Rlg,1352
|
82
|
-
maleo_foundation-0.1.
|
83
|
-
maleo_foundation-0.1.
|
84
|
-
maleo_foundation-0.1.
|
85
|
-
maleo_foundation-0.1.
|
82
|
+
maleo_foundation-0.1.19.dist-info/METADATA,sha256=-oBDqYxQSufa8CRuYsHqIXBuTxhyqQ4HE9-l7Xur2N8,3190
|
83
|
+
maleo_foundation-0.1.19.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
84
|
+
maleo_foundation-0.1.19.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
|
85
|
+
maleo_foundation-0.1.19.dist-info/RECORD,,
|
File without changes
|
File without changes
|