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.12.0.tar.gz (9.0 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.12.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: switchbot_api-2.12.0.tar.gz
  • Upload date:
  • Size: 9.0 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.12.0.tar.gz
Algorithm Hash digest
SHA256 6fedce9e0572dbb694e650faa59a25e1e1288f7117ea3e564c3debb37a8eec4c
MD5 7c93120f540ccba9f65ee1b091820719
BLAKE2b-256 63d8790a4ad97e09fe93d90756444221a0cdcae81bdd301a833dea84c41719ba

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: switchbot_api-2.12.0-py3-none-any.whl
  • Upload date:
  • Size: 9.8 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.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b0033228e7067925aeeeac315a8da838d9bf0a15e6aa2a1e8513cb2817c4d55
MD5 55aaa68ee15ed41dba7c7160a333da08
BLAKE2b-256 cce5a010d0cbdffc1f99df9946e9211fff190a3197a6127402c55e455615ba52

See more details on using hashes here.

Provenance

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