Skip to main content

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

Examples README

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


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)

Uploaded Source

Built Distributions

tuyalinksdk-0.0.3-py3.8.egg (19.4 kB view hashes)

Uploaded Source

tuyalinksdk-0.0.3-py3-none-any.whl (9.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page