maleo-foundation 0.2.82__py3-none-any.whl → 0.2.86__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_foundation/managers/client/base.py +2 -9
- maleo_foundation/middlewares/base.py +1 -1
- {maleo_foundation-0.2.82.dist-info → maleo_foundation-0.2.86.dist-info}/METADATA +1 -1
- {maleo_foundation-0.2.82.dist-info → maleo_foundation-0.2.86.dist-info}/RECORD +6 -6
- {maleo_foundation-0.2.82.dist-info → maleo_foundation-0.2.86.dist-info}/WHEEL +0 -0
- {maleo_foundation-0.2.82.dist-info → maleo_foundation-0.2.86.dist-info}/top_level.txt +0 -0
@@ -16,17 +16,10 @@ class BearerAuth(httpx.Auth):
|
|
16
16
|
def _build_auth_header(self, token:str) -> str:
|
17
17
|
return f"Bearer {token}"
|
18
18
|
|
19
|
-
class URL(BaseModel):
|
20
|
-
base:str = Field(..., description="Base URL")
|
21
|
-
|
22
|
-
@property
|
23
|
-
def api(self) -> str:
|
24
|
-
return f"{self.base}/api"
|
25
|
-
|
26
19
|
class ClientHTTPControllerManager:
|
27
20
|
def __init__(self, url:str) -> None:
|
28
21
|
self._client = httpx.AsyncClient()
|
29
|
-
self._url =
|
22
|
+
self._url = url
|
30
23
|
|
31
24
|
async def _client_handler(self) -> AsyncGenerator[httpx.AsyncClient, None]:
|
32
25
|
"""Reusable generator for client handling."""
|
@@ -51,7 +44,7 @@ class ClientHTTPControllerManager:
|
|
51
44
|
return self._client
|
52
45
|
|
53
46
|
@property
|
54
|
-
def url(self) ->
|
47
|
+
def url(self) -> str:
|
55
48
|
return self._url
|
56
49
|
|
57
50
|
async def dispose(self) -> None:
|
@@ -324,7 +324,7 @@ class BaseMiddleware(BaseHTTPMiddleware):
|
|
324
324
|
|
325
325
|
except Exception as e:
|
326
326
|
return self._handle_exception(
|
327
|
-
|
327
|
+
authentication, e, request_context, start_time
|
328
328
|
)
|
329
329
|
|
330
330
|
async def _request_processor(self, request:Request) -> Optional[Response]:
|
@@ -39,7 +39,7 @@ maleo_foundation/managers/cache/__init__.py,sha256=CeY0oof2bVl_v5WS-FKXNwn2gf3xr
|
|
39
39
|
maleo_foundation/managers/cache/base.py,sha256=YyPjde4KTsp2IHV6NdFMysa0ev-1GX1rtX-0jQPuIBU,837
|
40
40
|
maleo_foundation/managers/cache/redis.py,sha256=xLa8QfXdNtghs0eBxIqc04H3XTYmxLEzrqJZAFCigvM,1150
|
41
41
|
maleo_foundation/managers/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
42
|
-
maleo_foundation/managers/client/base.py,sha256=
|
42
|
+
maleo_foundation/managers/client/base.py,sha256=mKIajI8Kis9W1_TKJmAO-xFavNk2Be3aFhAE3J66Gqg,4272
|
43
43
|
maleo_foundation/managers/client/maleo.py,sha256=5vDKXObH0qlCaY0-t4FJJdgXYFklnZw3Cyxk3kmAO8k,2653
|
44
44
|
maleo_foundation/managers/client/google/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
45
45
|
maleo_foundation/managers/client/google/base.py,sha256=eIdd6C2BFIu4EyZ1j017VZaJn_nSTPGFftBwQmVAUDA,1366
|
@@ -47,7 +47,7 @@ maleo_foundation/managers/client/google/parameter.py,sha256=Lnj7mQgxWQpsQwbmDRK5
|
|
47
47
|
maleo_foundation/managers/client/google/secret.py,sha256=Ski1CHYeA8vjSk2Oc2Pf4CfFrzT_RcA6NEZwza7gM7Y,4464
|
48
48
|
maleo_foundation/managers/client/google/storage.py,sha256=Hq79cVreWR2AGwUzpD57NzziZjqxj__TqYIBRy-A9A0,5340
|
49
49
|
maleo_foundation/middlewares/authentication.py,sha256=UL6kL65SvqrzemlIDopoO9N1C05eWlYMHVR2tiRsVEA,4821
|
50
|
-
maleo_foundation/middlewares/base.py,sha256=
|
50
|
+
maleo_foundation/middlewares/base.py,sha256=LhsLbZARC4lwGpaIeCfhHFa4YbN3210JnmUEKSTDZW0,16299
|
51
51
|
maleo_foundation/middlewares/cors.py,sha256=9uvBvY2N6Vxa9RP_YtESxcWo6Doi6uS0lzAG9iLY7Uc,2288
|
52
52
|
maleo_foundation/models/__init__.py,sha256=AaKehO7c1HyKhoTGRmNHDddSeBXkW-_YNrpOGBu8Ms8,246
|
53
53
|
maleo_foundation/models/responses.py,sha256=nE5qThK-WgcYB-9J4wHzJltMA3PLmWbMI-dkxAxAdII,5631
|
@@ -119,7 +119,7 @@ maleo_foundation/utils/loaders/credential/__init__.py,sha256=qopTKvcMVoTFwyRijeg
|
|
119
119
|
maleo_foundation/utils/loaders/credential/google.py,sha256=HUcuHD4tXHPt0eHInlFYxA_MDrGSOtbenpd0PX156OM,1255
|
120
120
|
maleo_foundation/utils/loaders/key/__init__.py,sha256=hVygcC2ImHc_aVrSrOmyedR8tMUZokWUKCKOSh5ctbo,106
|
121
121
|
maleo_foundation/utils/loaders/key/rsa.py,sha256=gDhyX6iTFtHiluuhFCozaZ3pOLKU2Y9TlrNMK_GVyGU,3796
|
122
|
-
maleo_foundation-0.2.
|
123
|
-
maleo_foundation-0.2.
|
124
|
-
maleo_foundation-0.2.
|
125
|
-
maleo_foundation-0.2.
|
122
|
+
maleo_foundation-0.2.86.dist-info/METADATA,sha256=fgPM_Hdb2sTWUCBE5S6o3V8EuomWVTSgM_XO8bvdcGU,3598
|
123
|
+
maleo_foundation-0.2.86.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
124
|
+
maleo_foundation-0.2.86.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
|
125
|
+
maleo_foundation-0.2.86.dist-info/RECORD,,
|
File without changes
|
File without changes
|