anjishnu / ask-alexa-pykit

A minimalist SDK for developing skills for the Amazon Echo's ASK - Alexa Skills Kit using Amazon Web Services's Python Lambda Functions. Currently supported profiles are for Linux servers and AWS Lambda. Check the appropriate release branch. The cherrypy release branches have added components for request validation.
MIT License
275 stars 58 forks source link

can this be used with chalice? #27

Closed richiverse closed 7 years ago

richiverse commented 7 years ago

See https://GitHub.com/AWSlabs/chalice

anjishnu commented 7 years ago

I've never tried it - but I don't see why not - this code has no dependencies and is written in pure python - so just do something like -

from lambda_function import alexa
# This loads the version of the alexa object which has been updated with annotations in the lambda_function code. 

@app.route("/")
def index():
    return alexa.route_request(app.current_request.json_body)
richiverse commented 7 years ago

Going to give it a try thanks!

On Tue, Oct 4, 2016, 6:39 PM Anjishnu Kumar notifications@github.com wrote:

I've never tried it - but I don't see why not - this code has no dependencies and is written in pure python - so just do something like -

from lambda_function import alexa

@app.route("/") def index(): return alexa.route_request(app.current_request.json_body)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/anjishnu/ask-alexa-pykit/issues/27#issuecomment-251534445, or mute the thread https://github.com/notifications/unsubscribe-auth/ACjB_qq3ZYlpVQBlatKQb6FG_tsPSWLNks5qwtW6gaJpZM4KONsZ .

anjishnu commented 7 years ago

Let me know if it works - then I'll close this out.