logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
+# Private configration array, DO NOT access this directly. Please invoke
+# config.get("foo") instead
+_config = {}
+
with open("config.json") as f:
logger.debug("Loading configuration file ...")
_config = json.loads(f.read())
logger.debug("cleared[%s]='%s' - EXIT!", type(cleared), cleared)
return cleared
+@lru_cache
def strip_hosted_on(software: str) -> str:
logger.debug("software='%s' - CALLED!", software)
logger.debug("software='%s' - EXIT!", software)
return software
+@lru_cache
def strip_powered_by(software: str) -> str:
logger.debug("software='%s' - CALLED!", software)
logger.debug("software='%s' - EXIT!", software)
return software
+@lru_cache
def strip_until(software: str, until: str) -> str:
logger.debug("software='%s',until='%s' - CALLED!", software, until)