Alexa API support for Python on AWS lambda
Project description
PyAlexa for AWS lambda and HTTPS server
© 2018 SiLeader.
usage
use AWS Lambda
import alexa def lambda_handler(data, _): request = alexa.Request(data) if request.type == "IntentRequest": response = alexa.Response() response.output_speech(text="Alexa Test") return response.response
use Flask
from flask import Flask, request, jsonify import alexa app = Flask(__name__) @app.route("/alexa/endpoint", methods=["POST"]) def alexa_endpoint(): req = alexa.Request(request.json) if request.type == "IntentRequest": res = alexa.Response() res.output_speech(text="Alexa Test") return jsonify(res.response)
License
Apache License 2.0
See LICENSE
for Dialogflow
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size pyalexa_lambda-1.0.4-py3-none-any.whl (3.8 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size pyalexa-lambda-1.0.4.tar.gz (3.0 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for pyalexa_lambda-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12056979bb06455c33299daed137af73669f45063a5da621a6e18fb6d03e9073 |
|
MD5 | 30f48d76b3c9097e7724bd35e33a4732 |
|
BLAKE2-256 | 20061193e2ce989d5da3fe47490a84e45ce463da2917cd7f86765c47d13ff570 |