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.14.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.14.0
File Size Uploaded Provenance Actions
switchbot_api-2.14.0.tar.gz 10.2 kB With provenance Details for switchbot_api-2.14.0.tar.gz

Built distribution (wheel)

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

Total release size: 21.1 kB

Release files / switchbot_api-2.14.0.tar.gz

Download URL switchbot_api-2.14.0.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5d484a4b9443e8044acc0c63bd5ce4de112093e62ac6072842211f6792ab4185
BLAKE2b-256 checksum
How to use checksums
b1b26f522f14110d97adb8ba50dbd2a402995d8c702a7443fe5974bc89de6db2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

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

Download URL switchbot_api-2.14.0-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
033683b3c2fbb337e89c65fdd86fa371c30862ac1bbb2f979ccf61c0242802c6
BLAKE2b-256 checksum
How to use checksums
80191d2e6b688a42cb2600f4dcff33f202c906d24c96ad160662e2d4d134eaab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

Security for switchbot-api 2.14.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for switchbot_api-2.14.0.tar.gz

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 Nov 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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