Skip to main content

Snips Skills Manager

Project description

Snips Skills Manager

Build Status PyPI MIT License

The Snips Skills Manager is a tool for easily setting up and managing a Snips assistant.

A single configuration file, the Snipsfile, is required to create a Snips assistant. In it, you specify:

  • The URL of your assistant, as created in the Snips Console

  • The skills you want to install

  • Bindings between intents and skills

  • If required, additional parameters for you skill, such as an API key or the address of a lamp

  • Various configuration parameters, such as language and logging preferences.

Check out Awesome Snips, a curated list of Snips skills, assistants and other resources to get you started. In particular, make sure to read the Getting Started guide.

Getting Started

Prerequisites

Raspbian

Depending on your setup, you may need to update pip, and install some packages via apt-get.

$ sudo apt-get update
$ sudo apt-get install python-pip libsdl-mixer1.2 libusb-1.0 python-pyaudio libsdl1.2-dev cython cython3 libudev-dev python-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev python-numpy libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev portaudio19-dev -y
$ pip install pip --upgrade

macOS

On macOS, pip can be installed via easy_install:

$ sudo easy_install pip

On macOS, the SDL library is required. It can be installed via Homebrew:

$ brew install sdl
$ pip install --global-option='build_ext' --global-option='-I/usr/local/include' --global-option='-L/usr/local/lib' pyaudio

Installation

The Snips Skills Manager is on PyPI, so you can just install it with pip:

$ pip install snipsskills

A note on virtualenv

We suggest installing and running Snips Skills using a virtualenv to avoid granting root privileges, and ensure your setup does not break when other packages are installed. Virtualenv should be enabled before installing the snipsskills pip package, can be installed and activated as follows:

$ sudo pip install --upgrade virtualenv
$ virtualenv --python=/usr/bin/python2.7 snips
$ source snips/bin/activate
$ pip install pip --upgrade
$ pip install snipsskills

To exit the virtualenv, simply run:

$ deactivate

Usage

Start your project by creating a Snipsfile, which is where all the configuration is set. This is a simple text file, adhering to the YAML format. Here is a basic configuration:

assistant: SNIPS_ASSISTANT_URL
locale: en_US
logging: True
default_location: Paris,fr
skills:
  - package_name: snipshue
    class_name: SnipsHue
    pip: snipshue=0.1.2
    params:
      hostname: PHILIPS_HUE_IP
      username: PHILIPS_HUE_USERNAME
      light_ids: [1, 2, 3, 4, 5, 6]
    intents:
      - intent: DeactivateObject
        action: "turn_off"
      - intent: ActivateLightColor
        action: "turn_on"

For further explanations and examples, check out our Snipsfile Wiki.

Next, setup the system by running the install command:

$ snipsskills install

You may need to restart your device. We are now ready to start the service, using the run command:

$ snipsskills run

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

snipsskills-0.1.4.923.tar.gz (690.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

snipsskills-0.1.4.923-py2.py3-none-any.whl (697.6 kB view details)

Uploaded Python 2Python 3

snipsskills-0.1.4.923-py2.7.egg (718.7 kB view details)

Uploaded Egg

File details

Details for the file snipsskills-0.1.4.923.tar.gz.

File metadata

File hashes

Hashes for snipsskills-0.1.4.923.tar.gz
Algorithm Hash digest
SHA256 a7d1027ead690becbd0fa26313f8bc7bec6fdeaf94be0dde2f29a5eba89ab37c
MD5 1530adb412958c2c458d7d5c939b7c7b
BLAKE2b-256 c1c92cd2b338c931ff22a8bfaf0038ca0fb66959e0b03b71d4cbb7ae193e50f9

See more details on using hashes here.

File details

Details for the file snipsskills-0.1.4.923-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for snipsskills-0.1.4.923-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2522ccd14fe32c879883e23cc3d0f68872b2eb0137b16cdce8b089efaad8da35
MD5 a441ae6daa35d24629f7e082d620f5c6
BLAKE2b-256 0fc9df5028abdf2dc6b9d87f91530eb0d715748720f240164d7dc951a0c15eac

See more details on using hashes here.

File details

Details for the file snipsskills-0.1.4.923-py2.7.egg.

File metadata

File hashes

Hashes for snipsskills-0.1.4.923-py2.7.egg
Algorithm Hash digest
SHA256 6b44c71d8e4ef53c474f2b3e4aa108645f37ea2db2ae5f39b9bae5d71221fa54
MD5 e1e648f3ad2d4a08ed5e4c959be272e6
BLAKE2b-256 6d8cbc6471c04cb7b9a080595b3d32b875c98f9f981606aecbe3571914b3b430

See more details on using hashes here.

Supported by

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