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
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.0.0.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for switchbot_api-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce0a68be26bfe73c7b78beddfbf37231a5356e84532875d95abf80f4ff3fa7ad |
|
MD5 | 7367ac9d8ead418d3d30689de4a88f59 |
|
BLAKE2b-256 | ffa12acf76bc9964293613e05b27d13e990a33a59f1504f09f19675c6f984c19 |