Metadata-Version: 2.4
Name: tuya-device-sharing-sdk
Version: 0.2.8
Summary: A Python sdk for Tuya Open API, which provides IoT capabilities, maintained by Tuya official
Home-page: https://github.com/tuya/tuya-device-sharing-sdk
Author: Tuya Inc.
Author-email: developer@tuya.com
License: MIT
Project-URL: Bug Tracker, https://github.com/tuya/tuya-device-sharing-sdk/issues
Project-URL: Changes, https://github.com/tuya/tuya-device-sharing-sdk/wiki/Tuya-Device-Sharing-SDK-Release-Notes
Keywords: tuya device sdk python
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: paho-mqtt
Requires-Dist: requests
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: project-url
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# 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

- [Smart Life Integration](https://github.com/tuya/tuya-smart-life)

## 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                  |

## 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](./LICENSE) file for more info.
