maleo-foundation 0.3.59__py3-none-any.whl → 0.3.61__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/models/transfers/results/client/controllers/http.py +10 -0
- {maleo_foundation-0.3.59.dist-info → maleo_foundation-0.3.61.dist-info}/METADATA +1 -1
- {maleo_foundation-0.3.59.dist-info → maleo_foundation-0.3.61.dist-info}/RECORD +5 -5
- {maleo_foundation-0.3.59.dist-info → maleo_foundation-0.3.61.dist-info}/WHEEL +0 -0
- {maleo_foundation-0.3.59.dist-info → maleo_foundation-0.3.61.dist-info}/top_level.txt +0 -0
@@ -2,6 +2,7 @@ from __future__ import annotations
|
|
2
2
|
from httpx import Response
|
3
3
|
from pydantic import BaseModel, ConfigDict, Field, model_validator
|
4
4
|
from typing import Any, Self
|
5
|
+
from maleo_foundation.types import BaseTypes
|
5
6
|
|
6
7
|
|
7
8
|
class BaseClientHTTPControllerResults(BaseModel):
|
@@ -39,3 +40,12 @@ class BaseClientHTTPControllerResults(BaseModel):
|
|
39
40
|
else:
|
40
41
|
content = self.response.content # * Raw bytes for unknown types
|
41
42
|
return content
|
43
|
+
|
44
|
+
@property
|
45
|
+
def json_content(self) -> BaseTypes.StringToAnyDict:
|
46
|
+
# * Determine content type and parse accordingly
|
47
|
+
content_type: str = self.response.headers.get("content-type", "")
|
48
|
+
content_type = content_type.lower()
|
49
|
+
if content_type != "application/json":
|
50
|
+
raise ValueError("Response 'Content-Type' is not 'application/json'")
|
51
|
+
return self.response.json()
|
@@ -101,7 +101,7 @@ maleo_foundation/models/transfers/results/token.py,sha256=uucgesaw7fRUhvfJnsWpjK
|
|
101
101
|
maleo_foundation/models/transfers/results/client/__init__.py,sha256=QVW77FHou7OOABTjiIGdwPhXub46AI3GIM8EGk6ONw4,292
|
102
102
|
maleo_foundation/models/transfers/results/client/service.py,sha256=_Eu12Zjr7vwjRoCBRkUEHCS0DEeMZtq4vLwGmBGo5tc,1234
|
103
103
|
maleo_foundation/models/transfers/results/client/controllers/__init__.py,sha256=DN3va_Mcxjw0l1s9dSIOy3LkLR1jEERiAohuIA59vpc,175
|
104
|
-
maleo_foundation/models/transfers/results/client/controllers/http.py,sha256=
|
104
|
+
maleo_foundation/models/transfers/results/client/controllers/http.py,sha256=6pz4LU8ep8uOUTV5DU00N1xvqL8jtKuHmwJwsgFCrSA,1979
|
105
105
|
maleo_foundation/models/transfers/results/encryption/__init__.py,sha256=fq8hH7SHyYgZkYEurnZpj4Plez7Ipy8-8yX60bj-I-w,309
|
106
106
|
maleo_foundation/models/transfers/results/encryption/aes.py,sha256=5aNglJqHT3Ufordl_Bfy9thIXVblMw80xtmLs7KiCXI,877
|
107
107
|
maleo_foundation/models/transfers/results/encryption/rsa.py,sha256=dSIshf386TAF9hfokDmj4XKHsR_MQfQLmft8AF2MTZc,748
|
@@ -135,7 +135,7 @@ maleo_foundation/utils/loaders/credential/__init__.py,sha256=g-cAxkTE2EtHaG8Tv52
|
|
135
135
|
maleo_foundation/utils/loaders/credential/google.py,sha256=GCJl-bsKSSxoE_ERAkIzRrRNIbIEeqYOhHwzFuBr0mk,6576
|
136
136
|
maleo_foundation/utils/loaders/key/__init__.py,sha256=RfqIbUxkdlx1xrbzJZPD_JHiRFNFLRuQs8JoUPCGCv4,108
|
137
137
|
maleo_foundation/utils/loaders/key/rsa.py,sha256=UXcP0rr4QVacTsHLNQuU05wcow5CHWz-JW-zsVxlbPs,4121
|
138
|
-
maleo_foundation-0.3.
|
139
|
-
maleo_foundation-0.3.
|
140
|
-
maleo_foundation-0.3.
|
141
|
-
maleo_foundation-0.3.
|
138
|
+
maleo_foundation-0.3.61.dist-info/METADATA,sha256=rfyiX9EMkmZIgkAr599H3la9REj5owvKmA_-s7X5ki4,4150
|
139
|
+
maleo_foundation-0.3.61.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
140
|
+
maleo_foundation-0.3.61.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
|
141
|
+
maleo_foundation-0.3.61.dist-info/RECORD,,
|
File without changes
|
File without changes
|