An asynchronous library to use Switchbot API
Project description
py-switchbot-api
An asynchronous library to use Switchbot API. Allows to use both devices and remotes.
Usage
token = "xxx"
secret = "yyy"
client = SwitchBotAPI(token, secret)
print(await client.list_devices())
print(await client.get_status('some-id'))
await client.send_command('some-id', {COMMAND})
Development
Install
poetry install
Lint
poetry run black switchbot_api/
poetry run mypy switchbot_api/
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
switchbot_api-2.2.0.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for switchbot_api-2.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 707d3d415e54c61e1a4c90610d4e4c62645f7c98b436a69442cb0393ea0086b7 |
|
MD5 | f5d812b403506e51085803ebb3b39fcf |
|
BLAKE2b-256 | 4b5d0f5e1dc7fb5ca1fc5e12c7e08bbf0517176b5ef0f715e30eb7a4379c8693 |