Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
AwsLexAlexa 
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
Metadata
Release files for awsLexAlexa 0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| awsLexAlexa-0.9.tar.gz | 8.2 kB | Details |
Release files / awsLexAlexa-0.9.tar.gz
| Download URL | awsLexAlexa-0.9.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b54783e73c5c98bbc7d10ab81386a584132608007771fe175a7d618ec2120b0
|
|
BLAKE2b-256 checksum How to use checksums |
3de828c33e5eec04899251ef92476261c51831f965c850bcf970808aec7276a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|