Skip to main content

Python API for Swidget smart devices

Project description

python-swidget

A library to manage Swidget smart devices

Basic Usage

Connect to the device using http/ https

    dev = SwidgetDimmer(host=host, token_name='x-secret-key', secret_key='password', use_https=True, use_websockets=False)
    dev.update()
    dev.turn_on()
    dev.close()

Connect to the device using websockets

    dev = SwidgetDimmer(host=host, token_name='x-secret-key', secret_key='password', use_https=True, use_websockets=True)
    dev.start()
    dev.update()
    dev.turn_on()
    dev.close()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_swidget-1.3.1.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_swidget-1.3.1-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file python_swidget-1.3.1.tar.gz.

File metadata

  • Download URL: python_swidget-1.3.1.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for python_swidget-1.3.1.tar.gz
Algorithm Hash digest
SHA256 da461253f43169a9a66e25e54a7ceead4f5f16eac41b038ce0dd430719991d6d
MD5 9541b42f3c71323e707a609b310a068f
BLAKE2b-256 fd549a026f703355b8f70f407d6783c257b4babcaae9fdb5dd26b70efd5361c5

See more details on using hashes here.

File details

Details for the file python_swidget-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: python_swidget-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for python_swidget-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f62a9687906e39a81bfd6125da4fd167729436c4830a9f2f7a461c91bfd17726
MD5 49d45e5f62712648c91c00a78273cde0
BLAKE2b-256 abc6eb717ac8671603e20656364b0c06b1e5fcfe7463af146ca2d9d93ddfabf5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page