Python skill in Italian for alexa
create_package.sh -> creates the zip package to upload on S3 magic_giulio.py -> functionalities
- Alexa skil defined: https://developer.amazon.com/alexa/console/ask
- AWS account with lambda defined
- Python 3.6+ installed on you local machine
If not already installed, install virtualenv. Then follows the next steps.
-
Install virtualenv
pip3 install virtualenv
-
Clone repository
git clone https://github.com/gpresazzi/magic_giulio_alexa_skill.git
-
Setup virtual env
virtualenv magic_giulio_venv source ./magic_giulio_venv/bin/activate pip3 install -r requirements.txt
-
Unit testing
To run unit test run
pytest
The unit test framework is based on python-lambda-local lib. Instead of launch the following command I choose to integrate this into pytest framework to facilitate the local testing of the lambda function.
python-lambda-local -f handler ./src/magic_giulio.py ./test/test-json/brava-ilaria-1.json
-
Create package for lambda
create_package.sh
the output file : skill_magic_giulio.zip can be used as source for the lambda function
REF: https://alexa-skills-kit-python-sdk.readthedocs.io/en/latest/GETTING_STARTED.html