Code Monkey home page Code Monkey logo

magic_giulio_alexa_skill's Introduction

Python skill in Italian for alexa

create_package.sh -> creates the zip package to upload on S3 magic_giulio.py -> functionalities

Prerequirements

  1. Alexa skil defined: https://developer.amazon.com/alexa/console/ask
  2. AWS account with lambda defined
  3. Python 3.6+ installed on you local machine

Setup

If not already installed, install virtualenv. Then follows the next steps.

  1. Install virtualenv

    pip3 install virtualenv
    
  2. Clone repository

    git clone https://github.com/gpresazzi/magic_giulio_alexa_skill.git
    
  3. Setup virtual env

    virtualenv magic_giulio_venv
    source ./magic_giulio_venv/bin/activate
    pip3 install -r requirements.txt
    
  4. Unit testing

    Reference: https://medium.com/@bezdelev/how-to-test-a-python-aws-lambda-function-locally-with-pycharm-run-configurations-6de8efc4b206

    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
    
  5. 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

magic_giulio_alexa_skill's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.