cloud-radar 0.13.1a2__py3-none-any.whl → 0.13.1a3__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.
@@ -8,7 +8,8 @@ import base64 as b64
8
8
  import ipaddress
9
9
  import json
10
10
  import re
11
- from typing import TYPE_CHECKING, Any, Callable, Dict, List # noqa: I101
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cloud-radar
3
- Version: 0.13.1a2
3
+ Version: 0.13.1a3
4
4
  Summary: Run functional tests on cloudformation stacks.
5
5
  Home-page: https://github.com/DontShaveTheYak/cloud-radar
6
6
  License: Apache-2.0
@@ -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=k1i12FDChgLwGsG-3q9kdYbuEOgnMEs0qPynp-YcZAM,28494
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.1a2.dist-info/LICENSE.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
16
- cloud_radar-0.13.1a2.dist-info/METADATA,sha256=7U1J8bo_bNADX-ASBnweOh4MRhlUvVD-swyeHvzpM7s,15744
17
- cloud_radar-0.13.1a2.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
18
- cloud_radar-0.13.1a2.dist-info/RECORD,,
15
+ cloud_radar-0.13.1a3.dist-info/LICENSE.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
16
+ cloud_radar-0.13.1a3.dist-info/METADATA,sha256=8idB993Qsu9MP93Q7MiCLrUTMOFZq66NKZbWl4z8m7U,15744
17
+ cloud_radar-0.13.1a3.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
18
+ cloud_radar-0.13.1a3.dist-info/RECORD,,