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.
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 details)
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
tuyalinksdk-0.0.3-py3.8.egg
(19.4 kB
view details)
File details
Details for the file tuyalinksdk-0.0.3.tar.gz.
File metadata
- Download URL: tuyalinksdk-0.0.3.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98666d273669b90e679f2c27a5cb3ebc1fa7229d3c7521e9144af1aa4403d58b
|
|
| MD5 |
358472c6cbf3984bd3c91a8f3ea85f43
|
|
| BLAKE2b-256 |
991cf0b6c2667b422d4a26b947916916bac224a5cb23489c3080a2a3c808b7e3
|
File details
Details for the file tuyalinksdk-0.0.3-py3.8.egg.
File metadata
- Download URL: tuyalinksdk-0.0.3-py3.8.egg
- Upload date:
- Size: 19.4 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57d1ffddd5c113152cc8a388c8104e2551d910da560cbb13bd64fce11c4eeeac
|
|
| MD5 |
dc70f12e85fa897fdfab1a9a6ffde3ba
|
|
| BLAKE2b-256 |
25688eddffc13a592694e935dcfc6b33e2163cd848b97e32d01eb5a811b5f12d
|
File details
Details for the file tuyalinksdk-0.0.3-py3-none-any.whl.
File metadata
- Download URL: tuyalinksdk-0.0.3-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fec07a445c2932afd30c07b628489f29f4082ce86bb1037c1b187e4cde45378a
|
|
| MD5 |
1139b98fce4b9d801ac4859a455fce64
|
|
| BLAKE2b-256 |
dd5e2b56a731d8f881bd8d25fe2995476afda66a2f6925e452ddea858169e499
|