# streamdeck-phone-sdk

Small plugin SDK package used by PhoneStreamDeck plugins.

It provides:
- `ActionSpec`
- `PluginWidget`

Example plugin folder:

```text
my_plugin/
  config.yaml
  widget.py
```

`config.yaml`:

```yaml
dependencies:
  - requests
```

`widget.py`:

```python
from pathlib import Path
from streamdeck import ActionSpec, PluginWidget

CONFIG_PATH = Path(__file__).with_name("config.yaml")
LOGO = "MY"

def create_widget():
    return PluginWidget(
        plugin_id="my_plugin",
        title="My Plugin",
        logo=LOGO,
        actions=[ActionSpec("run", "Run")],
    )
```
