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.1.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for switchbot_api-2.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 265893c0262d3c9807d105c5433d3790aa0c88c163e384298918f286147e5815 |
|
MD5 | 6d96b52bf9be68f8b11427899b280528 |
|
BLAKE2b-256 | c4cc6de4db45eb757cf37b88501fbe19188cb1d6a3c6a1735c31097706c5043d |