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 3.0.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 3.0.0
File Size Uploaded Provenance Actions
switchbot_api-3.0.0.tar.gz 40.7 kB With provenance Details for switchbot_api-3.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 101.9 kB

Release files / switchbot_api-3.0.0.tar.gz

Download URL switchbot_api-3.0.0.tar.gz
Size 40.7 kB
Tags Source
SHA-256 checksum
How to use checksums
64e3aa82d2dd677486c0e253cd2d3e64385a26530d1d779f9fff5470df982b57
BLAKE2b-256 checksum
How to use checksums
dbba46b71cfaf536d59073c4734e3fcfbe4b178fcc9f83d29a98dd6c7a0c688a
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 29, 2026.

Transparency log

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

Download URL switchbot_api-3.0.0-py3-none-any.whl
Size 61.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f17d6ca84e2da7e3de6bb12c390bb755b913d25f0d586b9658fc9d13e44f787
BLAKE2b-256 checksum
How to use checksums
3dfd5ecb77e202267c738bee15110f3317b5269a452bb8199878ebca654447ea
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 29, 2026.

Transparency log

Security for switchbot-api 3.0.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-3.0.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 29, 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