maleo-foundation 0.3.74__tar.gz → 0.3.76__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 (153) hide show
  1. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/PKG-INFO +2 -1
  2. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/utils/logging.py +12 -12
  3. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation.egg-info/PKG-INFO +2 -1
  4. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation.egg-info/requires.txt +1 -0
  5. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/pyproject.toml +2 -1
  6. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/README.md +0 -0
  7. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/__init__.py +0 -0
  8. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/authentication.py +0 -0
  9. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/client/__init__.py +0 -0
  10. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/client/manager.py +0 -0
  11. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/client/services/__init__.py +0 -0
  12. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/client/services/encryption/__init__.py +0 -0
  13. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/client/services/encryption/aes.py +0 -0
  14. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/client/services/encryption/rsa.py +0 -0
  15. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/client/services/hash/__init__.py +0 -0
  16. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/client/services/hash/bcrypt.py +0 -0
  17. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/client/services/hash/hmac.py +0 -0
  18. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/client/services/hash/sha256.py +0 -0
  19. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/client/services/key.py +0 -0
  20. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/client/services/signature.py +0 -0
  21. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/client/services/token.py +0 -0
  22. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/constants.py +0 -0
  23. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/controller_types.py +0 -0
  24. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/enums.py +0 -0
  25. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/expanded_types/__init__.py +0 -0
  26. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/expanded_types/client.py +0 -0
  27. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/expanded_types/encryption/__init__.py +0 -0
  28. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/expanded_types/encryption/aes.py +0 -0
  29. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/expanded_types/encryption/rsa.py +0 -0
  30. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/expanded_types/general.py +0 -0
  31. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/expanded_types/hash.py +0 -0
  32. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/expanded_types/key.py +0 -0
  33. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/expanded_types/service.py +0 -0
  34. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/expanded_types/signature.py +0 -0
  35. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/expanded_types/token.py +0 -0
  36. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/extended_types.py +0 -0
  37. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/managers/__init__.py +0 -0
  38. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/managers/cache.py +0 -0
  39. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/managers/client/__init__.py +0 -0
  40. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/managers/client/base.py +0 -0
  41. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/managers/client/google/__init__.py +0 -0
  42. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/managers/client/google/base.py +0 -0
  43. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/managers/client/google/parameter.py +0 -0
  44. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/managers/client/google/secret.py +0 -0
  45. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/managers/client/google/storage.py +0 -0
  46. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/managers/client/google/subscription.py +0 -0
  47. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/managers/client/maleo.py +0 -0
  48. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/managers/configuration.py +0 -0
  49. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/managers/credential.py +0 -0
  50. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/managers/db.py +0 -0
  51. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/managers/middleware.py +0 -0
  52. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/managers/service.py +0 -0
  53. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/middlewares/authentication.py +0 -0
  54. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/middlewares/base.py +0 -0
  55. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/middlewares/cors.py +0 -0
  56. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/__init__.py +0 -0
  57. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/responses.py +0 -0
  58. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/schemas/__init__.py +0 -0
  59. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/schemas/encryption.py +0 -0
  60. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/schemas/general.py +0 -0
  61. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/schemas/hash.py +0 -0
  62. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/schemas/key.py +0 -0
  63. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/schemas/parameter.py +0 -0
  64. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/schemas/result.py +0 -0
  65. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/schemas/signature.py +0 -0
  66. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/schemas/token.py +0 -0
  67. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/table.py +0 -0
  68. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/__init__.py +0 -0
  69. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/__init__.py +0 -0
  70. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/authentication.py +0 -0
  71. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/authorization.py +0 -0
  72. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/configurations/__init__.py +0 -0
  73. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/configurations/cache/__init__.py +0 -0
  74. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/configurations/cache/redis.py +0 -0
  75. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/configurations/client/__init__.py +0 -0
  76. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/configurations/client/maleo.py +0 -0
  77. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/configurations/database.py +0 -0
  78. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/configurations/middleware.py +0 -0
  79. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/configurations/pubsub/__init__.py +0 -0
  80. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/configurations/pubsub/publisher.py +0 -0
  81. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/configurations/pubsub/subscription.py +0 -0
  82. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/configurations/service.py +0 -0
  83. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/credentials.py +0 -0
  84. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/data.py +0 -0
  85. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/database.py +0 -0
  86. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/key.py +0 -0
  87. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/operation.py +0 -0
  88. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/request.py +0 -0
  89. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/response.py +0 -0
  90. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/service.py +0 -0
  91. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/settings.py +0 -0
  92. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/signature.py +0 -0
  93. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/token.py +0 -0
  94. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/general/user_agent.py +0 -0
  95. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/parameters/__init__.py +0 -0
  96. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/parameters/client.py +0 -0
  97. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/parameters/encryption/__init__.py +0 -0
  98. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/parameters/encryption/aes.py +0 -0
  99. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/parameters/encryption/rsa.py +0 -0
  100. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/parameters/general.py +0 -0
  101. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/parameters/hash/__init__.py +0 -0
  102. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/parameters/hash/bcrypt.py +0 -0
  103. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/parameters/hash/hmac.py +0 -0
  104. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/parameters/hash/sha256.py +0 -0
  105. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/parameters/key.py +0 -0
  106. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/parameters/service.py +0 -0
  107. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/parameters/signature.py +0 -0
  108. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/parameters/token.py +0 -0
  109. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/results/__init__.py +0 -0
  110. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/results/client/__init__.py +0 -0
  111. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/results/client/controllers/__init__.py +0 -0
  112. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/results/client/controllers/http.py +0 -0
  113. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/results/client/service.py +0 -0
  114. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/results/encryption/__init__.py +0 -0
  115. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/results/encryption/aes.py +0 -0
  116. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/results/encryption/rsa.py +0 -0
  117. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/results/hash.py +0 -0
  118. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/results/key.py +0 -0
  119. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/results/service/__init__.py +0 -0
  120. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/results/service/controllers/__init__.py +0 -0
  121. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/results/service/controllers/rest.py +0 -0
  122. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/results/service/general.py +0 -0
  123. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/results/signature.py +0 -0
  124. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/models/transfers/results/token.py +0 -0
  125. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/rest_controller_result.py +0 -0
  126. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/types.py +0 -0
  127. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/utils/__init__.py +0 -0
  128. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/utils/cache.py +0 -0
  129. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/utils/client.py +0 -0
  130. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/utils/controller.py +0 -0
  131. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/utils/exceptions/__init__.py +0 -0
  132. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/utils/exceptions/client.py +0 -0
  133. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/utils/exceptions/request.py +0 -0
  134. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/utils/exceptions/service.py +0 -0
  135. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/utils/extractor.py +4 -4
  136. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/utils/formatter/__init__.py +0 -0
  137. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/utils/formatter/case.py +0 -0
  138. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/utils/loaders/__init__.py +0 -0
  139. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/utils/loaders/credential/__init__.py +0 -0
  140. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/utils/loaders/credential/google.py +0 -0
  141. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/utils/loaders/json.py +0 -0
  142. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/utils/loaders/key/__init__.py +0 -0
  143. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/utils/loaders/key/rsa.py +0 -0
  144. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/utils/loaders/yaml.py +0 -0
  145. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/utils/merger.py +0 -0
  146. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/utils/parser.py +0 -0
  147. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/utils/query.py +0 -0
  148. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/utils/repository.py +0 -0
  149. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation/utils/searcher.py +0 -0
  150. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation.egg-info/SOURCES.txt +0 -0
  151. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation.egg-info/dependency_links.txt +0 -0
  152. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/maleo_foundation.egg-info/top_level.txt +0 -0
  153. {maleo_foundation-0.3.74 → maleo_foundation-0.3.76}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.3.74
