maleo-foundation 0.1.80__py3-none-any.whl → 0.1.82__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.
@@ -7,14 +7,20 @@ from maleo_foundation.types import BaseTypes
7
7
  class Credentials(AuthCredentials):
8
8
  def __init__(
9
9
  self,
10
+ key:BaseTypes.OptionalString = None,
10
11
  token:BaseTypes.OptionalString = None,
11
12
  payload:Optional[MaleoFoundationTokenGeneralTransfers.DecodePayload] = None,
12
13
  scopes:Optional[Sequence[str]] = None
13
14
  ) -> None:
15
+ self._key = key
14
16
  self._token = token
15
17
  self._payload = payload
16
18
  super().__init__(scopes)
17
19
 
20
+ @property
21
+ def key(self) -> BaseTypes.OptionalString:
22
+ return self._key
23
+
18
24
  @property
19
25
  def token(self) -> BaseTypes.OptionalString:
20
26
  return self._token
@@ -289,7 +289,7 @@ class ServiceManager:
289
289
 
290
290
  def create_app(self, router:APIRouter, lifespan:Optional[Lifespan[AppType]] = None) -> FastAPI:
291
291
  self._loggers.application.info("Creating FastAPI application")
292
- root_path = "" if self._settings.ENVIRONMENT == "local" else f"/{self._configs.service.key.lstrip("maleo-")}"
292
+ root_path = "" if self._settings.ENVIRONMENT == "local" else f"/{self._configs.service.key.removeprefix("maleo-")}"
293
293
  self._app = FastAPI(title=self._configs.service.name, lifespan=lifespan, root_path=root_path)
294
294
  self._loggers.application.info("FastAPI application created successfully")
295
295
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.1.80
3
+ Version: 0.1.82
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -1,5 +1,5 @@
1
1
  maleo_foundation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- maleo_foundation/authentication.py,sha256=PJ_1j9SskRa0vtEkj91yLhzc71aFGSFTg1TaY3rHbgE,1594
2
+ maleo_foundation/authentication.py,sha256=0HhZsmZM_oMiC71FpnTBLbx2sQzdsI-RgwNqvxvn5zg,1750
3
3
  maleo_foundation/constants.py,sha256=aBmEfWlBqZxi0k-n6h2NM1YRLOjMnheEiLyQcjP-zCQ,1164
4
4
  maleo_foundation/enums.py,sha256=uvwl3dl2r6BoJMEbtSETiLoyJubHup9Lc7VOg7w7zQo,2943
5
5
  maleo_foundation/extended_types.py,sha256=pIKt-_9tby4rmune3fmWcCW_mohaNRh_1lywBmdc-L4,301
@@ -32,7 +32,7 @@ maleo_foundation/expanded_types/encryption/rsa.py,sha256=MuhB_DGrjnsl4t96W4pKuCt
32
32
  maleo_foundation/managers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
33
  maleo_foundation/managers/db.py,sha256=Pn5EZ-c1Hy6-BihN7KokHJWmBIt3Ty96fZ0zF-srtF4,5208
34
34
  maleo_foundation/managers/middleware.py,sha256=ODIQU1Hpu-Xempjjo_VRbVtxiD5oi74mNuoWuDawRh0,4250
35
- maleo_foundation/managers/service.py,sha256=TR_8nypQ8Zrkf1kmTOeT1oTpcbOJSflnRh3W8UqlVw0,17074
35
+ maleo_foundation/managers/service.py,sha256=G2AOYVg56Pl3D2xD7CgFhEjpP-wMgq1PN4inXMy2qOA,17080
36
36
  maleo_foundation/managers/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
37
  maleo_foundation/managers/client/base.py,sha256=5z9l2GN4QASF0-Lft8o5QQ3SRPXqeNZNT1S1CgaE764,4384
38
38
  maleo_foundation/managers/client/maleo.py,sha256=iCM47TLL-RSQ2FkTmHVPdsb2JCd1LebMx6OJvIr4vCQ,2035
@@ -105,7 +105,7 @@ maleo_foundation/utils/loaders/json.py,sha256=NsXLq3VZSgzmEf99tV1VtrmiudWdQ8Pzh_
105
105
  maleo_foundation/utils/loaders/yaml.py,sha256=jr8v3BlgmRCMTzdNgKhIYt1tnubaJXcDSSGkKVR8pbw,362
106
106
  maleo_foundation/utils/loaders/key/__init__.py,sha256=G03cA_Oxu02uDsg0WBPfPkIM2uUsxnjwOPgtBKe02kc,110
107
107
  maleo_foundation/utils/loaders/key/rsa.py,sha256=gDhyX6iTFtHiluuhFCozaZ3pOLKU2Y9TlrNMK_GVyGU,3796
108
- maleo_foundation-0.1.80.dist-info/METADATA,sha256=f0ZAl2m_OzFKOBXH2gbPlhB5nMwyZ6yjoAFkU9l2B3U,3419
109
- maleo_foundation-0.1.80.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
110
- maleo_foundation-0.1.80.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
111
- maleo_foundation-0.1.80.dist-info/RECORD,,
108
+ maleo_foundation-0.1.82.dist-info/METADATA,sha256=rqFhPMUqfeveWVRcVZijHayniTkRi5S6x4XuFgj6ebY,3419
109
+ maleo_foundation-0.1.82.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
110
+ maleo_foundation-0.1.82.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
111
+ maleo_foundation-0.1.82.dist-info/RECORD,,