loading
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
import domain
import pprint
import json
import common

def event_handler(event, context):
  data = json.loads(event['body'])
  return {'body': domain.process(data)}

# and we compose our handlers via:
pprint.pprint(
  common.apig_response(common.status_code(event_handler({'body': '"Hello, Event!"'}, None), 500))
)
Fetching token