Metadata-Version: 2.3
Name: switchbot_api
Version: 2.7.0
Summary: An asynchronous library to use Switchbot API
License: MIT
Author: Ravaka Razafimanantsoa
Author-email: contact@ravaka.dev
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: aiohttp (>=3.0.0)
Project-URL: Repository, https://github.com/SeraphicCorp/py-switchbot-api
Description-Content-Type: text/markdown

# py-switchbot-api
An asynchronous library to use Switchbot API. Allows to use both devices and remotes.

## Usage

```python
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

```bash
make install
```

### Lint

```bash
make format
```

### Test

```bash
make test
```

### build wheel

```bash
make build
```

### Clean

```bash
make clean
```

