Compare commits

..

No commits in common. "v2" and "main" have entirely different histories.
v2 ... main

3 changed files with 2 additions and 19 deletions

View File

@ -1 +1,2 @@
# python hello-world
# 091b3fe50919462c9c30811b21f9f3f1

16
main.py
View File

@ -1,16 +0,0 @@
import json
import logging as log
def main(request):
str_data = request.get_data(cache=True, as_text=True, parse_form_data=False)
print(f"print: {str_data}")
log.debug(f"dbg: {str_data}")
log.info(f"info: {str_data}")
log.warn(f"warn: {str_data}")
log.error(f"err: {str_data}")
try:
data = json.loads(str_data)
log.info(data)
except:
log.error("Provided data is not a valid json")
return str_data

View File

@ -1,2 +0,0 @@
functions-framework==1.4.3
markupsafe==2.0.1