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.1

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.1
File Size Uploaded Provenance Actions
switchbot_api-2.13.1.tar.gz 9.8 kB With provenance Details for switchbot_api-2.13.1.tar.gz

Built distribution (wheel)

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

Total release size: 20.4 kB

Release files / switchbot_api-2.13.1.tar.gz

Download URL switchbot_api-2.13.1.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cbdd73cc185b3be32eaf06db143956e5a487b00198088d9ce02c4490b6ee269e
BLAKE2b-256 checksum
How to use checksums
fbab3ea3b1f7d07b5ce5b7f0d37e2811098fe90c1d547fdab20f3065e5f4610a
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 Oct 19, 2026.

Transparency log

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

Download URL switchbot_api-2.13.1-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
633b49b8e97650d88677b2fad4fc0b30e7643d79502902d30b309c1e6190d907
BLAKE2b-256 checksum
How to use checksums
5fa83b9a93ad59ece00cc7b47b21232a41206be233d0ebe8b341e7b727ef260e
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 Oct 19, 2026.

Transparency log

Security for switchbot-api 2.13.1

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.13.1.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 Oct 19, 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