Multi-file application - python module



examples/app1/lambda_function.py
import json
from mymod import add

def lambda_handler(event, context):
    return {
        'statusCode': 200,
        'headers': { 'Content-Type': 'application/json' },
        'body': json.dumps({ 'data' : add(19, 23) })
    }



examples/app1/mymod.py
def add(x, y):
   return x+y