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 |
| 0.2.2 | add timestamp to SharingDeviceListener |
| 0.2.3 | fix paho-mqtt dependency |
| 0.2.4 | fix asbtract decorator |
| 0.2.5 | handle unknown dpid in_on_device_report #39 |
| 0.2.6 | Cancel MQTT reconnect on stop #37 |
| 0.2.8 | Add report_type to device status #51 |
| 0.2.9 | Fix incorrect type hint in DeviceFunction #44 Add pre-commit workflow #46 Apply ruff format #47 |
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.
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 Distributions
Built Distribution
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
File details
Details for the file tuya_device_sharing_sdk-0.2.9-py3-none-any.whl.
File metadata
- Download URL: tuya_device_sharing_sdk-0.2.9-py3-none-any.whl
- Upload date:
- Size: 38.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18070a7f777c6ac2ce6b1e56c196558d12868614a34df58d9e7503aa6a4738c2
|
|
| MD5 |
6ba6e4a0894b2a99088cbe2f320ec327
|
|
| BLAKE2b-256 |
b5c8a5b30ad2f2ccf96c9e457623fcc2c206ea797f8d6dd27f4eec2d9dbfbefb
|