maleo-foundation 0.1.13__tar.gz → 0.1.14__tar.gz
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-0.1.13 → maleo_foundation-0.1.14}/PKG-INFO +1 -1
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/managers/client/base.py +1 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/managers/client/google/secret.py +1 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/managers/client/google/storage.py +1 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/managers/service.py +2 -4
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation.egg-info/PKG-INFO +1 -1
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/pyproject.toml +1 -1
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/README.md +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/__init__.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/clients/__init__.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/clients/general/__init__.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/clients/general/http.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/clients/google/__init__.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/clients/google/base.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/clients/google/cloud/__init__.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/clients/google/cloud/base.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/clients/google/cloud/logging.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/clients/google/cloud/secret.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/clients/google/cloud/storage.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/clients/google/secret.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/clients/google/storage.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/clients/utils/__init__.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/clients/utils/logger.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/constants.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/db/__init__.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/db/engine.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/db/manager.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/db/session.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/db/table.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/enums.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/expanded_types/__init__.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/expanded_types/client.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/expanded_types/general.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/expanded_types/query.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/expanded_types/service.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/expanded_types/token.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/extended_types.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/managers/__init__.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/managers/client/__init__.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/managers/client/google/__init__.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/managers/client/google/base.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/managers/client/http.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/managers/client/maleo.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/managers/db.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/middlewares/__init__.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/middlewares/base.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/middlewares/cors.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/__init__.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/responses.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/schemas/__init__.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/schemas/general.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/schemas/parameter.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/schemas/result.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/schemas/token.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/transfers/__init__.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/transfers/general/__init__.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/transfers/general/token.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/transfers/parameters/__init__.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/transfers/parameters/client.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/transfers/parameters/general.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/transfers/parameters/service.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/transfers/parameters/token.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/transfers/results/__init__.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/transfers/results/client/__init__.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/transfers/results/client/controllers/__init__.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/transfers/results/client/controllers/http.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/transfers/results/client/service.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/transfers/results/service/__init__.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/transfers/results/service/controllers/__init__.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/transfers/results/service/controllers/rest.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/transfers/results/service/general.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/transfers/results/service/query.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/transfers/results/token.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/services/__init__.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/services/token.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/types.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/utils/__init__.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/utils/controller.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/utils/exceptions.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/utils/formatter/__init__.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/utils/formatter/case.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/utils/keyloader.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/utils/logger.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/utils/logging.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/utils/query.py +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation.egg-info/SOURCES.txt +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation.egg-info/dependency_links.txt +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation.egg-info/requires.txt +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation.egg-info/top_level.txt +0 -0
- {maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/setup.cfg +0 -0
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/managers/client/base.py
RENAMED
@@ -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(
|
317
|
-
storage = GoogleCloudStorage(
|
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
|
@@ -322,9 +322,7 @@ class ServiceManager:
|
|
322
322
|
#* Initialize maleo clients
|
323
323
|
self._maleo_clients = MaleoClientManagers()
|
324
324
|
if self._maleo_client_manager_classes.metadata is not None and issubclass(self._maleo_client_manager_classes.metadata, MaleoClientManager):
|
325
|
-
self._loggers.application.info("Initializing %s client manager", self._configs.client.maleo.metadata.key)
|
326
325
|
self._maleo_clients.metadata = self._maleo_client_manager_classes.metadata(**self._configs.client.maleo.metadata.model_dump(), **self._log_config.model_dump())
|
327
|
-
self._loggers.application.info("%s client manager initialized successfully", self._configs.client.maleo.metadata.key)
|
328
326
|
self._clients = ClientManagers(google=self._google_clients, http=self._http_client, maleo=self._maleo_clients)
|
329
327
|
|
330
328
|
@property
|
File without changes
|
File without changes
|
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/clients/general/__init__.py
RENAMED
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/clients/general/http.py
RENAMED
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/clients/google/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/clients/google/cloud/base.py
RENAMED
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/clients/google/cloud/logging.py
RENAMED
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/clients/google/cloud/secret.py
RENAMED
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/clients/google/cloud/storage.py
RENAMED
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/clients/google/secret.py
RENAMED
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/clients/google/storage.py
RENAMED
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/clients/utils/__init__.py
RENAMED
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/clients/utils/logger.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/expanded_types/__init__.py
RENAMED
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/expanded_types/client.py
RENAMED
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/expanded_types/general.py
RENAMED
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/expanded_types/query.py
RENAMED
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/expanded_types/service.py
RENAMED
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/expanded_types/token.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/managers/client/__init__.py
RENAMED
File without changes
|
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/managers/client/google/base.py
RENAMED
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/managers/client/http.py
RENAMED
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/managers/client/maleo.py
RENAMED
File without changes
|
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/middlewares/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/schemas/__init__.py
RENAMED
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/schemas/general.py
RENAMED
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/schemas/parameter.py
RENAMED
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/schemas/result.py
RENAMED
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/schemas/token.py
RENAMED
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/models/transfers/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/utils/formatter/__init__.py
RENAMED
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation/utils/formatter/case.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{maleo_foundation-0.1.13 → maleo_foundation-0.1.14}/maleo_foundation.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|