Skip to main content

No project description provided

Project description

AwsLexAlexa Generic badge

This library may wrap the internal logistic between Amazon Lex or Alexa (Amazon echo) using AWS Lambda as background serverless.

You can see the implementation in lambda_function.py.

Usage:

from awsLexAlexa.event_handler import EventHandler, LEX, ALEXA

ev = EventHandler()
logger = ev.get_configured_logger("mi_app_name")

@ev.handler_intent(intent='intent-name')
def foo(event):
    # TODO: Implement logic required
    return event.delegate_response() # optional
...
...

def lambda_handler(event, context):
    logger.debug('Request:\n {}'.format(event))
    action = ev.execute(event)
    logger.debug('Response:\n {}'.format(action))
    return action

Compile or download precompiled file:

python setup.py sdist --formats=gztar,zip

Install:

python setup.py install --record files_aws.txt

Uninstall:

cat files_aws.txt | xargs sudo rm -rf

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

awsLexAlexa-0.6.tar.gz (9.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page