bleak
Bluetooth Low Energy platform Agnostic Klient
What it is and what it does
Bleak is a cross-platform async Python library for building Bluetooth Low Energy (BLE) clients that connect to and communicate with BLE devices. It abstracts away platform differences using native APIs on Windows, macOS, Linux, and Android, so you write one async/await-based client that works everywhere. The library handles device discovery, GATT characteristic reading and writing, and subscription to notifications from BLE sensors and peripherals.
Typical use involves discovering nearby BLE devices, connecting to a specific device by address, and then reading or writing GATT characteristics identified by UUID. All operations are async, making it suitable for applications that need to manage multiple concurrent BLE connections or integrate BLE communication into larger async event loops. The library depends on platform-specific system libraries and Python 3.10 or later.
Use it for:
- Discover and connect to BLE fitness trackers, smartwatches, or health sensors to read real-time data
- Build IoT applications that communicate with BLE-enabled environmental sensors or industrial devices
- Create cross-platform desktop or mobile apps that interface with Bluetooth peripherals without platform-specific code
- Read notifications and characteristic values from BLE GATT servers in real-time monitoring systems
- Prototype and test BLE device firmware by scripting client-side interactions with test devices
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Bleak is an async Python client for connecting to and communicating with Bluetooth Low Energy (BLE) devices acting as GATT servers across Windows, macOS, Linux, and Android.
Yes. Bleak is actively maintained, widely used (top 5000 PyPI), has no known vulnerabilities, and offers a clean async API for BLE communication across major platforms. Install it if you need to communicate with BLE devices from Python. The main gotcha is platform-specific system dependencies and the Python 3.10 or later requirement—verify those match your environment before committing.
Install
bleak on PyPI
pip
pip install bleakuv
uv add bleakpoetry
poetry add bleakInstalling bleak
Before you install
Low install friction with a pure-wheel distribution. Active maintenance with a recent commit on 2026-08-05 and 2491 repository stars. Requires Python 3.10 or later. Runtime dependencies are platform-specific, so actual install complexity varies by OS.
License in practice
MIT license (permissive) means you can use, modify, and distribute Bleak freely in both open-source and proprietary projects with minimal restrictions—only attribution is required.
Quickstart
import asyncio
from bleak import BleakScanner, BleakClient
async def discover():
devices = await BleakScanner.discover()
return devices
async def read_characteristic(address, uuid):
async with BleakClient(address) as client:
value = await client.read_gatt_char(uuid)
return value
asyncio.run(discover())
Requires Python 3.10 or later. Platform-specific system libraries required. Do not name your script 'bleak.py' as it causes circular import errors.
Verify before relying
- Whether all 15 runtime dependencies are required on all platforms or only conditionally installed per OS
- Specific version constraints for system libraries beyond Windows 11 version 22000 and BlueZ 5.55
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 15 — async-timeout, typing-extensions, pyobjc-core, pyobjc-framework-corebluetooth, pyobjc-framework-libdispatch, winrt-runtime, winrt-windows-devices-bluetooth, winrt-windows-devices-bluetooth-advertisement, winrt-windows-devices-bluetooth-genericattributeprofile, winrt-windows-devices-enumeration, winrt-windows-devices-radios, winrt-windows-foundation, winrt-windows-foundation-collections, winrt-windows-storage-streams, dbus-fast |
| Maintenance | actively maintained — 104 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,131,283/month — #3,268 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: bleak-3.0.2-py3-none-any.whl
Tags
More Networking packages
h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
psutilpsutil retrieves real-time information about…
permissive · top 1,000 on PyPI
pyOpenSSLpyOpenSSL wraps OpenSSL's SSL/TLS functionality…
permissive · top 1,000 on PyPI
uvloopuvloop is a drop-in replacement for Python's…
permissive · top 1,000 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
pyzmqPyZMQ provides Python bindings for ZeroMQ…
permissive · top 1,000 on PyPI
bleak-esphomeProvides a Bleak backend that proxies Bluetooth…
permissive · top 15,000 on PyPI
bumbleBumble is a full-featured Bluetooth stack…
permissive · top 15,000 on PyPI
home-assistant-bluetoothProvides standardized data models and helpers…
permissive · top 15,000 on PyPI
xiaomi-bleManages Xiaomi BLE (Bluetooth Low Energy)…
permissive · top 15,000 on PyPI
bleak-retry-connectorWraps Bleak's Bluetooth client with automatic…
permissive · top 5,000 on PyPI
govee-bleProvides Python bindings to discover, connect…
permissive · top 15,000 on PyPI
ibeacon-bleParses and decodes iBeacon BLE (Bluetooth Low…
permissive · top 15,000 on PyPI
kegtron-bleProvides Bluetooth Low Energy (BLE) support for…
permissive · top 15,000 on PyPI
airthings-bleLibrary to communicate with Airthings…
permissive · top 15,000 on PyPI
simplepybleSimplePyBLE provides cross-platform Bluetooth…
noncommercial · top 15,000 on PyPI