Framework to build a webhook-based SmartThings SmartApp
Project description
SmartApp SDK
smartapp-sdk is a Python library to build a webhook-based SmartApp for the SmartThings platform.
The SDK is intended to be easy to use no matter how you choose to structure your code, whether that's a traditional Python webapp (such as FastAPI on Uvicorn) or a serverless application (such as AWS Lambda).
The SDK handles all the mechanics of the webhook lifecycle interface on your behalf. You just implement a single endpoint to accept the SmartApp webhook requests, and a single callback class where you define specialized behavior for the webhook events. A clean attrs object interface is exposed for use by your callback.
SDK documentation is found at smartapp-sdk.readthedocs.io. Look there for installation instructions, the class model documentation, and example code. The smartapp-sensortrack repo on GitHub is also a good example of how to use this SDK to build a traditional Python webapp.
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
Built Distribution
Hashes for smartapp_sdk-0.6.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50e85e7f67553d23e0fc77aad8454d84579293db99767ca1e630db5d73efc4b8 |
|
MD5 | 2df1e2f2ae83c7c129af5a80664d51bf |
|
BLAKE2b-256 | dd9bc241be850a1e63d656d22be7d6bd5e05e5332b0f861a86d719729acf17c8 |