https://github.com/mathead/askhome
Alexa Skills Kit library for working with Smart Home Skill API written in Python
https://github.com/mathead/askhome
alexa amazon-echo python smarthome
Last synced: 3 months ago
JSON representation
Alexa Skills Kit library for working with Smart Home Skill API written in Python
- Host: GitHub
- URL: https://github.com/mathead/askhome
- Owner: mathead
- License: mit
- Created: 2017-03-08T21:54:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-02T15:25:28.000Z (about 9 years ago)
- Last Synced: 2026-01-02T15:54:25.714Z (6 months ago)
- Topics: alexa, amazon-echo, python, smarthome
- Language: Python
- Homepage: http://askhome.rtfd.io
- Size: 71.3 KB
- Stars: 11
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](http://askhome.rtfd.io)
## Askhome - Alexa Smart Home Skills with Python
[](https://travis-ci.org/mathead/askhome)
[](https://codecov.io/gh/mathead/askhome)
Askhome wraps the [Smart Home Skill API](https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/smart-home-skill-api-reference) from Alexa Skills Kit (ASK) for Amazon Echo and removes all that ugly boilerplate.
Basic skill in askhome looks like this:
```python
from askhome import Smarthome, Appliance
class Star(Appliance):
@Appliance.action
def turn_on(self, request):
... # Let there be light
home = Smarthome()
home.add_appliance('star1', Star, name='Sun')
handler = home.lambda_handler
```
# Features
* Define what your smart devices can do with simple class interface
* Askhome then handles device discovery and routes Alexa requests to your methods
* Requests come in a nice preprocessed object and provide easy to use response methods
* If something goes wrong, just raise the appropriate exception
* You don't have to touch the raw JSON requests at all!
Check out the docs at http://askhome.rtfd.io!