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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.3.14
3
+ Version: 0.3.15
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -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.14.dist-info/METADATA,sha256=2IjSFuWCkXn1Rhl8ylgco8zFDMHdUrAi8wMBSrOH690,3740
138
- maleo_foundation-0.3.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
139
- maleo_foundation-0.3.14.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
140
- maleo_foundation-0.3.14.dist-info/RECORD,,
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