cloud-radar 0.13.1a2__py3-none-any.whl → 0.13.1a4__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.
- cloud_radar/cf/unit/functions.py +4 -2
- {cloud_radar-0.13.1a2.dist-info → cloud_radar-0.13.1a4.dist-info}/METADATA +1 -1
- {cloud_radar-0.13.1a2.dist-info → cloud_radar-0.13.1a4.dist-info}/RECORD +5 -5
- {cloud_radar-0.13.1a2.dist-info → cloud_radar-0.13.1a4.dist-info}/LICENSE.txt +0 -0
- {cloud_radar-0.13.1a2.dist-info → cloud_radar-0.13.1a4.dist-info}/WHEEL +0 -0
cloud_radar/cf/unit/functions.py
CHANGED
@@ -8,7 +8,8 @@ import base64 as b64
|
|
8
8
|
import ipaddress
|
9
9
|
import json
|
10
10
|
import re
|
11
|
-
from
|
11
|
+
from functools import cache
|
12
|
+
from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional # noqa: I101
|
12
13
|
|
13
14
|
import requests
|
14
15
|
|
@@ -25,7 +26,7 @@ Dispatch = Dict[str, Callable[..., Any]]
|
|
25
26
|
# The maps are a nested dictionary.
|
26
27
|
Mapping = Dict[str, Dict[str, Dict[str, Any]]]
|
27
28
|
|
28
|
-
REGION_DATA = None
|
29
|
+
REGION_DATA: Optional[List[dict]] = None
|
29
30
|
|
30
31
|
|
31
32
|
def base64(_t: "Template", value: Any) -> str:
|
@@ -877,6 +878,7 @@ def get_region_azs(region_name: str) -> List[str]:
|
|
877
878
|
raise Exception(f"Unable to find region {region_name}.")
|
878
879
|
|
879
880
|
|
881
|
+
@cache
|
880
882
|
def _fetch_region_data() -> List[dict]:
|
881
883
|
"""Fetchs Region JSON from URL.
|
882
884
|
|
@@ -10,9 +10,9 @@ cloud_radar/cf/unit/_parameter.py,sha256=AdPIqc2ggSW1VR0USF30zjphX3z1HHbGKQt8n-K
|
|
10
10
|
cloud_radar/cf/unit/_resource.py,sha256=dWaR-5s6ea5mIu6Dhf1hY31Wd4WLHbHsbyxnu2Tz6QI,8512
|
11
11
|
cloud_radar/cf/unit/_stack.py,sha256=_S0L9O7Lw-QAJDKubClp2b6UYtYfyzg272_7WQkUdo8,5785
|
12
12
|
cloud_radar/cf/unit/_template.py,sha256=u1r1RkUPI0t8SGolWEjb3doavFwUQRaE0wOKCi_ijiI,32242
|
13
|
-
cloud_radar/cf/unit/functions.py,sha256=
|
13
|
+
cloud_radar/cf/unit/functions.py,sha256=F6Ex-LWz90illNFCMVeIOq0rVDZLBku55WnL-lqNO4c,28561
|
14
14
|
cloud_radar/cf/unit/test__template.py,sha256=jVPMJTn6Q0sSZ8BjRGyutuR9-NjdHdwDTVsd2kvjQbs,1491
|
15
|
-
cloud_radar-0.13.
|
16
|
-
cloud_radar-0.13.
|
17
|
-
cloud_radar-0.13.
|
18
|
-
cloud_radar-0.13.
|
15
|
+
cloud_radar-0.13.1a4.dist-info/LICENSE.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
16
|
+
cloud_radar-0.13.1a4.dist-info/METADATA,sha256=7d3cwKpeuJQWJeFVMIkfBi05ETBW9PzL41usk9RRGl4,15744
|
17
|
+
cloud_radar-0.13.1a4.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
|
18
|
+
cloud_radar-0.13.1a4.dist-info/RECORD,,
|
File without changes
|
File without changes
|