This is a Python version of the Cake Walk Alexa Skill. There is already a NodeJS version of it with a great explanation here.
There are a few things I would like to point out of this version:
- There is no official support for S3 in Python’s ASK SDK, so I used one that I wrote sometime ago (you can find it here) with a couple of changes:
- I had fixed an error in the function that gets the userID from the handler_input object.
- I added support for ApiClient to the S3 Persistence module.
- The code is not exactly the same as the original sample.
- I used ASK SDK for Python v1.9.0.
- I use pytz to handle the timezones.
- Added a couple of loggers (request and response)
- If you want to use this sample, add an environment variable called BUCKET_NAME with the name of the S3 Bucket you would like to use to store the data.
- You can also use DynamoDB to store the data.
I hope you find this useful.