Skip to main content

gosundpy

PyPI version PyPI - Downloads

Control your Gosund smart devices via python code.

Install

pip install gosundpy

Prerequisites

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

Usage

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)

Metadata

Release files for gosundpy 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gosundpy 0.9.0
File Size Uploaded Provenance Actions
gosundpy-0.9.0.tar.gz 5.4 kB Without provenance Details for gosundpy-0.9.0.tar.gz

Release files / gosundpy-0.9.0.tar.gz

Download URL gosundpy-0.9.0.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2da19fb56ebb8ec0e170aeae3b5f2a3664c878fc37baecc7c14f628661755c38
BLAKE2b-256 checksum
How to use checksums
7a525833d3fcbe8fb40994b7063a09753c5b95987231312cad98e2f8fc2258a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Security for gosundpy 0.9.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page