maleo-foundation 0.1.54__tar.gz → 0.1.56__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.
Files changed (83) hide show
  1. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/PKG-INFO +1 -1
  2. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/managers/client/base.py +1 -7
  3. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/managers/client/maleo.py +18 -2
  4. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/managers/service.py +0 -7
  5. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation.egg-info/PKG-INFO +1 -1
  6. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/pyproject.toml +1 -1
  7. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/README.md +0 -0
  8. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/__init__.py +0 -0
  9. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/authentication.py +0 -0
  10. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/client/__init__.py +0 -0
  11. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/client/manager.py +0 -0
  12. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/client/services/__init__.py +0 -0
  13. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/client/services/token.py +0 -0
  14. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/constants.py +0 -0
  15. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/enums.py +0 -0
  16. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/expanded_types/__init__.py +0 -0
  17. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/expanded_types/client.py +0 -0
  18. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/expanded_types/general.py +0 -0
  19. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/expanded_types/query.py +0 -0
  20. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/expanded_types/service.py +0 -0
  21. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/expanded_types/token.py +0 -0
  22. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/extended_types.py +0 -0
  23. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/managers/__init__.py +0 -0
  24. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/managers/client/__init__.py +0 -0
  25. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/managers/client/google/__init__.py +0 -0
  26. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/managers/client/google/base.py +0 -0
  27. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/managers/client/google/secret.py +0 -0
  28. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/managers/client/google/storage.py +0 -0
  29. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/managers/db.py +0 -0
  30. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/managers/middleware.py +0 -0
  31. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/middlewares/__init__.py +0 -0
  32. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/middlewares/authentication.py +0 -0
  33. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/middlewares/base.py +0 -0
  34. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/middlewares/cors.py +0 -0
  35. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/__init__.py +0 -0
  36. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/responses.py +0 -0
  37. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/schemas/__init__.py +0 -0
  38. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/schemas/general.py +0 -0
  39. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/schemas/parameter.py +0 -0
  40. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/schemas/result.py +0 -0
  41. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/schemas/signature.py +0 -0
  42. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/schemas/token.py +0 -0
  43. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/table.py +0 -0
  44. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/transfers/__init__.py +0 -0
  45. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/transfers/general/__init__.py +0 -0
  46. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/transfers/general/token.py +0 -0
  47. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/transfers/parameters/__init__.py +0 -0
  48. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/transfers/parameters/client.py +0 -0
  49. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/transfers/parameters/general.py +0 -0
  50. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/transfers/parameters/service.py +0 -0
  51. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/transfers/parameters/token.py +0 -0
  52. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/transfers/results/__init__.py +0 -0
  53. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/transfers/results/client/__init__.py +0 -0
  54. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/transfers/results/client/controllers/__init__.py +0 -0
  55. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/transfers/results/client/controllers/http.py +0 -0
  56. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/transfers/results/client/service.py +0 -0
  57. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/transfers/results/service/__init__.py +0 -0
  58. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/transfers/results/service/controllers/__init__.py +0 -0
  59. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/transfers/results/service/controllers/rest.py +0 -0
  60. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/transfers/results/service/general.py +0 -0
  61. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/transfers/results/service/query.py +0 -0
  62. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/models/transfers/results/token.py +0 -0
  63. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/services/__init__.py +0 -0
  64. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/services/token.py +0 -0
  65. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/types.py +0 -0
  66. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/utils/__init__.py +0 -0
  67. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/utils/controller.py +0 -0
  68. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/utils/exceptions.py +0 -0
  69. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/utils/extractor.py +0 -0
  70. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/utils/formatter/__init__.py +0 -0
  71. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/utils/formatter/case.py +0 -0
  72. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/utils/loaders/__init__.py +0 -0
  73. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/utils/loaders/json.py +0 -0
  74. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/utils/loaders/key.py +0 -0
  75. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/utils/loaders/yaml.py +0 -0
  76. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/utils/logging.py +0 -0
  77. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/utils/mergers.py +0 -0
  78. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation/utils/query.py +0 -0
  79. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation.egg-info/SOURCES.txt +0 -0
  80. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation.egg-info/dependency_links.txt +0 -0
  81. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation.egg-info/requires.txt +0 -0
  82. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/maleo_foundation.egg-info/top_level.txt +0 -0
  83. {maleo_foundation-0.1.54 → maleo_foundation-0.1.56}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.1.54
