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.10.0.tar.gz (8.1 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.10.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: switchbot_api-2.10.0.tar.gz
  • Upload date:
  • Size: 8.1 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.10.0.tar.gz
Algorithm Hash digest
SHA256 1a2735399da292543ed70e2c4100fd0f19e3d0f507ba95ed7be2f3430b8d7971
MD5 248faf18800286cf7baa44a0687510c1
BLAKE2b-256 b532e22502949ae984c183e5ed35d647c9c802c787a25abf90f8bdc4bb6deb5a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: switchbot_api-2.10.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 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.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa3a893d51e23625549e51e34e875aeb652c82ca19ab7f039bebb8ffbc82c634
MD5 9751a78c3676b84beaf831d7c8a6e625
BLAKE2b-256 266367d543a0f231ba53e53fa30d8f8e933c844815ef9204f9f18bfbd12e6415

See more details on using hashes here.

Provenance

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