maleo-foundation 0.1.12__py3-none-any.whl → 0.1.14__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.
@@ -8,6 +8,7 @@ class ClientManager:
8
8
  self._logs_dir = logs_dir
9
9
  self._google_cloud_logging = google_cloud_logging
10
10
  self._initialize_logger()
11
+ self._logger.info("Initializing client manager")
11
12
 
12
13
  def _initialize_logger(self) -> None:
13
14
  self._logger = ClientLogger(logs_dir=self._logs_dir, client_key=self._key, google_cloud_logging=self._google_cloud_logging)
@@ -16,6 +16,7 @@ class GoogleSecretManager(GoogleClientManager):
16
16
  credentials_path=credentials_path
17
17
  )
18
18
  self._client = secretmanager.SecretManagerServiceClient(credentials=self._credentials)
19
+ self._logger.info("Client manager initialized successfully")
19
20
 
20
21
  @property
21
22
  def client(self) -> secretmanager.SecretManagerServiceClient:
@@ -24,6 +24,7 @@ class GoogleCloudStorage(GoogleClientManager):
24
24
  if self._bucket is None:
25
25
  self._client.close()
26
26
  raise ValueError(f"Bucket '{self._bucket_name}' does not exist.")
27
+ self._logger.info("Client manager initialized successfully")
27
28
 
28
29
  @property
29
30
  def bucket_name(self) -> str:
@@ -313,8 +313,8 @@ class ServiceManager:
313
313
 
314
314
  def _initialize_clients(self) -> None:
315
315
  #* Initialize google clients
316
- secret = GoogleSecretManager(logs_dir=self._logs_dir, google_cloud_logging=self._google_cloud_logging)
317
- storage = GoogleCloudStorage(logs_dir=self._logs_dir, google_cloud_logging=self._google_cloud_logging)
316
+ secret = GoogleSecretManager(**self._log_config.model_dump())
317
+ storage = GoogleCloudStorage(**self._log_config.model_dump())
318
318
  self._google_clients = GoogleClientManagers(secret=secret, storage=storage)
319
319
  #* Initialize http clients
320
320
  self._http_client = HTTPClientManager
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.1.12
3
+ Version: 0.1.14
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -30,15 +30,15 @@ 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=rbB5W2rSxV2xcexh9j79U4ZKgAuA61t8ZD2IKppg22k,4867
33
- maleo_foundation/managers/service.py,sha256=I-Sh3dP6UyBG4xXqAZE8BrOhO41nNjZAbVubuw8GPN8,17585
33
+ maleo_foundation/managers/service.py,sha256=iKHJ8-hAwXgHz5iZFV4d9W8Ta8Ww3Z_xJsMD3TtqAdM,17503
34
34
  maleo_foundation/managers/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
- maleo_foundation/managers/client/base.py,sha256=GytrN4WB0oa8Flg6VHJ4oSg7kaWQBjXQ8GTwC4VFleY,965
35
+ maleo_foundation/managers/client/base.py,sha256=K8AFV2MTZrC1jbTqxkx7eedmxodJirNIjoRXGGcppy4,1022
36
36
  maleo_foundation/managers/client/http.py,sha256=dWFZlG1z4TERYBITReR5oSrlzvdhh2EtztVnsU8gCeA,2712
37
37
  maleo_foundation/managers/client/maleo.py,sha256=2EslsYZyCcCAQyR6j9u2791vfHo1tizhtre2l9zR9vs,3664
38
38
  maleo_foundation/managers/client/google/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
39
  maleo_foundation/managers/client/google/base.py,sha256=1lrGoyGnYW5Xq05bVXbKqnsqqmFPnsqZCBPK5-DINDA,1037
40
- maleo_foundation/managers/client/google/secret.py,sha256=iKXaF8qNDXRYbmosS9bAXQFYwRdDZ3Kh2yKhBAaOoEI,3061
41
- maleo_foundation/managers/client/google/storage.py,sha256=KaT4XrNpy-p6Bi1TcN0c4BK-vrfzCYxwKzMq4i3saNA,2335
40
+ maleo_foundation/managers/client/google/secret.py,sha256=SNi_E_WEqWBg9ZgWiofwmzYokVZVntytH9yGd6Tl8Xg,3130
41
+ maleo_foundation/managers/client/google/storage.py,sha256=cO8_whG-rstCYsCBgg13uKH6w-WAelFvQecqQyh4Shc,2404
42
42
  maleo_foundation/middlewares/__init__.py,sha256=bqE2EIFC3rWcR2AwFPR0fk2kSFfeTRzgA24GbnuT5RA,3697
43
43
  maleo_foundation/middlewares/base.py,sha256=KcpODNs0DQXX8Cwc6T9dC6aiZIqxTLtuJjVAGWXPSKk,11633
44
44
  maleo_foundation/middlewares/cors.py,sha256=9uvBvY2N6Vxa9RP_YtESxcWo6Doi6uS0lzAG9iLY7Uc,2288
@@ -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.12.dist-info/METADATA,sha256=15EJnTgurLxkNIAZ51QhsCsvBsvjNkXvUOB_jFlxrZY,3190
83
- maleo_foundation-0.1.12.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
84
- maleo_foundation-0.1.12.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
85
- maleo_foundation-0.1.12.dist-info/RECORD,,
82
+ maleo_foundation-0.1.14.dist-info/METADATA,sha256=SvJu9h-hsUywM1knNsU5vf-80gYI85YGXtLM9rQvycI,3190
83
+ maleo_foundation-0.1.14.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
84
+ maleo_foundation-0.1.14.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
85
+ maleo_foundation-0.1.14.dist-info/RECORD,,