{"id":19858261,"url":"https://github.com/tuya/tuya-iot-python-sdk","last_synced_at":"2025-05-02T02:30:52.910Z","repository":{"id":40310212,"uuid":"351805979","full_name":"tuya/tuya-iot-python-sdk","owner":"tuya","description":"Tuya IoT Python SDK for Tuya Open API.","archived":false,"fork":false,"pushed_at":"2022-12-23T22:50:04.000Z","size":327,"stargazers_count":142,"open_issues_count":31,"forks_count":55,"subscribers_count":27,"default_branch":"main","last_synced_at":"2025-04-19T18:33:49.618Z","etag":null,"topics":["iot","python","sdk","tuya"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tuya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-26T14:17:43.000Z","updated_at":"2025-04-04T19:00:25.000Z","dependencies_parsed_at":"2023-01-30T19:45:26.234Z","dependency_job_id":null,"html_url":"https://github.com/tuya/tuya-iot-python-sdk","commit_stats":null,"previous_names":["tuya/tuya-iot-app-sdk-python"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuya%2Ftuya-iot-python-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuya%2Ftuya-iot-python-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuya%2Ftuya-iot-python-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuya%2Ftuya-iot-python-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuya","download_url":"https://codeload.github.com/tuya/tuya-iot-python-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251972449,"owners_count":21673606,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["iot","python","sdk","tuya"],"created_at":"2024-11-12T14:22:36.856Z","updated_at":"2025-05-02T02:30:52.559Z","avatar_url":"https://github.com/tuya.png","language":"Python","readme":"# 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 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.\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 \t\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\t\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/Platform_Configuration_smarthome?id=Kamcgamwoevrx) 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\u003c!-- [Documentation \u003e Cloud Development \u003e API Reference](https://developer.tuya.com/docs/iot/open-api/api-reference/api-reference) --\u003e\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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuya%2Ftuya-iot-python-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuya%2Ftuya-iot-python-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuya%2Ftuya-iot-python-sdk/lists"}