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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da461253f43169a9a66e25e54a7ceead4f5f16eac41b038ce0dd430719991d6d
|
|
| MD5 |
9541b42f3c71323e707a609b310a068f
|
|
| BLAKE2b-256 |
fd549a026f703355b8f70f407d6783c257b4babcaae9fdb5dd26b70efd5361c5
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f62a9687906e39a81bfd6125da4fd167729436c4830a9f2f7a461c91bfd17726
|
|
| MD5 |
49d45e5f62712648c91c00a78273cde0
|
|
| BLAKE2b-256 |
abc6eb717ac8671603e20656364b0c06b1e5fcfe7463af146ca2d9d93ddfabf5
|