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.

Install

pip install AwsLexAlexa -t .

Usage:

from awsLexAlexa.event_handler import EventHandler, LEX, ALEXA

ev = EventHandler()

# Get logger with UserId included in log message: 
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()

@ev.default_intent()
def default(event):
    # TODO: Implement logic required
    # Other intents which function have not be specified
    return event.delegate_response()

...
...

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

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.9.tar.gz (8.2 kB view details)

Uploaded Source

File details

Details for the file awsLexAlexa-0.9.tar.gz.

File metadata

  • Download URL: awsLexAlexa-0.9.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.5

File hashes

Hashes for awsLexAlexa-0.9.tar.gz
Algorithm Hash digest
SHA256 5b54783e73c5c98bbc7d10ab81386a584132608007771fe175a7d618ec2120b0
MD5 8a5a3ff00f1c2e311c007421a3a90937
BLAKE2b-256 3de828c33e5eec04899251ef92476261c51831f965c850bcf970808aec7276a9

See more details on using hashes here.

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