friend-lite-sdk
Python SDK for OMI / Friend Lite BLE wearable devices — audio streaming, button events, device control, and transcription.
Derived from the OMI Python SDK (MIT license, Based Hardware Contributors). See NOTICE for attribution.
Installation
pip install friend-lite-sdk
With optional transcription support:
pip install "friend-lite-sdk[deepgram]" # Deepgram cloud transcription
pip install "friend-lite-sdk[wyoming]" # Local ASR via Wyoming protocol
pip install "friend-lite-sdk[deepgram,wyoming]" # Both
Features
- BLE Audio Streaming — Connect to OMI/Friend Lite devices and stream Opus-encoded audio
- Button Events — Subscribe to single tap, double tap, long press events
- Haptic Control — Trigger haptic feedback patterns on supported devices
- WiFi Sync — Configure and trigger WiFi-based audio sync
- Storage Access — Read stored audio from device storage
- Neo1 Support — Sleep/wake control for Neo1 devices
- Transcription — Built-in Deepgram and Wyoming ASR integration
Quick Start
import asyncio
from friend_lite import OmiConnection, ButtonState, parse_button_event
async def main():
async with OmiConnection("AA:BB:CC:DD:EE:FF") as conn:
# Stream audio
await conn.subscribe_audio(lambda _handle, data: print(len(data), "bytes"))
# Listen for button events
await conn.subscribe_button(
lambda _handle, data: print("Button:", parse_button_event(data))
)
await conn.wait_until_disconnected()
asyncio.run(main())
Device Discovery
import asyncio
from friend_lite import print_devices
asyncio.run(print_devices())
Links
Metadata
Release files for friend-lite-sdk 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| friend_lite_sdk-0.3.0.tar.gz | 11.9 kB | Without provenance | Details for friend_lite_sdk-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| friend_lite_sdk-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for friend_lite_sdk-0.3.0-py3-none-any.whl |
Total release size: 25.2 kB
Release files / friend_lite_sdk-0.3.0.tar.gz
| Download URL | friend_lite_sdk-0.3.0.tar.gz |
|---|---|
| Size | 11.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9aa495537fe676705ff555093a1f503f4911a6ea7fdac1fd858a5fa1add92de8
|
|
BLAKE2b-256 checksum How to use checksums |
bf34a42eabaf46116472ea8afa3ce480fb91b5ea72847a9b0f03b23ae17511b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|
Release files / friend_lite_sdk-0.3.0-py3-none-any.whl
| Download URL | friend_lite_sdk-0.3.0-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9114c8c06b8f084e1bdb434198fc02c73b9b6f1098819602931995bade77be3f
|
|
BLAKE2b-256 checksum How to use checksums |
cbf0891c2bd7cc9031c45bf8928ca12c719ad7b3964d362d32cba6c85fa123ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|
Security for friend-lite-sdk 0.3.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.