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.
Metadata
Release files for tuyalinksdk 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tuyalinksdk-0.0.3.tar.gz | 8.4 kB | Without provenance | Details for tuyalinksdk-0.0.3.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tuyalinksdk-0.0.3-py3.8.egg | Legacy Egg format | - | - | Details for tuyalinksdk-0.0.3-py3.8.egg |
| tuyalinksdk-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for tuyalinksdk-0.0.3-py3-none-any.whl |
Total release size: 37.2 kB
Release files / tuyalinksdk-0.0.3.tar.gz
| Download URL | tuyalinksdk-0.0.3.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98666d273669b90e679f2c27a5cb3ebc1fa7229d3c7521e9144af1aa4403d58b
|
|
BLAKE2b-256 checksum How to use checksums |
991cf0b6c2667b422d4a26b947916916bac224a5cb23489c3080a2a3c808b7e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / tuyalinksdk-0.0.3-py3.8.egg
| Download URL | tuyalinksdk-0.0.3-py3.8.egg |
|---|---|
| Size | 19.4 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
57d1ffddd5c113152cc8a388c8104e2551d910da560cbb13bd64fce11c4eeeac
|
|
BLAKE2b-256 checksum How to use checksums |
25688eddffc13a592694e935dcfc6b33e2163cd848b97e32d01eb5a811b5f12d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / tuyalinksdk-0.0.3-py3-none-any.whl
| Download URL | tuyalinksdk-0.0.3-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fec07a445c2932afd30c07b628489f29f4082ce86bb1037c1b187e4cde45378a
|
|
BLAKE2b-256 checksum How to use checksums |
dd5e2b56a731d8f881bd8d25fe2995476afda66a2f6925e452ddea858169e499
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for tuyalinksdk 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.