import json from pprint import pprint from src.app import handler with open("event.json") as file: result = handler(json.load(file), {}) pprint(result)