hbldh/bleak
A cross platform Bluetooth Low Energy Client for Python using asyncio
📡 Bleak: Cross-Platform BLE in Python with asyncio
Async, platform-agnostic Bluetooth Low Energy client for Python.
Bleak (Bluetooth Low Energy platform Agnostic Klient) is a free MIT-licensed Python library by hbldh for working with BLE devices as a GATT client. It provides an asynchronous, cross-platform API to discover devices, connect to GATT servers, and communicate with hardware like sensors.
✨ Highlights
- Cross-platform backends: Supports Windows 11 (version 22000+), Linux with BlueZ >= 5.55, macOS/OS X via Core Bluetooth (10.15+), and Android via python-for-android.
- Asyncio-first API: Uses
async/awaitfor non-blocking BLE operations. - Device discovery:
BleakScanner.discover()finds nearby connectable Bluetooth devices. - GATT read/write: Connect with
BleakClientto read and write GATT characteristics (e.g., Model Number2A24). - Notifications support: Receives notifications from GATT servers.
- Simple install: Available on PyPI via
pip install bleak. - Practical examples: Includes example code, including connecting to a TI SensorTag CC2650.
💡 Why it matters
Bleak removes much of the platform-specific friction in BLE development by exposing one Python API across major operating systems. Instead of juggling different native BLE stacks directly, developers can use familiar asyncio patterns for scanning, connecting, and exchanging GATT data.
It fits best for Python projects that need to talk to BLE sensors, peripherals, or embedded devices across desktop and mobile environments, especially when async workflows and portability matter.
#Python #BluetoothLowEnergy #AsyncIO #OpenSource #TiniX
Similar Projects
Discover other similar projects and AI models.
A fork of the NimBLE library structured for compilation with Arduino, for use with ESP32, nRF5x.
:house_with_garden: Open source home automation that puts local control and privacy first.
Reverse engineer anything with agents, from app behavior down to native binaries.
The 30 Days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than 100 days. Follow your own pace. These videos may help too: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
Bermuda Bluetooth/BLE Triangulation / Trilateration for HomeAssistant
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.