maleo-foundation 0.3.66__py3-none-any.whl → 0.3.67__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.
@@ -1,5 +1,6 @@
1
1
  from fastapi import FastAPI, APIRouter
2
2
  from fastapi.exceptions import RequestValidationError
3
+ from google.cloud import pubsub_v1
3
4
  from google.oauth2.service_account import Credentials
4
5
  from redis.asyncio.client import Redis
5
6
  from redis.exceptions import RedisError
@@ -72,6 +73,7 @@ class ServiceManager:
72
73
  self._load_keys()
73
74
  self._initialize_loggers()
74
75
  self._initialize_database()
76
+ self._initialize_publisher()
75
77
  self._initialize_foundation()
76
78
 
77
79
  @property
@@ -224,6 +226,13 @@ class ServiceManager:
224
226
  def database(self) -> DatabaseManager:
225
227
  return self._database
226
228
 
229
+ def _initialize_publisher(self) -> None:
230
+ self._publisher = pubsub_v1.PublisherClient()
231
+
232
+ @property
233
+ def publisher(self) -> pubsub_v1.PublisherClient:
234
+ return self._publisher
235
+
227
236
  def _initialize_foundation(self) -> None:
228
237
  self._foundation = MaleoFoundationClientManager(
229
238
  log_config=self._log_config, service_key=self._settings.SERVICE_KEY
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.3.66
3
+ Version: 0.3.67
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -36,7 +36,7 @@ maleo_foundation/managers/configuration.py,sha256=Zc397mT3Qn1Q_gDeuDVKl5YA3bSM-o
36
36
  maleo_foundation/managers/credential.py,sha256=um1M45deBEzTVfsUcpAtKEp3Rb_dH1qQrr8abkG_GeU,3057
37
37
  maleo_foundation/managers/db.py,sha256=y0rQIg-vohhFUtck3v1LCdXov7XYjy9PFiCsVtcg8VI,6496
38
38
  maleo_foundation/managers/middleware.py,sha256=Uglwt4X3MauKtBvbPTyHl0-32od3IN6AYYUtiUCoV9I,2464
39
- maleo_foundation/managers/service.py,sha256=YRG1cLc7yGytDXzOe-btKJ5K0YRHJfkgfGF3D5h3ty4,11795
39
+ maleo_foundation/managers/service.py,sha256=ebmKAXC02R4q_ZXXKCGgQm_SLMzLEKOleZZlD-z5N0s,12067
40
40
  maleo_foundation/managers/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
41
41
  maleo_foundation/managers/client/base.py,sha256=iM5xZjLm5VQqqpiYcba-rifW0LgkVd-gRTE6XwdOFqY,4369
42
42
  maleo_foundation/managers/client/maleo.py,sha256=aNh3I9EsxeD2rqx5WaXbZ5fjyyXVzvppHJiC98jJYfM,3163
@@ -137,7 +137,7 @@ maleo_foundation/utils/loaders/credential/__init__.py,sha256=g-cAxkTE2EtHaG8Tv52
137
137
  maleo_foundation/utils/loaders/credential/google.py,sha256=GCJl-bsKSSxoE_ERAkIzRrRNIbIEeqYOhHwzFuBr0mk,6576
138
138
  maleo_foundation/utils/loaders/key/__init__.py,sha256=RfqIbUxkdlx1xrbzJZPD_JHiRFNFLRuQs8JoUPCGCv4,108
139
139
  maleo_foundation/utils/loaders/key/rsa.py,sha256=UXcP0rr4QVacTsHLNQuU05wcow5CHWz-JW-zsVxlbPs,4121
140
- maleo_foundation-0.3.66.dist-info/METADATA,sha256=4NJIYuPP7pJbPrmI04VLqpmE0SGH9WloO9RjQlbNYkc,4150
141
- maleo_foundation-0.3.66.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
142
- maleo_foundation-0.3.66.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
143
- maleo_foundation-0.3.66.dist-info/RECORD,,
140
+ maleo_foundation-0.3.67.dist-info/METADATA,sha256=peuHcWYQ3vASvl2NDm1ouG-g9I-BOpNnx3_9MSV2GOs,4150
141
+ maleo_foundation-0.3.67.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
142
+ maleo_foundation-0.3.67.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
143
+ maleo_foundation-0.3.67.dist-info/RECORD,,