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.1.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.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for switchbot_api-2.11.1.tar.gz
Algorithm Hash digest
SHA256 219e66d594eb7dac65de73d2717b02e321aa5bad2a9588b49dd2d290168d8713
MD5 aae79313263dc3ffb728177d73097257
BLAKE2b-256 e95993ef012c1a0bacfc800987bafc735c0861ed6362c7532d48f3836c3e64aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for switchbot_api-2.11.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: switchbot_api-2.11.1-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.12

File hashes

Hashes for switchbot_api-2.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5f9758a72a1d512b4bf343c539646d2dabc38c0ab7f95030732f8b1daef44b38
MD5 83578ede50eb6daabd758d2a102f333e
BLAKE2b-256 8ac4637f0fc864678ad2b4b2da113ad1d23568aa17ba43998d1b78caa1d0b04c

See more details on using hashes here.

Provenance

The following attestation bundles were made for switchbot_api-2.11.1-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