maleo-managers 0.0.12__py3-none-any.whl → 0.0.16__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/managers/config.py +3 -3
- maleo/managers/key.py +4 -3
- maleo/managers/service.py +4 -3
- {maleo_managers-0.0.12.dist-info → maleo_managers-0.0.16.dist-info}/METADATA +1 -1
- {maleo_managers-0.0.12.dist-info → maleo_managers-0.0.16.dist-info}/RECORD +8 -8
- {maleo_managers-0.0.12.dist-info → maleo_managers-0.0.16.dist-info}/WHEEL +0 -0
- {maleo_managers-0.0.12.dist-info → maleo_managers-0.0.16.dist-info}/licenses/LICENSE +0 -0
- {maleo_managers-0.0.12.dist-info → maleo_managers-0.0.16.dist-info}/top_level.txt +0 -0
maleo/managers/config.py
CHANGED
@@ -5,7 +5,7 @@ from maleo.database.config import (
|
|
5
5
|
ConfigsT as DatabaseConfigsT,
|
6
6
|
ConfigsMixin as DatabaseConfigMixin,
|
7
7
|
)
|
8
|
-
from maleo.dtos.settings import
|
8
|
+
from maleo.dtos.settings import ServiceSettingsT
|
9
9
|
from maleo.google.pubsub import (
|
10
10
|
ConfigT as PubSubConfigT,
|
11
11
|
ConfigMixin as PubSubConfigMixin,
|
@@ -33,10 +33,10 @@ class Config(
|
|
33
33
|
ConfigT = TypeVar("ConfigT", bound=Config)
|
34
34
|
|
35
35
|
|
36
|
-
class ConfigManager(Generic[ConfigT]):
|
36
|
+
class ConfigManager(Generic[ServiceSettingsT, ConfigT]):
|
37
37
|
def __init__(
|
38
38
|
self,
|
39
|
-
settings:
|
39
|
+
settings: ServiceSettingsT,
|
40
40
|
secret_manager: GoogleSecretManager,
|
41
41
|
config_cls: Type[ConfigT],
|
42
42
|
operation_id: OptionalUUID = None,
|
maleo/managers/key.py
CHANGED
@@ -1,13 +1,14 @@
|
|
1
|
-
from
|
1
|
+
from typing import Generic
|
2
|
+
from maleo.dtos.settings import ServiceSettingsT
|
2
3
|
from maleo.google.secret import Format, GoogleSecretManager
|
3
4
|
from maleo.dtos.key.rsa import Complete
|
4
5
|
from maleo.types.base.uuid import OptionalUUID
|
5
6
|
|
6
7
|
|
7
|
-
class RSAKeyManager:
|
8
|
+
class RSAKeyManager(Generic[ServiceSettingsT]):
|
8
9
|
def __init__(
|
9
10
|
self,
|
10
|
-
settings:
|
11
|
+
settings: ServiceSettingsT,
|
11
12
|
secret_manager: GoogleSecretManager,
|
12
13
|
operation_id: OptionalUUID = None,
|
13
14
|
) -> None:
|
maleo/managers/service.py
CHANGED
@@ -6,7 +6,6 @@ from google.oauth2.service_account import Credentials
|
|
6
6
|
from pydantic import ValidationError
|
7
7
|
from starlette.exceptions import HTTPException
|
8
8
|
from starlette.types import Lifespan, AppType
|
9
|
-
from sqlalchemy import MetaData
|
10
9
|
from typing import Generic, Optional
|
11
10
|
from uuid import UUID
|
12
11
|
from maleo.dtos.settings import ServiceSettingsT
|
@@ -34,14 +33,12 @@ class ServiceManager(ABC, Generic[ServiceSettingsT, ConfigT]):
|
|
34
33
|
|
35
34
|
def __init__(
|
36
35
|
self,
|
37
|
-
db_metadata: MetaData,
|
38
36
|
google_credentials: Credentials,
|
39
37
|
log_config: LogConfig,
|
40
38
|
settings: ServiceSettingsT,
|
41
39
|
config: ConfigT,
|
42
40
|
keys: Complete,
|
43
41
|
):
|
44
|
-
self._db_metadata = db_metadata
|
45
42
|
self._google_credentials = google_credentials
|
46
43
|
self._log_config = log_config
|
47
44
|
self._settings = settings
|
@@ -69,6 +66,10 @@ class ServiceManager(ABC, Generic[ServiceSettingsT, ConfigT]):
|
|
69
66
|
def _initialize_database(self):
|
70
67
|
"""Initialize all given databases"""
|
71
68
|
|
69
|
+
@abstractmethod
|
70
|
+
def _initialize_google_cloud_storage(self):
|
71
|
+
"""Initialize Google Cloud Storage"""
|
72
|
+
|
72
73
|
def create_app(
|
73
74
|
self,
|
74
75
|
operation_id: UUID,
|
@@ -1,15 +1,15 @@
|
|
1
1
|
maleo/managers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
maleo/managers/config.py,sha256=
|
2
|
+
maleo/managers/config.py,sha256=93FetA38gk3TJ5kl_iYH21-e9Z1_lL1DxxhxrPf0ZjA,2059
|
3
3
|
maleo/managers/credential.py,sha256=-acqO72GeNrd_YfMQ9MkhZgWXf-jsNMYTId4ILkwBwI,4087
|
4
|
-
maleo/managers/key.py,sha256=
|
5
|
-
maleo/managers/service.py,sha256=
|
4
|
+
maleo/managers/key.py,sha256=aC-Cd76e_4uTl8M8gE2SHgTtWgwhY_zygP80SlyWHkw,1463
|
5
|
+
maleo/managers/service.py,sha256=QnI4ZtNImCM-qAHTm2CP9rw1TvaE-P327UB70ChaEkI,4101
|
6
6
|
maleo/managers/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
maleo/managers/client/config.py,sha256=ySx6w9vmFYWHNm3lqO6OY_v1l8pKhQeCtCP7h1txxKE,466
|
8
8
|
maleo/managers/client/http.py,sha256=sPPqCbJsNcyIzcZbDv8Sga_fnXJDM812j8qSLLd6QOg,790
|
9
9
|
maleo/managers/client/maleo/__init__.py,sha256=8twb4XguV4GvRlR6eBtGA1XEgAuqei-1QHf7zRtxnfU,6423
|
10
10
|
maleo/managers/client/maleo/config.py,sha256=fRzsTn-LI6lfuxPNjjhhjl8Ag5ovAttUF2E-W9CB91s,2590
|
11
|
-
maleo_managers-0.0.
|
12
|
-
maleo_managers-0.0.
|
13
|
-
maleo_managers-0.0.
|
14
|
-
maleo_managers-0.0.
|
15
|
-
maleo_managers-0.0.
|
11
|
+
maleo_managers-0.0.16.dist-info/licenses/LICENSE,sha256=aftGsecnk7TWVX-7KW94FqK4Syy6YSZ8PZEF7EcIp3M,2621
|
12
|
+
maleo_managers-0.0.16.dist-info/METADATA,sha256=IhBFbVJ24RZdyA9e6jLsk5wAM3J6qKmHTjdcOI5MeUY,4282
|
13
|
+
maleo_managers-0.0.16.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
14
|
+
maleo_managers-0.0.16.dist-info/top_level.txt,sha256=3Tpd1siVsfYoeI9FEOJNYnffx_shzZ3wsPpTvz5bljc,6
|
15
|
+
maleo_managers-0.0.16.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|