Skip to main content

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

make install

Lint

make format

Test

make test

build wheel

make build

Clean

make clean

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.11.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

switchbot_api-2.11.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file switchbot_api-2.11.0.tar.gz.

File metadata

  • Download URL: switchbot_api-2.11.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for switchbot_api-2.11.0.tar.gz
Algorithm Hash digest
SHA256 322707a39346ac12fedeab2d8d7160286b8b7946ba3f4c4f550f78ffb1235673
MD5 6bcfaa79df0e5d619e97d8706c480ff3
BLAKE2b-256 89ca24bae8513b6a008bfacbacf5e3fd91304e26c8c357c6bf8318e769a712c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for switchbot_api-2.11.0.tar.gz:

Publisher: release.yml on SeraphicCorp/py-switchbot-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file switchbot_api-2.11.0-py3-none-any.whl.

File metadata

  • Download URL: switchbot_api-2.11.0-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for switchbot_api-2.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e48373eebe558f9f5c59181cdb2d1cef59c8590642acc8cc469486ed09cbe71
MD5 b5ed0108af3653a259fa9b5e1520df39
BLAKE2b-256 63bffe84b646e8135756b3fc2cb966fd29fadea9cf8c397d3b50b507c42e2469

See more details on using hashes here.

Provenance

The following attestation bundles were made for switchbot_api-2.11.0-py3-none-any.whl:

Publisher: release.yml on SeraphicCorp/py-switchbot-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page