def get(self, key): args = argparser.parse_args() cf = config.get_config() value = cf.get(key) if isinstance(value, config.Container): value = dict(value) return ["TODO get", key, cf.get(key)]
def post(self, key): args = argparser.parse_args() cf = config.get_config() value = ast.literal_eval(args["value"]) cf[key] = value
def get(self): cf = config.get_config() return list(cf.keys())