3
+ Version: 0.1.56
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -4,7 +4,6 @@ from pydantic import BaseModel, Field
4
4
  from typing import AsyncGenerator
5
5
  from maleo_foundation.types import BaseTypes
6
6
  from maleo_foundation.utils.logging import ClientLogger, SimpleConfig
7
- from maleo_foundation.managers.service import ServiceManager
8
7
 
9
8
  class URL(BaseModel):
10
9
  base:str = Field(..., description="Base URL")
@@ -54,14 +53,9 @@ class ClientControllerManagers(BaseModel):
54
53
  arbitrary_types_allowed=True
55
54
 
56
55
  class ClientHTTPController:
57
- def __init__(self, service_manager:ServiceManager, manager:ClientHTTPControllerManager):
58
- self._service_manager = service_manager
56
+ def __init__(self, manager:ClientHTTPControllerManager):
59
57
  self._manager = manager
60
58
 
61
- @property
62
- def service_manager(self) -> ServiceManager:
63
- return self._service_manager
64
-
65
59
  @property
66
60
  def manager(self) -> ClientHTTPControllerManager:
67
61
  return self._manager
@@ -1,6 +1,22 @@
1
- from maleo_foundation.managers.client.base import ClientManager, ClientHTTPControllerManager, ClientControllerManagers, ClientControllers, ClientServices
1
+ from pydantic import BaseModel, Field
2
+ from maleo_foundation.managers.client.base import ClientManager, ClientHTTPControllerManager, ClientControllerManagers, ClientHTTPController, ClientServiceControllers, ClientControllers
2
3
  from maleo_foundation.managers.service import ServiceManager
3
4
 
5
+ class MaleoClientHTTPController(ClientHTTPController):
6
+ def __init__(self, service_manager:ServiceManager, manager:ClientHTTPControllerManager):
7
+ self._service_manager = service_manager
8
+ super().__init__(manager)
9
+
10
+ @property
11
+ def service_manager(self) -> ServiceManager:
12
+ return self._service_manager
13
+
14
+ class MaleoClientServiceControllers(ClientServiceControllers):
15
+ http:MaleoClientHTTPController = Field(..., description="Maleo's HTTP Client Controller")
16
+
17
+ class Config:
18
+ arbitrary_types_allowed=True
19
+
4
20
  class MaleoClientManager(ClientManager):
5
21
  def __init__(
6
22
  self,
@@ -9,8 +25,8 @@ class MaleoClientManager(ClientManager):
9
25
  url:str,
10
26
  service_manager:ServiceManager
11
27
  ):
12
- super().__init__(key, name, service_manager)
13
28
  self._url = url
29
+ super().__init__(key, name, service_manager.log_config, service_manager.configs.service.key)
14
30
 
15
31
  def _initialize_controllers(self) -> None:
16
32
  #* Initialize managers
@@ -86,12 +86,6 @@ class MiddlewareStaticConfigurations(BaseModel):
86
86
  class Config:
87
87
  arbitrary_types_allowed=True
88
88
 
89
- class GoogleCloudStorageConfigurations(BaseModel):
90
- bucket_name:str = Field(..., description="Bucket's name")
91
-
92
- class GoogleClientConfigurations(BaseModel):
93
- storage:GoogleCloudStorageConfigurations = Field(..., description="Google cloud storage client configurations")
94
-
95
89
  class MaleoClientConfiguration(BaseModel):
96
90
  key:str = Field(..., description="Client's key")
97
91
  name:str = Field(..., description="Client's name")
@@ -115,7 +109,6 @@ class MaleoClientConfigurations(BaseModel):
115
109
  arbitrary_types_allowed=True
116
110
 
117
111
  class ClientConfigurations(BaseModel):
118
- google:GoogleClientConfigurations = Field(..., description="Google client's configurations")
119
112
  maleo:MaleoClientConfigurations = Field(..., description="Maleo client's configurations")
120
113
 
121
114
  class Config:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.1.54
3
+ Version: 0.1.56
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "maleo_foundation"
7
- version = "0.1.54"
7
+ version = "0.1.56"
8
8
  description = "Foundation package for Maleo"
9
9
  authors = [
10
10
  { name = "Agra Bima Yuda", email = "agra@nexmedis.com" }