TuyaOS Link SDK for Python
Project description
TuyaOS Link SDK for Python
Minimum Requirements
- Python 3.6+
Install from PyPI
python3 -m pip install tuyalinksdk
Install from source
git clone https://github.com/tuya/tuyaos-link-sdk-python.git
python3 -m pip install ./tuyaos-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.3.tar.gz
(8.4 kB
view hashes)
Built Distributions
tuyalinksdk-0.0.3-py3.8.egg
(19.4 kB
view hashes)
Close
Hashes for tuyalinksdk-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fec07a445c2932afd30c07b628489f29f4082ce86bb1037c1b187e4cde45378a |
|
MD5 | 1139b98fce4b9d801ac4859a455fce64 |
|
BLAKE2b-256 | dd5e2b56a731d8f881bd8d25fe2995476afda66a2f6925e452ddea858169e499 |