Tuya IoT SDK based on the Tuya Common Runtime
Project description
Tuya IoT Device SDK for Python
Installation
Minimum Requirements
- Python 3.6+
Install from PyPI
python3 -m pip install tuyalinksdk
Install from source
git clone https://github.com/tuya/tuya-iot-link-sdk-python.git
python3 -m pip install ./tuya-iot-link-sdk-python
Examples
from tuyalinksdk.client import TuyaClient
client = TuyaClient(productid='<PID>', uuid='<UUID>', authkey='<AUTHKEY>')
def on_connected():
print('Connected.')
def on_dps(dps):
print('DataPoints:', dps)
client.push_dps(dps)
client.on_connected = on_connected
client.on_dps = on_dps
client.connect()
client.loop_start()
License
This library is licensed under the MIT License.
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
tuyalinksdk-0.0.2.tar.gz
(7.6 kB
view hashes)
Built Distribution
Close
Hashes for tuyalinksdk-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b6749e1236b3098d8bc963f403ad8857dabe63f6d65c4986a9412e4b4f0e58a |
|
MD5 | 3a082c6e65852d2b5c62dab945116aad |
|
BLAKE2b-256 | f85bf128832f5dcd20b0a700da73adf2a2ae7cac6aae55757c36afbc0c302e27 |