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.2.5.tar.gz
(15.8 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.2.5.tar.gz.
File metadata
- Download URL: python_swidget-1.2.5.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
560ef931ee7a5af0360220f0aab18f8202a00165eb0f7400f64660b2ddfa4a65
|
|
| MD5 |
c551f14f45adb2c24d3523131032a6bf
|
|
| BLAKE2b-256 |
8142b467fa40c87cd0395727eccd166b9aef9e09cc5a34a8a2c6c28a0e757c20
|
File details
Details for the file python_swidget-1.2.5-py3-none-any.whl.
File metadata
- Download URL: python_swidget-1.2.5-py3-none-any.whl
- Upload date:
- Size: 19.4 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 |
bec0009ef4324ad1cf377434fabb3be58a851cfe6b965c7a82620ddf6c348d9c
|
|
| MD5 |
09c2ae54becc4f9f5cc230df98cbd894
|
|
| BLAKE2b-256 |
9af983421d1620cf2638c9b5f93b6aa4b498feb8bb45e564ca771c7eaae41689
|