3
+ Version: 0.3.76
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -101,6 +101,7 @@ Requires-Dist: typing_extensions>=4.13.2
101
101
  Requires-Dist: ua-parser>=1.0.1
102
102
  Requires-Dist: ua-parser-builtins>=0.18.0.post1
103
103
  Requires-Dist: urllib3>=2.4.0
104
+ Requires-Dist: user-agents>=2.2.0
104
105
  Requires-Dist: uvicorn>=0.34.2
105
106
  Requires-Dist: virtualenv>=20.31.2
106
107
  Requires-Dist: wrapt>=1.17.2
@@ -46,8 +46,8 @@ class SimpleConfig(BaseModel):
46
46
  model_config = ConfigDict(arbitrary_types_allowed=True)
47
47
 
48
48
  dir: str = Field(..., description="Log's directory")
49
- level: BaseEnums.LoggerLevel = Field(
50
- BaseEnums.LoggerLevel.INFO, description="Log's level"
49
+ level: BaseEnums.LogLevel = Field(
50
+ BaseEnums.LogLevel.INFO, description="Log's level"
51
51
  )
52
52
  google_cloud_logging: Optional[GoogleCloudLogging] = Field(
53
53
  default_factory=GoogleCloudLogging, description="Google cloud logging"
@@ -62,7 +62,7 @@ class BaseLogger(logging.Logger):
62
62
  environment: Optional[BaseEnums.EnvironmentType] = None,
63
63
  service_key: Optional[BaseEnums.Service] = None,
64
64
  client_key: BaseTypes.OptionalString = None,
65
- level: BaseEnums.LoggerLevel = BaseEnums.LoggerLevel.INFO,
65
+ level: BaseEnums.LogLevel = BaseEnums.LogLevel.INFO,
66
66
  google_cloud_logging: Optional[GoogleCloudLogging] = None,
67
67
  ):
68
68
  self._type = type # * Declare logger type
@@ -181,7 +181,7 @@ class ApplicationLogger(BaseLogger):
181
181
  dir: str,
182
182
  environment: Optional[BaseEnums.EnvironmentType] = None,
183
183
  service_key: Optional[BaseEnums.Service] = None,
184
- level: BaseEnums.LoggerLevel = BaseEnums.LoggerLevel.INFO,
184
+ level: BaseEnums.LogLevel = BaseEnums.LogLevel.INFO,
185
185
  google_cloud_logging: Optional[GoogleCloudLogging] = None,
186
186
  ):
