bleak

Bleak Logo
Build and Test https://img.shields.io/pypi/v/bleak.svg Documentation Status Black

Bleak is an acronym for Bluetooth Low Energy platform Agnostic Klient.

Bleak is a GATT client software, capable of connecting to BLE devices acting as GATT servers. It is designed to provide a asynchronous, cross-platform Python API to connect and communicate with e.g. sensors.

Operating System Support

Bleak aims to work on most major operating systems via platform-specific backends.

Tier 1 support

The following operating systems are supported and tested by the maintainers:

  • Linux distributions with BlueZ >= 5.55

  • Mac support via Core Bluetooth API, from at least macOS version 10.15

  • Windows 10, version 16299 (Fall Creators Update) or greater

Tier 2 support

The following operating systems are supported by the community, but not actively tested by the maintainers:

  • Android via Python4Android.

3rd party backends

The following backends are implemented and maintained by 3rd parties:

Features

  • Scan for devices advertising over BLE.

  • Get name, service uuids, service data, manufacturer-specific data, transmit power and RSSI from advertising packets.

  • Connect to BLE peripherals.

  • Read and write GATT characteristics and descriptors.

  • Subscribe to notifications/indications from characteristics.

  • Initiate pairing/bonding with devices (platform dependent).

Contents:

Indices and tables