maleo-foundation 0.3.14__py3-none-any.whl → 0.3.15__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-0.3.14.dist-info → maleo_foundation-0.3.15.dist-info}/METADATA +1 -1
- {maleo_foundation-0.3.14.dist-info → maleo_foundation-0.3.15.dist-info}/RECORD +4 -5
- maleo_foundation/utils/cleaner.py +0 -22
- {maleo_foundation-0.3.14.dist-info → maleo_foundation-0.3.15.dist-info}/WHEEL +0 -0
- {maleo_foundation-0.3.14.dist-info → maleo_foundation-0.3.15.dist-info}/top_level.txt +0 -0
@@ -112,7 +112,6 @@ maleo_foundation/models/transfers/results/service/controllers/__init__.py,sha256
|
|
112
112
|
maleo_foundation/models/transfers/results/service/controllers/rest.py,sha256=wCuFyOTQkuBs2cqjPsWnPy0XIsCfMqGByhrSy57qp7Y,1107
|
113
113
|
maleo_foundation/utils/__init__.py,sha256=ZZv0NDcTdHsHl51EKfgrlCm8CQmgvyIndMcQABDudN0,391
|
114
114
|
maleo_foundation/utils/cache.py,sha256=2EtXXN4Yl7P98Jc-C9P6FaBU5NOh1hFqeThRXkf99rg,734
|
115
|
-
maleo_foundation/utils/cleaner.py,sha256=dv80jDd8uAXuqyB5_UPbT2JksJ-hsq286DB2WCjjAYs,696
|
116
115
|
maleo_foundation/utils/client.py,sha256=CGwn8eH5WlwnE5tPMfMAH5V3BItBgVmYBZnXpLjTVSc,2826
|
117
116
|
maleo_foundation/utils/controller.py,sha256=Ub1R-JN6spmXakYrOY7igwaNt4Sg8LASASdXymxZcCI,6954
|
118
117
|
maleo_foundation/utils/exceptions.py,sha256=z24kzEP2geaAEElxXaEy7ln6KodebXvtlu-h1inZ_nw,6376
|
@@ -134,7 +133,7 @@ maleo_foundation/utils/loaders/credential/__init__.py,sha256=qopTKvcMVoTFwyRijeg
|
|
134
133
|
maleo_foundation/utils/loaders/credential/google.py,sha256=ZglnLdW3lHmaKER4mwGe5N5ERus-bdsamfpwGmQYPIo,6344
|
135
134
|
maleo_foundation/utils/loaders/key/__init__.py,sha256=hVygcC2ImHc_aVrSrOmyedR8tMUZokWUKCKOSh5ctbo,106
|
136
135
|
maleo_foundation/utils/loaders/key/rsa.py,sha256=gDhyX6iTFtHiluuhFCozaZ3pOLKU2Y9TlrNMK_GVyGU,3796
|
137
|
-
maleo_foundation-0.3.
|
138
|
-
maleo_foundation-0.3.
|
139
|
-
maleo_foundation-0.3.
|
140
|
-
maleo_foundation-0.3.
|
136
|
+
maleo_foundation-0.3.15.dist-info/METADATA,sha256=v_w7cZNvNpjv5KdlYTVoDS_pn1zj2cuNR_qKuX3-75Q,3740
|
137
|
+
maleo_foundation-0.3.15.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
138
|
+
maleo_foundation-0.3.15.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
|
139
|
+
maleo_foundation-0.3.15.dist-info/RECORD,,
|
@@ -1,22 +0,0 @@
|
|
1
|
-
from typing import Any, Dict, List, Optional
|
2
|
-
|
3
|
-
def clean_pubsub_message(
|
4
|
-
msg:Dict[str, Any],
|
5
|
-
custom_types:Optional[List[str]] = None
|
6
|
-
) -> Dict[str, Any]:
|
7
|
-
for k, v in msg.items():
|
8
|
-
# Clean custom_types
|
9
|
-
if isinstance(v, dict) and len(v) == 1:
|
10
|
-
only_key = next(iter(v))
|
11
|
-
if custom_types is not None and only_key in custom_types:
|
12
|
-
msg[k] = v[only_key]
|
13
|
-
|
14
|
-
# Clean "map"
|
15
|
-
if isinstance(v, dict) and "map" in v and isinstance(v["map"], dict):
|
16
|
-
msg[k] = v["map"]
|
17
|
-
|
18
|
-
# Clean "array"
|
19
|
-
if isinstance(v, dict) and "array" in v and isinstance(v["array"], list):
|
20
|
-
msg[k] = v["array"]
|
21
|
-
|
22
|
-
return msg
|
File without changes
|
File without changes
|