skillfed

bleak

Bluetooth Low Energy platform Agnostic Klient

bleak v3.0.2 2.1M downloads/30d#3,268 on PyPI2,491
Permissive license MIT Active released

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 bleak

uv

uv add bleak

poetry

poetry add bleak

Installing 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

Framework :: AsyncIOOperating System :: AndroidOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: Windows :: Windows 11Operating System :: POSIX :: Linux

Tags

bluetooth low energy clientBLE GATT client pythonasync bluetooth device communicationcross-platform BLE pythonbluetooth sensor readingwireless device discovery pythonBLE device notifications
bluetoothiotasync

More Networking packages