Skip to main content

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

Metadata

Release files for switchbot-api 2.13.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for switchbot-api 2.13.0
File Size Uploaded
switchbot_api-2.13.0.tar.gz 9.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for switchbot-api 2.13.0
File Interpreter ABI Platform
switchbot_api-2.13.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.3 kB

Release files / switchbot_api-2.13.0.tar.gz

Download URL switchbot_api-2.13.0.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cf65934cc4cf8bd7cb3088b4d6172e269f415f9ce3764b03b0ebe6fa894c1030
BLAKE2b-256 checksum
How to use checksums
61fb87d015326b063e52199d943ef9ee38a0e310aed957f6275f9f411c386847
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.

Transparency log

Release files / switchbot_api-2.13.0-py3-none-any.whl

Download URL switchbot_api-2.13.0-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7db8ab2ce0ba3a2bf3e444745643910a045514e681a12b7907fb1f77096d0b66
BLAKE2b-256 checksum
How to use checksums
39c23ce251b41dabf1dfc1c04bc5a844667748b7d53cf68eebc2d32a2a3c65f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.13.0 This release

2 release files

2.12.0

2 release files

2.11.1

2 release files

2.9.0

2 release files

2.8.0

2 release files

2.7.0

2 release files

2.6.0

2 release files

2.5.0

2 release files

2.4.0

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page