187
187
  super().__init__(
@@ -201,7 +201,7 @@ class CacheLogger(BaseLogger):
201
201
  dir: str,
202
202
  environment: Optional[BaseEnums.EnvironmentType] = None,
203
203
  service_key: Optional[BaseEnums.Service] = None,
204
- level: BaseEnums.LoggerLevel = BaseEnums.LoggerLevel.INFO,
204
+ level: BaseEnums.LogLevel = BaseEnums.LogLevel.INFO,
205
205
  google_cloud_logging: Optional[GoogleCloudLogging] = None,
206
206
  ):
207
207
  super().__init__(
@@ -222,7 +222,7 @@ class ClientLogger(BaseLogger):
222
222
  client_key: str,
223
223
  environment: Optional[BaseEnums.EnvironmentType] = None,
224
224
  service_key: Optional[BaseEnums.Service] = None,
225
- level: BaseEnums.LoggerLevel = BaseEnums.LoggerLevel.INFO,
225
+ level: BaseEnums.LogLevel = BaseEnums.LogLevel.INFO,
226
226
  google_cloud_logging: Optional[GoogleCloudLogging] = None,
227
227
  ):
228
228
  super().__init__(
@@ -242,7 +242,7 @@ class ControllerLogger(BaseLogger):
242
242
  dir: str,
243
243
  environment: Optional[BaseEnums.EnvironmentType] = None,
244
244
  service_key: Optional[BaseEnums.Service] = None,
245
- level: BaseEnums.LoggerLevel = BaseEnums.LoggerLevel.INFO,
245
+ level: BaseEnums.LogLevel = BaseEnums.LogLevel.INFO,
246
246
  google_cloud_logging: Optional[GoogleCloudLogging] = None,
247
247
  ):
248
248
  super().__init__(
@@ -262,7 +262,7 @@ class DatabaseLogger(BaseLogger):
262
262
  dir: str,
263
263
  environment: Optional[BaseEnums.EnvironmentType] = None,
264
264
  service_key: Optional[BaseEnums.Service] = None,
265
- level=BaseEnums.LoggerLevel.INFO,
265
+ level=BaseEnums.LogLevel.INFO,
266
266
  google_cloud_logging=None,
267
267
  ):
268
268
  super().__init__(
@@ -282,7 +282,7 @@ class MiddlewareLogger(BaseLogger):
282
282
  dir: str,
283
283
  environment: Optional[BaseEnums.EnvironmentType] = None,
284
284
  service_key: Optional[BaseEnums.Service] = None,
285
- level=BaseEnums.LoggerLevel.INFO,
285
+ level=BaseEnums.LogLevel.INFO,
286
286
  google_cloud_logging=None,
287
287
  ):
