Skip to main content

A Python sdk for Tuya Open API, which provides IoT capabilities, maintained by Tuya official

Project description

Tuya Device Sharing SDK

A Python sdk for Tuya Open API, which provides basic IoT capabilities like device management capabilities, helping you create IoT solutions. With diversified devices and industries, Tuya IoT Development Platform opens basic IoT capabilities like device management, AI scenarios, and data analytics services, as well as industry capabilities, helping you create IoT solutions.

Features

APIs

  • Manager
    • update_device_cache
    • refresh_mq
    • send_commands
    • get_device_stream_allocate
    • query_scenes
    • trigger_scene
    • add_device_listener
    • remove_device_listener
    • unload
  • CustomerApi
    • get
    • post
    • put
    • delete
  • SharingMQ
    • start
    • stop
    • add_message_listener
    • remove_message_listener
  • DeviceRepository
    • query_devices_by_home
    • query_devices_by_ids
    • send_commands
  • HomeRepository
    • query_homes
  • SceneRepository
    • query_scenes
    • trigger_scene

Possible scenarios

Usage

Release Note

version Description
0.1.8 fix topic error
0.1.9 fix mq link id
0.2.0 MQTT bulk subscription
0.2.1 add updated_status_properties to SharingDeviceListener

Installation

pip3 install tuya-device-sharing-sdk

Issue feedback

You can provide feedback on your issue via Github Issue.

License

tuya-device-sharing-sdk is available under the MIT license. Please see the LICENSE file for more info.

main

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

tuya-device-sharing-sdk-0.2.1.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

tuya_device_sharing_sdk-0.2.1-py2.py3-none-any.whl (37.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file tuya-device-sharing-sdk-0.2.1.tar.gz.

File metadata

File hashes

Hashes for tuya-device-sharing-sdk-0.2.1.tar.gz
Algorithm Hash digest
SHA256 72e2c97c22109a7c9208dd727b3c72aad1669d351d843f6d63db0160d87d8942
MD5 22bcb8c6f1372b15ae3963598b4fa166
BLAKE2b-256 b69521737fb84c23571694a41518eef425d7a31d7d4e179be0927597754d713f

See more details on using hashes here.

File details

Details for the file tuya_device_sharing_sdk-0.2.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for tuya_device_sharing_sdk-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1bea74893d3775f8d873fb0997c40cd3abd256a409b886984816a1e0cd22d7d0
MD5 4b9eb59e5e1b8a44bad2605ece8dc25c
BLAKE2b-256 eed980daaf4f401893afb9c56f5f9123b08933685e2489bfc49c7b97e8c70e80

See more details on using hashes here.

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