Metadata-Version: 2.4
Name: sok-ble
Version: 0.1.1
Summary: SOK BLE battery interface library
Author-email: Mitchell Carlson <mitchell.carlson.pro@gmail.com>
License: Apache-2.0
Project-URL: Homepage, https://github.com/IAmTheMitchell/sok-ble
Project-URL: Bug Tracker, https://github.com/IAmTheMitchell/sok-ble/issues
Project-URL: Changelog, https://github.com/IAmTheMitchell/sok-ble/blob/main/CHANGELOG.md
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: bleak>=0.22.3
Requires-Dist: bleak-retry-connector>=3.10.0

# SOK BLE

![CI](https://github.com/IAmTheMitchell/sok-ble/actions/workflows/ci.yml/badge.svg)

Python library for interacting with SOK Bluetooth-enabled batteries.

## Quick Start

```python
import asyncio
from bleak import BleakScanner
from sok_ble.sok_bluetooth_device import SokBluetoothDevice


async def main() -> None:
    device = await BleakScanner.find_device_by_address("AA:BB:CC:DD:EE:FF")
    sok = SokBluetoothDevice(device)
    await sok.async_update()
    print("Voltage:", sok.voltage)


asyncio.run(main())
```