288
288
  super().__init__(
@@ -302,7 +302,7 @@ class RouterLogger(BaseLogger):
302
302
  dir: str,
303
303
  environment: Optional[BaseEnums.EnvironmentType] = None,
304
304
  service_key: Optional[BaseEnums.Service] = None,
305
- level: BaseEnums.LoggerLevel = BaseEnums.LoggerLevel.INFO,
305
+ level: BaseEnums.LogLevel = BaseEnums.LogLevel.INFO,
306
306
  google_cloud_logging: Optional[GoogleCloudLogging] = None,
307
307
  ):
308
308
  super().__init__(
@@ -322,7 +322,7 @@ class RepositoryLogger(BaseLogger):
322
322
  dir: str,
323
323
  environment: Optional[BaseEnums.EnvironmentType] = None,
324
324
  service_key: Optional[BaseEnums.Service] = None,
325
- level: BaseEnums.LoggerLevel = BaseEnums.LoggerLevel.INFO,
325
+ level: BaseEnums.LogLevel = BaseEnums.LogLevel.INFO,
326
326
  google_cloud_logging: Optional[GoogleCloudLogging] = None,
327
327
  ):
328
328
  super().__init__(
@@ -342,7 +342,7 @@ class ServiceLogger(BaseLogger):
342
342
  dir: str,
343
343
  environment: Optional[BaseEnums.EnvironmentType] = None,
344
344
  service_key: Optional[BaseEnums.Service] = None,
345
- level: BaseEnums.LoggerLevel = BaseEnums.LoggerLevel.INFO,
345
+ level: BaseEnums.LogLevel = BaseEnums.LogLevel.INFO,
346
346
  google_cloud_logging: Optional[GoogleCloudLogging] = None,
347
347
  ):
348
348
  super().__init__(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.3.74
3
+ Version: 0.3.76
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -101,6 +101,7 @@ Requires-Dist: typing_extensions>=4.13.2
101
101
  Requires-Dist: ua-parser>=1.0.1
102
102
  Requires-Dist: ua-parser-builtins>=0.18.0.post1
103
103
  Requires-Dist: urllib3>=2.4.0
104
+ Requires-Dist: user-agents>=2.2.0
104
105
  Requires-Dist: uvicorn>=0.34.2
105
106
  Requires-Dist: virtualenv>=20.31.2
106
107
  Requires-Dist: wrapt>=1.17.2
@@ -93,6 +93,7 @@ typing_extensions>=4.13.2
93
93
  ua-parser>=1.0.1
94
94
  ua-parser-builtins>=0.18.0.post1
95
95
  urllib3>=2.4.0
96
+ user-agents>=2.2.0
96
97
  uvicorn>=0.34.2
97
98
  virtualenv>=20.31.2
98
99
  wrapt>=1.17.2
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "maleo_foundation"
7
- version = "0.3.74"
7
+ version = "0.3.76"
8
8
  description = "Foundation package for Maleo"
9
9
  authors = [
10
10
  { name = "Agra Bima Yuda", email = "agra@nexmedis.com" }
@@ -108,6 +108,7 @@ dependencies = [
108
108
  "ua-parser>=1.0.1",
109
109
  "ua-parser-builtins>=0.18.0.post1",
110
110
  "urllib3>=2.4.0",
111
+ "user-agents>=2.2.0",
111
112
  "uvicorn>=0.34.2",
112
113
  "virtualenv>=20.31.2",
113
114
  "wrapt>=1.17.2",
@@ -17,6 +17,10 @@ from maleo_foundation.models.transfers.general.request import RequestContext
17
17
  from .parser import parse_user_agent
18
18
 
19
19
 
20
+ def extract_operation_id(request: Request) -> UUID:
21
+ return request.state.operation_id
22
+
23
+
20
24
  def extract_authentication(request: Request) -> Authentication:
21
25
  # validate credentials
22
26
  request_credentials = request.auth
@@ -55,10 +59,6 @@ def extract_client_ip(conn: HTTPConnection) -> str:
55
59
  return conn.client.host if conn.client else "unknown"
56
60
 
57
61
 
58
- def extract_operation_id(request: Request) -> UUID:
59
- return request.state.operation_id
60
-
61
-
62
62
  def extract_request_context(request: Request) -> RequestContext:
63
63
  request_id = request.state.request_id
64
64
  requested_at = request.state.requested_at