def GetValues()

in 02_bootstrap-scripts-python/bootstrap/context.py [0:0]


    def GetValues(self) -> dict:
        values: dict = {}
        keys = list(filter(lambda x: x.startswith(
            self.indicator), environ.keys()))
        for key in keys:
            newKey = key.replace(self.indicator, "")
            value: Union([str, bool, int]) = environ[key]
            splitVal = value.split(":")
            if len(splitVal) > 1 and splitVal[-1] in _TYPE_PARSE.keys():
                type = splitVal[-1]
                newVal = ":".join(splitVal[0:-2])
                if type == "STRING":
                    value = newVal
                elif type == "BOOLEAN":
                    value = newVal.lower() in _TRUE_STRINGS
                elif type == "NUMBER":
                    value = int(newVal)
            elif value in _TRUE_STRINGS:
                value = True
            elif value in _FALSE_STRINGS:
                value = False
            stringToNestedObject(newKey, value, values, separator="__")
        return values