]> git.cworth.org Git - turbot/blob - turbot_lambda/lambda_function.py
Share the rot() implementation between both Lambda and Flask implementations
[turbot] / turbot_lambda / lambda_function.py
1 from turbot.rot import rot
2
3 def lambda_handler(event, context):
4     """Top-level entry point for our lambda function.
5
6     Currently only calls into the rot() function but may become more
7     sophisticated later on."""
8
9     result = rot(event['args'])
10
11     return {
12         'statusCode': 200,
13         'body': result
14     }