gosundpy


Namegosundpy JSON
Version 0.9.0 PyPI version JSON
download
home_pagehttps://github.com/purple4reina/gosundpy
SummaryPython API for controling Gosund smart devices
upload_time2024-05-01 03:38:12
maintainerNone
docs_urlNone
authorRey Abolofia
requires_python<4,>=3.7
licenseMIT
keywords gosund smartlife tuya iot api sdk python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # gosundpy

[![PyPI version](https://badge.fury.io/py/gosundpy.svg)](https://badge.fury.io/py/gosundpy)
![PyPI - Downloads](https://img.shields.io/pypi/dm/gosundpy)

Control your Gosund smart devices via python code.

## Install

```bash
pip install gosundpy
```

## Prerequisites

In order to control your devices, you must register your devices using the Tuya
Smart app ([ios][1]/[android][2]) and create a new Cloud Project in the Tuya
IoT Platform.

## Usage

```python
import time

from gosundpy import Gosund

gosund = Gosund('username', 'password', 'access_id', 'access_key')

commands = ['turn_off', 'turn_on', 'turn_off', 'switch', 'switch', 'turn_off']

switch = gosund.get_device('12345')
for cmd in commands:
    getattr(switch, cmd)()
    time.sleep(1)

lightbulb = gosund.get_device('67890')
for cmd in commands:
    getattr(lightbulb, cmd)()
    time.sleep(1)
```

<!-- links -->
[1]: https://apps.apple.com/us/app/tuya-smart/id1034649547
[2]: https://play.google.com/store/apps/details?id=com.tuya.smart&hl=en_US&gl=US

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/purple4reina/gosundpy",
    "name": "gosundpy",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4,>=3.7",
    "maintainer_email": null,
    "keywords": "gosund, smartlife, tuya, iot, api, sdk, python",
    "author": "Rey Abolofia",
    "author_email": "purple4reina@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/7a/52/5833d3fcbe8fb40994b7063a09753c5b95987231312cad98e2f8fc2258a7/gosundpy-0.9.0.tar.gz",
    "platform": null,
    "description": "# gosundpy\n\n[![PyPI version](https://badge.fury.io/py/gosundpy.svg)](https://badge.fury.io/py/gosundpy)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/gosundpy)\n\nControl your Gosund smart devices via python code.\n\n## Install\n\n```bash\npip install gosundpy\n```\n\n## Prerequisites\n\nIn order to control your devices, you must register your devices using the Tuya\nSmart app ([ios][1]/[android][2]) and create a new Cloud Project in the Tuya\nIoT Platform.\n\n## Usage\n\n```python\nimport time\n\nfrom gosundpy import Gosund\n\ngosund = Gosund('username', 'password', 'access_id', 'access_key')\n\ncommands = ['turn_off', 'turn_on', 'turn_off', 'switch', 'switch', 'turn_off']\n\nswitch = gosund.get_device('12345')\nfor cmd in commands:\n    getattr(switch, cmd)()\n    time.sleep(1)\n\nlightbulb = gosund.get_device('67890')\nfor cmd in commands:\n    getattr(lightbulb, cmd)()\n    time.sleep(1)\n```\n\n<!-- links -->\n[1]: https://apps.apple.com/us/app/tuya-smart/id1034649547\n[2]: https://play.google.com/store/apps/details?id=com.tuya.smart&hl=en_US&gl=US\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python API for controling Gosund smart devices",
    "version": "0.9.0",
    "project_urls": {
        "Bug Tracker": "https://github.com/purple4reina/gosundpy/issues",
        "Homepage": "https://github.com/purple4reina/gosundpy",
        "Source": "https://github.com/purple4reina/gosundpy"
    },
    "split_keywords": [
        "gosund",
        " smartlife",
        " tuya",
        " iot",
        " api",
        " sdk",
        " python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7a525833d3fcbe8fb40994b7063a09753c5b95987231312cad98e2f8fc2258a7",
                "md5": "ec9f0c8ed3f274aa4dc14c3b68f29efb",
                "sha256": "2da19fb56ebb8ec0e170aeae3b5f2a3664c878fc37baecc7c14f628661755c38"
            },
            "downloads": -1,
            "filename": "gosundpy-0.9.0.tar.gz",
            "has_sig": false,
            "md5_digest": "ec9f0c8ed3f274aa4dc14c3b68f29efb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4,>=3.7",
            "size": 5417,
            "upload_time": "2024-05-01T03:38:12",
            "upload_time_iso_8601": "2024-05-01T03:38:12.082715Z",
            "url": "https://files.pythonhosted.org/packages/7a/52/5833d3fcbe8fb40994b7063a09753c5b95987231312cad98e2f8fc2258a7/gosundpy-0.9.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-01 03:38:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "purple4reina",
    "github_project": "gosundpy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "gosundpy"
}
        
Elapsed time: 0.90835s