# Tuya IoT Python SDK
![PyPI](https://img.shields.io/pypi/v/tuya-iot-py-sdk)
![PyPI - Downloads](https://img.shields.io/pypi/dm/tuya-iot-py-sdk)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/tuya-iot-py-sdk)
A Python sdk for Tuya Open API, which provides basic IoT capabilities like device management, asset management and industry capabilities, helping you create IoT solutions.
With diversified devices and industries, Tuya Cloud 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
### Base APIs
- TuyaOpenAPI
- connect
- is_connect
- get
- post
- put
- delete
- TuyaOpenMQ
- start
- stop
- add_message_listener
- remove_message_listener
### APIs
- TuyaDeviceListener
- update_device
- add_device
- remove_device
#### Device control
- TuyaDeviceManager
- update_device_list_in_smart_home
- update_device_caches
- update_device_function_cache
- add_device_listener
- remove_device_listener
- get_device_info
- get_device_list_info
- remove_device
- remove_device_list
- get_factory_info
- factory_reset
- get_device_status
- get_device_list_status
- get_device_functions
- get_category_functions
- get_device_specification
- send_commands
#### Home
- TuyaHomeManager
- update_device_cache
- query_scenes
- trigger_scene
- query_infrared_devices
- trigger_infrared_commands
#### Assets
- TuyaAssetManager
- get_device_list
- get_asset_info
- get_asset_list
## Possible scenarios
- [HomeAssistant Tuya Plugin](https://github.com/tuya/tuya-home-assistant)
- [Tuya Connector Python](https://github.com/tuya/tuya-connector-python)
- [FHEM Tuya Plugin by fhempy](https://github.com/dominikkarall/fhempy/tree/master/FHEM/bindings/python/fhempy/lib/tuya_cloud)
- ...
## Prerequisite
### Registration
Please check [Tuya IoT Platform Configuration Guide](https://developer.tuya.com/en/docs/iot/Configuration_Guide_custom?id=Kamcfx6g5uyot) to register an account on the [Tuya IoT Platform](https://iot.tuya.com?_source=github), and get the required information. You need to create a Cloud project and complete the configuration of asset, user, and application. Then, you will get the **username**, **password**, **Access ID**, and **Access Secret**.
## Usage
## Installation
`pip3 install tuya-iot-py-sdk`
## Sample code
[OpenAPI Sample](https://github.com/tuya/tuya-iot-python-sdk/blob/master/example/device.py)
[Open IoT Hub Sample](https://github.com/tuya/tuya-iot-python-sdk/blob/master/example/mq.py)
## Tuya Open API reference
Tuya opens up a variety of APIs covering business scenarios such as device pairing, smart home management, device control, and scene automation. You can call APIs according to API integration documents to implement applications.
For more information, see the [documentation](https://developer.tuya.com/en/docs/cloud/?_source=github).
<!-- [Documentation > Cloud Development > API Reference](https://developer.tuya.com/docs/iot/open-api/api-reference/api-reference) -->
## Issue feedback
You can provide feedback on your issue via **Github Issue** or [Technical Ticket](https://service.console.tuya.com/).
## License
tuya-iot-py-sdk is available under the MIT license. Please see the [LICENSE](./LICENSE) file for more info.
Raw data
{
"_id": null,
"home_page": "https://github.com/tuya/tuya-iot-app-sdk-python",
"name": "tuya-iot-py-sdk",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "tuya iot app sdk python",
"author": "Tuya Inc.",
"author_email": "developer@tuya.com",
"download_url": "https://files.pythonhosted.org/packages/ad/32/51f5b7a9992c00f5857c272c1dce82216c0543232fcaffacfa5865d5da90/tuya-iot-py-sdk-0.6.6.tar.gz",
"platform": "",
"description": "# Tuya IoT Python SDK\n\n\n\n![PyPI](https://img.shields.io/pypi/v/tuya-iot-py-sdk)\n\n![PyPI - Downloads](https://img.shields.io/pypi/dm/tuya-iot-py-sdk)\n\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/tuya-iot-py-sdk)\n\n\nA Python sdk for Tuya Open API, which provides basic IoT capabilities like device management, asset management and industry capabilities, helping you create IoT solutions. \nWith diversified devices and industries, Tuya Cloud 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.\n\n\n## Features\n### Base APIs\n- TuyaOpenAPI\n\t- connect\n\t- is_connect\n\t- get\n\t- post\n\t- put\n\t- delete\n\n- TuyaOpenMQ\n\t- start\n\t- stop\n\t- add_message_listener\n\t- remove_message_listener\n\n### APIs\n- TuyaDeviceListener\n\t- update_device\n\t- add_device\n\t- remove_device\n\n#### Device control\n- TuyaDeviceManager\n\t- update_device_list_in_smart_home\n\t- update_device_caches\n\t- update_device_function_cache\n\t- add_device_listener\n\t- remove_device_listener\n\t- get_device_info\n\t- get_device_list_info\n\t- remove_device\n\t- remove_device_list\n\t- get_factory_info\n\t- factory_reset\n\t- get_device_status\n\t- get_device_list_status\n\t- get_device_functions\n\t- get_category_functions\n\t- get_device_specification\n\t- send_commands\n\n#### Home \n- TuyaHomeManager\n\t- update_device_cache\n\t- query_scenes\n\t- trigger_scene\n\t- query_infrared_devices\n\t- trigger_infrared_commands\n\n#### Assets\n- TuyaAssetManager\n\t- get_device_list\n\t- get_asset_info\n\t- get_asset_list\n\n\n\n## Possible scenarios\n\n\n\n- [HomeAssistant Tuya Plugin](https://github.com/tuya/tuya-home-assistant)\n\n- [Tuya Connector Python](https://github.com/tuya/tuya-connector-python)\n\n- [FHEM Tuya Plugin by fhempy](https://github.com/dominikkarall/fhempy/tree/master/FHEM/bindings/python/fhempy/lib/tuya_cloud)\n\n- ...\n\n\n## Prerequisite\n\n### Registration\n\nPlease check [Tuya IoT Platform Configuration Guide](https://developer.tuya.com/en/docs/iot/Configuration_Guide_custom?id=Kamcfx6g5uyot) to register an account on the [Tuya IoT Platform](https://iot.tuya.com?_source=github), and get the required information. You need to create a Cloud project and complete the configuration of asset, user, and application. Then, you will get the **username**, **password**, **Access ID**, and **Access Secret**.\n\n## Usage\n\n## Installation\n\n`pip3 install tuya-iot-py-sdk`\n\n## Sample code\n\n[OpenAPI Sample](https://github.com/tuya/tuya-iot-python-sdk/blob/master/example/device.py)\n\n[Open IoT Hub Sample](https://github.com/tuya/tuya-iot-python-sdk/blob/master/example/mq.py)\n\n## Tuya Open API reference\n\nTuya opens up a variety of APIs covering business scenarios such as device pairing, smart home management, device control, and scene automation. You can call APIs according to API integration documents to implement applications.\n\nFor more information, see the [documentation](https://developer.tuya.com/en/docs/cloud/?_source=github).\n<!-- [Documentation > Cloud Development > API Reference](https://developer.tuya.com/docs/iot/open-api/api-reference/api-reference) -->\n\n## Issue feedback\n\nYou can provide feedback on your issue via **Github Issue** or [Technical Ticket](https://service.console.tuya.com/).\n\n## License\n\ntuya-iot-py-sdk is available under the MIT license. Please see the [LICENSE](./LICENSE) file for more info.\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Python sdk for Tuya Open API, which provides IoT capabilities, maintained by Tuya official",
"version": "0.6.6",
"project_urls": {
"Bug Tracker": "https://github.com/tuya/tuya-iot-app-sdk-python/issues",
"Changes": "https://github.com/tuya/tuya-iot-python-sdk/wiki/Tuya-IoT-Python-SDK-Release-Notes",
"Homepage": "https://github.com/tuya/tuya-iot-app-sdk-python"
},
"split_keywords": [
"tuya",
"iot",
"app",
"sdk",
"python"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0892750c0ba363dcda0fee98b5df6b6e43e4a9d9587d4674a1f684d6a26e63b9",
"md5": "14603e78955322d13bdaca25447902ae",
"sha256": "41c99f721a9a92fd828886a00bd7e96362a79bd3260832c32ec3ad9f212db95f"
},
"downloads": -1,
"filename": "tuya_iot_py_sdk-0.6.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "14603e78955322d13bdaca25447902ae",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 17928,
"upload_time": "2021-12-25T08:29:07",
"upload_time_iso_8601": "2021-12-25T08:29:07.980700Z",
"url": "https://files.pythonhosted.org/packages/08/92/750c0ba363dcda0fee98b5df6b6e43e4a9d9587d4674a1f684d6a26e63b9/tuya_iot_py_sdk-0.6.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ad3251f5b7a9992c00f5857c272c1dce82216c0543232fcaffacfa5865d5da90",
"md5": "a30308055ed0147b69f374679dc3d17b",
"sha256": "4764be929c967bcc1e24daad1dd4d852d2a9665df5410c0117c150853e44e057"
},
"downloads": -1,
"filename": "tuya-iot-py-sdk-0.6.6.tar.gz",
"has_sig": false,
"md5_digest": "a30308055ed0147b69f374679dc3d17b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 16960,
"upload_time": "2021-12-25T08:29:09",
"upload_time_iso_8601": "2021-12-25T08:29:09.577183Z",
"url": "https://files.pythonhosted.org/packages/ad/32/51f5b7a9992c00f5857c272c1dce82216c0543232fcaffacfa5865d5da90/tuya-iot-py-sdk-0.6.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2021-12-25 08:29:09",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "tuya",
"github_project": "tuya-iot-app-sdk-python",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "tuya-iot-py-sdk"
}